|
{{ $subject }}
{{$infoSendEmail["nome"]}}
TAREFAS URGENTES
| Nome Tarefa |
Nome Cliente |
Resumo |
Data Agendamento |
Data Primeiro Tempo |
Data ultima intervenção |
Tempo total gasto |
@php
$lastTime = "";
$firstTime = "";
$count = 0;
foreach ($infoSendEmail["primeiro_quadro"] as $info )
{
foreach($info->tasksTimes as $tsk)
{
$count++;
if($count == 1)
{
$firstTime = $tsk->date_begin ."/". $tsk->hour_begin;
}
$lastTime = $tsk->date_begin ."/". $tsk->hour_begin;
}
}
@endphp
@foreach ($infoSendEmail["primeiro_quadro"] as $info )
{{\Log::info($info)}}
| {{$info->reference}} |
{{$info->taskCustomer->name}} |
{{$info->resume}} |
{{$info->preview_date}} / {{$info->preview_hour}} |
@if(isset($info->tasksTimes))
{{$firstTime}} |
{{$lastTime}} |
@php
$arrayTimes = [];
foreach($info->tasksTimes as $tsk)
{
if($tsk->date_end != "")
{
array_push($arrayTimes,$tsk->total_hours);
}
}
$minutes = 0;
foreach ($arrayTimes as $time) {
list($hour, $minute) = explode(':', $time);
$minutes += $hour * 60;
$minutes += $minute;
}
$hours = floor($minutes / 60);
$minutes -= $hours * 60;
$totalHoursSpent = sprintf('%02d:%02d', $hours, $minutes);
@endphp
{{$totalHoursSpent}} |
@else
Não iniciou ainda |
Não iniciou ainda |
Não iniciou ainda |
@endif
@endforeach
OUTRAS TAREFAS
| Nome Tarefa |
Nome Cliente |
Resumo |
Data Agendamento |
Data Primeiro Tempo |
Data ultima intervenção |
Tempo total gasto |
@php
$lastTime = "";
$firstTime = "";
$count = 0;
foreach ($infoSendEmail["segundo_quadro"] as $info )
{
foreach($info->tasksTimes as $tsk)
{
$count++;
if($count == 1)
{
$firstTime = $tsk->date_begin ."/". $tsk->hour_begin;
}
$lastTime = $tsk->date_begin ."/". $tsk->hour_begin;
}
}
@endphp
@foreach ($infoSendEmail["segundo_quadro"] as $info )
| {{$info->reference}} |
{{$info->taskCustomer->name}} |
{{$info->resume}} |
{{$info->preview_date}} / {{$info->preview_hour}} |
@if(isset($info->tasksTimes))
{{$firstTime}} |
{{$lastTime}} |
@php
$arrayTimesSecond = [];
foreach($info->tasksTimes as $tsk)
{
if($tsk->date_end != "")
{
array_push($arrayTimesSecond,$tsk->total_hours);
}
}
$minutes = 0;
foreach ($arrayTimesSecond as $time) {
list($hour, $minute) = explode(':', $time);
$minutes += $hour * 60;
$minutes += $minute;
}
$hours = floor($minutes / 60);
$minutes -= $hours * 60;
$totalHoursSpentSecond = sprintf('%02d:%02d', $hours, $minutes);
@endphp
{{$totalHoursSpentSecond}} |
@else
Não iniciou ainda |
Não iniciou ainda |
Não iniciou ainda |
@endif
@endforeach
TAREFAS FECHADAS HOJE
| Nome Tarefa |
Nome Cliente |
Soma tempos gastos na tarefa |
@foreach ($infoSendEmail["terceiro_quadro"] as $info )
| {{$info->reference}} |
{{$info->taskCustomer->name}} |
@php
$arrayTimesThird = [];
foreach($info->tasksTimes as $tsk)
{
if($tsk->date_end != "")
{
array_push($arrayTimesThird,$tsk->total_hours);
}
}
$minutes = 0;
foreach ($arrayTimesThird as $time) {
list($hour, $minute) = explode(':', $time);
$minutes += $hour * 60;
$minutes += $minute;
}
$hours = floor($minutes / 60);
$minutes -= $hours * 60;
$totalHoursSpentThird = sprintf('%02d:%02d', $hours, $minutes);
@endphp
{{$totalHoursSpentThird}} |
@endforeach
{{__("Compliments")}},
{{ $company_name }}
|
|
|
|