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