@php use App\Services\Employee\PayrollPayslipReleaseService; $canDownloadPdf = $canDownloadPdf ?? false; $isDraft = ($releaseMode ?? '') === PayrollPayslipReleaseService::MODE_DRAFT_PREVIEW; $b = $branding ?? []; @endphp {{ $payslipReference ?? 'Salary Slip' }} — {{ $employee?->full_name ?? 'Employee' }} @include('loan.documents.pdf.partials.styles', ['branding' => $b]) @include('loan.accounting.books.payroll.partials.payslip-document-styles')
{{ $employee?->full_name ?? 'Employee payslip' }}
{{ $payslipReference ?? '' }} · {{ $periodLabel ?? $period->period_start->format('M Y') }}
@if ($canDownloadPdf) {{ $isDraft ? 'Download draft PDF' : 'Download PDF' }} @endif
@if ($isDraft)
Draft preview — lock the payroll period to release official payslips to employees.
@endif
@include('loan.documents.pdf.partials.header', ['branding' => $b]) @include('loan.documents.pdf.partials.watermark', ['branding' => $b])
@include('loan.accounting.books.payroll.partials.payslip-document-body', ['showDraftBanner' => $isDraft])
@include('loan.documents.pdf.partials.footer', ['branding' => $b])