@for($i =1; $i <= $daysInMonth; $i++) @endfor @foreach($employeeAttendence as $key => $attendance) @php $totalPresent = 0; @endphp @foreach($attendance as $key2=>$day) @if ($key2+1 <= count($attendance)) @endif @endforeach @endforeach
@lang('app.employee'){{ $i }}@lang('app.total')
{!! end($attendance) !!} @if($day == 'Absent') @elseif($day == 'Holiday') @else @if($day != '-') @php $totalPresent = $totalPresent + 1; @endphp @endif {!! $day !!} @endif {{ $totalPresent .' / '.(count($attendance)-1) }}