{{ \Carbon\Carbon::parse('01-' . $month . '-' . $year)->translatedFormat('F-Y') }} @lang('app.menu.attendanceReport') |
@lang('app.employee') | @for ($i = 1; $i <= $daysInMonth; $i++){{ $i }} {{ $weekMap[\Carbon\Carbon::parse(\Carbon\Carbon::parse($i . '-' . $month . '-' . $year))->dayOfWeek] }} |
@endfor
@lang('app.total') |
---|---|---|
{!! end($attendance) !!} | @foreach ($attendance as $key2 => $day) @if ($key2 + 1 <= count($attendance)) @php $attendanceDate = \Carbon\Carbon::parse($year.'-'.$month.'-'.$key2); @endphp@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 | @endif @endforeach{!! $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 }} |