@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

{{ $companyName }}

For the Month of {{ $monthLabel }}

Staff Name {{ $salary->staff?->name ?? '—' }}
@if ($salary->staff?->designation)
Designation {{ $salary->staff->designation }}
@endif
Salary Month {{ $monthLabel }}
Pay Date {{ $salary->pay_date?->format('Y-m-d') ?? '—' }}
Pay From {{ $paySource }}
Slip No {{ $slipNo }}
Description Amount ({{ currency_symbol() }})
Basic Salary {{ money((float) $salary->basic_amount) }}
Allowances {{ money((float) $salary->allowances) }}
Gross Pay {{ money($gross) }}
@if ((float) $salary->deductions > 0)
Other Deductions − {{ money((float) $salary->deductions) }}
@endif @if ((float) $salary->advance_deduction > 0)
Advance Deduction − {{ money((float) $salary->advance_deduction) }}
@endif @if ($showEpf && (float) $salary->epf_staff_amount > 0)
EPF Staff ({{ number_format((float) $salary->epf_staff_percent, 2) }}%) − {{ money((float) $salary->epf_staff_amount) }}
@endif @if ($showEtf && (float) $salary->etf_staff_amount > 0)
ETF Staff ({{ number_format((float) $salary->etf_staff_percent, 2) }}%) − {{ money((float) $salary->etf_staff_amount) }}
@endif @if ($showTax && (float) $salary->tax_amount > 0)
Tax ({{ number_format((float) $salary->tax_percent, 2) }}%) − {{ money((float) $salary->tax_amount) }}
@endif

Net Pay

(Amount in Words) {{ amount_in_words((float) $salary->net_amount) }}

{{ money((float) $salary->net_amount) }}
@if ($showEpf || $showEtf)
Employer contributions (not deducted from net): @if ($showEpf) EPF Company {{ money((float) $salary->epf_company_amount) }} @endif @if ($showEpf && $showEtf) · @endif @if ($showEtf) ETF Company {{ money((float) $salary->etf_company_amount) }} @endif
@endif

Generated on {{ now()->format('Y-m-d H:i') }}

Authorized Signature
Note: This is a system generated salary slip and does not require a physical signature.
@if ($salary->notes)

Remarks: {{ $salary->notes }}

@endif