{{ \Carbon\Carbon::parse('01-' . $month . '-' . $year)->translatedFormat('F-Y') }} @lang('app.menu.attendanceReport')
@for ($i = 1; $i <= $daysInMonth; $i++) @endfor @php $totalAbsent = 0; $totalLeaves = 0; $totalHalfDay = 0; $totalHoliday = 0; $allPresent = 0; @endphp @foreach ($employeeAttendence as $key => $attendance) @php $totalPresent = 0; $userId = explode('#', $key); $userId = $userId[0]; @endphp @foreach ($attendance as $key2 => $day) @if ($key2 + 1 <= count($attendance)) @php $attendanceDate = \Carbon\Carbon::parse($year.'-'.$month.'-'.$key2); @endphp @endif @endforeach @endforeach
@lang('app.employee'){{ $i }}
{{ $weekMap[\Carbon\Carbon::parse(\Carbon\Carbon::parse($i . '-' . $month . '-' . $year))->dayOfWeek] }}
@lang('app.total')
{!! end($attendance) !!} @if ($day == 'Leave') L @php $totalLeaves = $totalLeaves + 1; @endphp @elseif ($day == 'Half Day') HD @php $totalHalfDay = $totalHalfDay + 1; @endphp @elseif ($day == 'Absent') × @php $totalAbsent = $totalAbsent + 1; @endphp @elseif ($day == 'Holiday') @php $totalHoliday = $totalHoliday + 1; @endphp @else @if ($day != '-') @php $totalPresent = $totalPresent + 1; $allPresent = $allPresent + 1; @endphp @endif {!! $day !!} @endif {!! $totalPresent . ' / ' . (count($attendance) - 1) !!}
→ @lang('app.present') × → @lang('app.absent') → @lang('app.menu.holiday')
@lang('app.total') @lang('app.days'): {{ $daysInMonth }} @lang('modules.attendance.daysPresent'): {{ $allPresent }} @lang('app.total') @lang('modules.attendance.absent'): {{ $totalAbsent }}
@lang('app.total') @lang('modules.attendance.leave'): {{ $totalLeaves }} @lang('app.total') @lang('modules.attendance.halfDay') @lang('app.leave'): {{ $totalHalfDay }} @lang('app.total') @lang('modules.attendance.holiday'): {{ $totalHoliday }}