Presence360

@php $type = $body->type; $type = strtolower(str_replace('', '_', trim($type))); @endphp @php $totalPresent = $totalAbsent = $totalWorkingHour = $totalOverTime = 0 ; @endphp @foreach($body->data as $key=>$data) @php $totalPresent = $totalPresent+$data->total_present; $totalAbsent = $totalAbsent + $data->total_absent; $totalWorkingHour = $totalWorkingHour + $data->total_working_hour; $totalOverTime = $totalOverTime + $data->total_over_time ; @endphp @endforeach
{{ ucfirst($body->type) }} wise attendance details of {{date('d M Y', strtotime($body->date))}}
{{trans('emails.'.$type)}} {{trans('emails.total_present')}} {{trans('emails.total_absent')}} {{trans('emails.total_working_hour')}} {{trans('emails.total_over_time')}}
{{$key}} {{$data->total_present}} {{$data->total_absent}} {{$data->total_working_hour}} {{$data->total_over_time}}
Total {{$totalPresent}} {{$totalAbsent}} {{$totalWorkingHour}} {{$totalOverTime}}