{{ implode(' | ', $filterParts) }}
@if(!empty($sheet['voucher_no']) && $sheet['voucher_no'] !== 'DRAFT')
Voucher No: {{ $sheet['voucher_no'] }}
@endif
@if(empty($sheet['department_groups']))
{{ $sheet['empty_message'] ?? 'No employees match the selected filters.' }}
@else
| Employee ID |
Name |
Designation |
Paymt Method |
{{ $amountLabel }} |
@foreach($sheet['department_groups'] as $group)
| Department: {{ $group['name'] }} |
@foreach($group['rows'] as $row)
@php $emp = $row['employee']; @endphp
| {{ $emp->code }} |
{{ $salutation($emp) }} |
{{ $emp->designation ?: '—' }} |
{{ $emp->salary_payment_method ?: '—' }} |
{{ $fmt($row['amount']) }} |
@endforeach
| Subtotal — {{ $group['name'] }} ({{ count($group['rows']) }}) |
{{ $fmt($group['subtotal']['amount']) }} |
@endforeach
Department-wise Summary
| Department |
Emp |
{{ $amountLabel }} |
@foreach($sheet['department_summary'] as $summary)
| {{ $summary['department'] }} |
{{ $summary['employee_count'] }} |
{{ $fmt($summary['amount']) }} |
@endforeach
| Grand Total |
{{ $sheet['employee_count'] }} |
{{ $fmt($sheet['grand_total']) }} |
{{ $sheet['payment_summary_title'] ?? 'Payment Method Summary' }}
| Payment Method |
Employees |
{{ $amountLabel }} |
@foreach($sheet['payment_summary'] as $payment)
| {{ $payment['method'] }} |
{{ $payment['employee_count'] }} |
{{ $fmt($payment['amount']) }} |
@endforeach
| Total |
{{ $sheet['employee_count'] }} |
{{ $fmt($sheet['grand_total']) }} |
@endif