{{ $school }}

{{ \App\Models\Setting::get('school_address', '') }} @if(\App\Models\Setting::get('school_phone')) · {{ \App\Models\Setting::get('school_phone') }} @endif
CONFIDENTIAL · STAFF PAYSLIP
PAYSLIP FOR {{ strtoupper($run->period ?? '') }}
Employee
{{ $payslip->staff?->full_name }}
{{ $payslip->staff?->staff_no ?: '—' }} · {{ $payslip->staff?->role ?: 'Staff' }}
Payslip No: {{ $payslip->payslip_no }}
Period: {{ $run->period ?? '—' }}
Status: {{ $payslip->status }}
@php($b = $payslip->breakdown ?? []) @php($loans = $b['loans'] ?? []) @php($claims = $b['claims'] ?? [])
@if(!empty($b['unpaid_days'])) @endif @foreach(($b['allowances'] ?? []) as $allowance) @endforeach @foreach($claims as $claim) @endforeach
Earnings
Basic salary{{ number_format($b['basic'] ?? 0, 2) }}
Unpaid leave ({{ number_format($b['unpaid_days'], 1) }} days)-{{ number_format($b['unpaid_deduction'] ?? 0, 2) }}
{{ $allowance['name'] }}{{ number_format($allowance['amount'] ?? 0, 2) }}
Expense reimbursement · {{ $claim['type'] ?? 'Claim' }}{{ number_format($claim['amount'] ?? 0, 2) }}
Gross pay{{ number_format($payslip->gross, 2) }}
@foreach(($b['deductions'] ?? []) as $deduction) @endforeach @foreach($loans as $loan) @endforeach
Deductions
PAYE{{ number_format($payslip->paye, 2) }}
NSSF{{ number_format($payslip->nssf, 2) }}
SHIF{{ number_format($payslip->shif, 2) }}
AHL{{ number_format($payslip->ahl, 2) }}
Pension{{ number_format($payslip->pension, 2) }}
{{ $deduction['name'] }}{{ number_format($deduction['amount'] ?? 0, 2) }}
{{ $loan['type'] ?? 'Loan' }} · {{ $loan['loan_no'] ?? '' }}{{ number_format($loan['amount'] ?? 0, 2) }}
Total deductions{{ number_format($b['total_deductions'] ?? ($payslip->gross - $payslip->net), 2) }}
Taxable income: {{ number_format($payslip->taxable, 2) }} NET PAY: {{ number_format($payslip->net, 2) }}
Prepared by
Employee signature
This payslip is computer generated and does not require a stamp. Generated {{ now()->format('d M Y H:i') }}.