Attendance Summary
{{ number_format($att['days_present'] ?? 0, 1) }}
Present
{{ number_format($att['days_on_leave'] ?? 0, 1) }}
On Leave
{{ number_format($att['days_absent'] ?? 0, 1) }}
Absent
{{ number_format($att['expected_days'] ?? 0) }}
Expected
@if($basis !== 'daily')
{{ number_format($att['hours_worked'] ?? 0, 1) }}
Hours
@endif
@if(!($att['has_records'] ?? true))
@php $attMode = $att['attendance_mode'] ?? 'required'; @endphp
@if($attMode === 'not_required')
Clock-in not required — full salary paid.
@else
No attendance records found — full period assumed.
@endif
@endif
@if($basis === 'monthly' && isset($att['daily_rate']))
Daily rate: {{ $currency }} {{ number_format($att['daily_rate'], 4) }}
· Paid days: {{ number_format($att['paid_days'] ?? 0, 1) }} / {{ $att['expected_days'] ?? '—' }}
@if(isset($att['absence_deduction']) && $att['absence_deduction'] > 0)
· Absence deduction: {{ $currency }} {{ number_format($att['absence_deduction'], 2) }}
@endif
@elseif($basis === 'hourly' && isset($att['hourly_rate']))
Hourly rate: {{ $currency }} {{ number_format($att['hourly_rate'], 4) }}
· {{ number_format($att['hours_worked'] ?? 0, 2) }} hours worked
@elseif($basis === 'daily' && isset($att['daily_rate']))
Daily rate: {{ $currency }} {{ number_format($att['daily_rate'], 4) }}
· {{ number_format($att['paid_days'] ?? 0, 1) }} paid days
@endif
Earnings
@foreach($earnings as $line)
{{ $line['name'] }}
@if(!($line['is_taxable'] ?? true))
(non-taxable)
@endif
{{ $currency }} {{ number_format($line['amount'],2) }}
@endforeach
Gross Pay
{{ $currency }} {{ number_format($summary['gross_pay'] ?? $record->gross_pay, 2) }}
Deductions
@foreach($deds as $line)
{{ $line['name'] }}
- {{ $currency }} {{ number_format($line['amount'],2) }}
@endforeach
Total Deductions
- {{ $currency }} {{ number_format($summary['total_deductions'] ?? $record->total_deductions, 2) }}
Net Pay ({{ $currency }})
{{ $currency }} {{ number_format($summary['net_pay'] ?? $record->net_pay, 2) }}
@if($hasSecondary)
Equivalent
{{ $record->configuration?->secondary_currency_code ?? '' }}
{{ number_format($summary['net_pay_secondary'],2) }}
@endif
Computer-generated payslip — no signature required
· Payment date: {{ $record->period->payment_date->format('F j, Y') }}