@php $tenant = \App\Support\Facades\Tenancy::get(); $monthLabel = \Illuminate\Support\Carbon::createFromFormat('Y-m', $payPeriod)->format('F Y'); $totalGross = $payslips->sum('gross_cents'); $totalDeductions = $payslips->sum('total_deduction_cents'); $totalNet = $payslips->sum('net_cents'); @endphp
No payslips have been generated for {{ $monthLabel }} yet.
@else| # | Employee | Code | Branch | Department | Gross | Deductions | Net Pay | Status |
|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{ $payslip->employee->fullName() }} | {{ $payslip->employee->employee_code }} | {{ $payslip->employee->branch->name ?? '—' }} | {{ $payslip->employee->department->name ?? '—' }} | {{ \App\Support\Money::format($payslip->gross_cents) }} | {{ \App\Support\Money::format($payslip->total_deduction_cents) }} | {{ \App\Support\Money::format($payslip->net_cents) }} | {{ ucfirst($payslip->status) }} |
| Total | {{ \App\Support\Money::format($totalGross) }} | {{ \App\Support\Money::format($totalDeductions) }} | {{ \App\Support\Money::format($totalNet) }} | |||||