@php use App\Services\Employee\PayrollPayslipReleaseService; use App\Services\Employee\PayrollPayslipPdfService; $pdfService = app(PayrollPayslipPdfService::class); $showAmounts = (bool) ($showAmounts ?? $showFullPayrollFields ?? true); $fmt = static fn ($amount) => $pdfService->formatSlipAmount($amount, $showAmounts); $earnings = $earningsRows ?? []; $deductions = $deductionRows ?? []; $rowCount = max(count($earnings), count($deductions), 3); @endphp @if (($releaseMode ?? '') === PayrollPayslipReleaseService::MODE_REVERSED_NOTICE)
| Employee Name | {{ $employee?->full_name ?? '—' }} |
| Job No | {{ $employee?->employee_number ?? '—' }} |
| Designation | {{ $employee?->job_title ?? '—' }} |
| Period | {{ $periodLabel ?? $period->period_start->format('F Y') }} |
| Earnings | Deductions | ||
|---|---|---|---|
| {{ $earning['label'] ?? '' }} | {{ $earning ? $fmt($earning['amount'] ?? 0) : '' }} | {{ $deduction['label'] ?? '' }} | {{ $deduction ? $fmt($deduction['amount'] ?? 0) : '' }} |
| Gross Pay | {{ $fmt($line->gross_pay) }} | Total Deductions | {{ $fmt($line->deductions) }} |
| Net Salary | {{ $fmt($line->net_pay) }} | ||
| Cheque No{{ $chequeNumber ?: '—' }} | Bank Name{{ $bankName ?? '—' }} |
| Account No{{ $maskedBankAccount ?? '—' }} | Date{{ $paymentDateLabel ?? '—' }} |
{{ $line->notes }}
@endif|
Employee Signature
|
Human Resource Manager
@include('loan.documents.pdf.partials.hr-stamp', [
'branding' => $branding ?? [],
'stampDateLabel' => $stampDateLabel ?? null,
])
|