@for ($i = 1; $i <= $data['totalDays']; $i++) @endfor @forelse (@$data['reports'] ?? [] as $report) {{-- Render "Not Joined" days --}} @if (!empty($report['month_statuses']['totalNotJoin'])) @endif {{-- Render remaining statuses --}} @foreach ($report['month_statuses']['statuses'] ?? [] as $key => $monthStatus) @if ($key >= $report['month_statuses']['totalNotJoin']) @endif @endforeach {{-- Totals --}} @empty @endforelse
{{ @$data['title'] }}
{{ _trans('common.Generated At :') }} {{ \Carbon\Carbon::now()->format('d F Y, H:i A') }} {{ _trans('common.By : ') }} {{ auth()->user()->name }}
{{ _trans('common.Employee') }} {{ _trans('common.Department') }} {{ _trans('common.Designation') }}{{ $i }}{{ _trans('common.TP') }} {{ _trans('common.TA') }} {{ _trans('common.TW') }} {{ _trans('common.TH') }} {{ _trans('common.TL') }}
{{ @$report['employee_name'] }} {{ @$report['employee_id'] ? '[' . $report['employee_id'] . ']' : '' }} {{ @$report['department'] }} {{ @$report['designation'] }} {{ _trans("common.Not Joined") }} {!! $monthStatus !!} {{ @$report['month_statuses']['totalPresent'] }} {{ @$report['month_statuses']['totalAbsent'] }} {{ @$report['month_statuses']['totalWeekend'] }} {{ @$report['month_statuses']['totalHoliday'] }} {{ @$report['month_statuses']['totalLeave'] }}
{{ _trans('common.No data found!') }}