@php $palette = $themePalette ?? (is_array($theme ?? null) ? $theme : \App\Support\ThemePalette::resolveShades('emerald')); @endphp Payslip - {{ $payroll->user->name }} - {{ $payroll->payroll_month }} @include('reports.partials.font') @php $resolvedSchoolName = !empty($branding['school_name']) ? $branding['school_name'] : (!empty($tenant?->school_name) ? $tenant->school_name : (!empty($tenant?->name) ? $tenant->name : (tenant('id') ?? 'School ERP'))); @endphp
@if(!empty($schoolLogo))
{{ $resolvedSchoolName }}
@endif
{{ $resolvedSchoolName }}
Employee Salary Payslip
Month: {{ $payroll->payroll_month }}
Employee: {{ $payroll->user->name }}
Email: {{ $payroll->user->email }}
Role/Designation: {{ ucfirst($payroll->user->user_type ?? 'Staff') }}
Payslip Ref: #PAY-{{ str_pad($payroll->id, 5, '0', STR_PAD_LEFT) }}
Status: {{ strtoupper($payroll->status) }}
@if($payroll->paid_at) Paid Date: {{ $payroll->paid_at->format('M d, Y') }}
Method: {{ ucfirst($payroll->payment_method ?? 'Cash') }} @endif
@foreach($payroll->items as $item) @endforeach
Component / Description Type Amount
{{ $item->name }} {{ ucfirst($item->type) }} {{ number_format($item->amount, 2) }}
@if($payroll->notes)
Notes:
{{ $payroll->notes }}
@endif
Gross Earnings: {{ number_format($payroll->gross_salary, 2) }}
Total Deductions: -{{ number_format($payroll->total_deduction, 2) }}
Net Payable Salary: {{ number_format($payroll->net_salary, 2) }}
Employee Signature Authorized Signatory / Principal