@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 }}
{{ substr($key, strripos($key,'#')+strlen('#')) }} {!! end($attendance) !!} @if($day == 'Absent') @elseif($day == 'Holiday') @else @if($day != '-') @php $totalPresent = $totalPresent + 1; @endphp @endif {!! $day !!} @endif {{ $totalPresent .' / '.(count($attendance)-1) }}