@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 Salary Sheet — {{ $monthLabel }} — {{ $tenant->name }}
@if($tenant->logo_path) @else
{{ \Illuminate\Support\Str::of($tenant->name)->substr(0, 1) }}
@endif
{{ $tenant->name }}
{{ $tenant->tagline }}

Salary Sheet

{{ $monthLabel }} · {{ $payslips->count() }} {{ \Illuminate\Support\Str::plural('employee', $payslips->count()) }}
@if($payslips->isEmpty())

No payslips have been generated for {{ $monthLabel }} yet.

@else @foreach($payslips as $index => $payslip) @endforeach
# 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) }}
@endif
Back to Payroll