Payslip

Employee #{{ $payslip->employee_id }} @if($payslip->employee) — {{ trim(($payslip->employee->first_name ?? '').' '.($payslip->employee->last_name ?? '')) }} @endif · Run {{ $payslip->payroll_run_id }} @if($payslip->payrollRun) · {{ $payslip->payrollRun->month }}/{{ $payslip->payrollRun->year }} @endif · {{ $payslip->currency_code }}

@foreach(($payslip->earnings_breakdown ?? []) as $code => $amount) @endforeach
EarningsAmount
{{ $code }}{{ number_format((float) $amount, 2) }}
Gross earnings{{ number_format((float) $payslip->gross_earnings, 2) }}
@foreach(($payslip->deductions_breakdown ?? []) as $code => $amount) @endforeach
DeductionsAmount
{{ $code }}{{ number_format((float) $amount, 2) }}
Total deductions{{ number_format((float) $payslip->total_deductions, 2) }}
Net Pay{{ number_format((float) $payslip->net_pay, 2) }}
Advance Already Paid{{ number_format((float) $payslip->advance_paid, 2) }}
Net Payable{{ number_format((float) $payslip->net_payable, 2) }}
@php $allocations = $payslip->paymentAllocations ?? collect(); $channelLabels = [ 'cash' => 'Cash', 'cheque' => 'Cheque', 'bank' => 'Bank', 'mobile_banking' => 'Mobile Banking', ]; @endphp @if($allocations->isNotEmpty())

Payment Breakdown

@foreach($allocations as $allocation) @php $channel = $allocation->channel instanceof \BackedEnum ? $allocation->channel->value : (string) $allocation->channel; @endphp @endforeach
ChannelAmount
{{ $channelLabels[$channel] ?? $channel }} {{ number_format((float) $allocation->amount, 2) }}
@endif