@php
$addAttendancePermission = user()->permission('add_attendance');
@endphp
@lang('app.employee') |
@for ($i = 1; $i <= $daysInMonth; $i++)
{{ $i }} |
@endfor
@lang('app.total') |
@foreach ($employeeAttendence as $key => $attendance)
@php
$totalPresent = 0;
$userId = explode('#', $key);
$userId = $userId[0];
@endphp
{!! end($attendance) !!} |
@foreach ($attendance as $key2 => $day)
@if ($key2 + 1 <= count($attendance))
@if ($day == 'Leave')
@elseif ($day == 'Absent')
@elseif ($day == 'Holiday')
@else
@if ($day != '-')
@php
$totalPresent = $totalPresent + 1;
@endphp
@endif
{!! $day !!}
@endif
|
@endif
@endforeach
{!! $totalPresent . ' / ' . (count($attendance) - 1) . '' !!} |
@endforeach