@foreach ($dateArr as $dates) @if ($time) @endif @endforeach @foreach ($employeeSummary as $key => $value) @php $totalPresent = $overtime = $totalovertime = 0; // $atSummary = $value->getAttendanceSummaryList($month_id, $year_id); $atSummary = $value->getAttendanceSummaryFilter($fromDate, $toDate); @endphp @endphp @foreach ($dateArr as $date) @if (!isset($atSummary[$date])) @if ($time) @endif @continue; @endif @php $attendance = isset($atSummary[$date]) ? $atSummary[$date] : null; $overtime += intval(substr($attendance->overtime, 0, -6)) * 60 + intval(substr($attendance->overtime, -5, -3)); $totalovertime = round($overtime / 60, 2); @endphp @if ($time) @endif @php if ($attendance->attendance_type == 'present') { $totalPresent = $totalPresent + $attendance->day_count; } @endphp @endforeach @endforeach
{{ $organization->name }} Day Summary Report - {{ $month_name }} {{ $year_id }}
S.No {{trans('employee/employee.device_person')}} {{ trans('employee/employee.employee_code') }} {{ trans('employee/employee.employee_name') }} {{ trans('employee/employee.work_station_id') }} {{ trans('master/master.department') }} {{ trans('employee/employee.designation') }} {{ trans('master/master.employee_type') }} {{ trans('employee/employee.date_of_joining') }} {{ trans('employee/employee.aadhar_number') }} {{ trans('master/master.status') }}{{ date('d', strtotime($dates)) }}{{ trans('master/master.approved_ot_hrs') }} {{ trans('master/master.final_status') }}{{ trans('master/master.total_duty') }} {{ trans('master/master.total_ot') }}({{ trans('master/master.hours') }})
{{ $loop->iteration }} {{ $value->device_person_id }} {{ $value->employee_code }} {{ $value->name }} {{ @$value->workstation->name }} {{ @$value->department->name }} {{ @$value->designation->name }} {{ $value->employee_type }} {{ ($value->date_of_joining) ? date('d-m-Y',strtotime($value->date_of_joining)): '' }} {{ $value->aadhar_number }} {{ $value->status }} - - - - {{ $time && $attendance->overtime && $attendance->overtime != '00:00:00' ? App\Helpers\GeneralHelper::convertTimeHiToDecimal(date('H:i', strtotime($attendance->overtime))) : '-' }} {{ $time && $attendance->status ? $attendance->status : '-' }} {{ $totalPresent }} {{ $totalovertime }}