{{ $garage->name ?? 'Garage' }}

Payroll Register - {{ $run->month }}
Run #{{ $run->id }} | Status: {{ ucfirst($run->status) }} | Printed: {{ now()->format('Y-m-d H:i') }}
@php $tb = 0; $ta = 0; $tbo = 0; $td = 0; $tf = 0; $tn = 0; $tadv = 0; @endphp @foreach($payslips as $p) @php $tb += (float)($p->basic_salary ?? 0); $ta += (float)($p->total_allowance ?? 0); $tbo += (float)($p->total_bonus ?? 0); $tadv += (float)($p->total_advance ?? 0); $td += (float)($p->total_deduction ?? 0); $tf += (float)($p->total_fine ?? 0); $tn += (float)($p->net_pay ?? 0); @endphp @endforeach
Employee Name Code Basic Allowance Bonus Advance Deduction Fine Net Pay
{{ $p->employee_name }} {{ $p->employee_code }} {{ number_format((float)$p->basic_salary, 2) }} {{ number_format((float)$p->total_allowance, 2) }} {{ number_format((float)$p->total_bonus, 2) }} {{ number_format((float)($p->total_advance ?? 0), 2) }} {{ number_format((float)$p->total_deduction, 2) }} {{ number_format((float)$p->total_fine, 2) }} {{ number_format((float)$p->net_pay, 2) }}
Totals {{ number_format($tb, 2) }} {{ number_format($ta, 2) }} {{ number_format($tbo, 2) }} {{ number_format($tadv, 2) }} {{ number_format($td, 2) }} {{ number_format($tf, 2) }} {{ number_format($tn, 2) }}