@extends('app-new') @push('head-script') @endpush @push('content-header') @endpush @section('content')
{{trans('common/common.filter')}}
{!! $errors->first('date_range', '')!!} @if(request()->input('type')) @endif
@for ($d = 1; $d <= $daysInMonth; $d++) @php $date = \Carbon\Carbon::create($year, $month, $d); @endphp @endfor @php $grouped = collect($data->items())->groupBy('employee_id'); @endphp @foreach($grouped as $empId => $rows) @php $emp = $rows->first(); @endphp @php $total = 0; @endphp @for ($d = 1; $d <= $daysInMonth; $d++) @php $date = sprintf('%04d-%02d-%02d', $year, $month, $d); $count = $rows ->firstWhere('attendance_date', $date) ->total_visit ?? 0; @endphp @endfor @endforeach {{ $data->appends(request()->except('page'))->links('pagination::bootstrap-5') }}
@endsection @push('footer-script') @endpush