@php $showEpf = $payrollRates['epf_enabled'] ?? true; $showEtf = $payrollRates['etf_enabled'] ?? true; $showTax = $payrollRates['tax_enabled'] ?? true; $gross = (float) $salary->basic_amount + (float) $salary->allowances; $paySource = $salary->pay_from === 'cash_book' ? ($salary->cashBook?->name ?? 'Cash Book') : ($salary->bankAccount?->name ?? 'Bank Account'); $monthLabel = $salary->salary_month?->format('F Y') ?? '—'; $slipNo = 'SAL-'.str_pad((string) $salary->id, 5, '0', STR_PAD_LEFT); $companyInitial = strtoupper(mb_substr(trim($companyName), 0, 1)) ?: 'C'; @endphp
For the Month of {{ $monthLabel }}
Net Pay
(Amount in Words) {{ amount_in_words((float) $salary->net_amount) }}
Generated on {{ now()->format('Y-m-d H:i') }}
Remarks: {{ $salary->notes }}
@endif