PAYE Report

Generated: {{ now()->toDateTimeString() }}

@foreach($payrolls as $i => $it) @php $b = $it->breakdown ?? []; @endphp @endforeach
# Employee Gross PAYE Month Year
{{ $i + 1 }} {{ optional($it->employee)->first_name ?? '' }} {{ optional($it->employee)->last_name ?? '' }} {{ number_format($it->gross, 2) }} {{ number_format($it->paye ?? ($b['paye'] ?? 0), 2) }} {{ $it->payrollSummary ? date('F', mktime(0,0,0,$it->payrollSummary->month,1)) : 'N/A' }} {{ $it->payrollSummary->year ?? 'N/A' }}