@extends('layouts.app') @section('title', 'Payslips') @section('content')

Payslips

Browse, print and export employee payslips

@if ($run) Export CSV @endif
@include('partials.flashes')
@if ($run)

{{ $run->periodLabel() }} · @include('payroll.partials.status-badge', ['status' => $run->status])

Generated by {{ $run->generated_by }} on {{ $run->generated_at?->toDateString() }}

Employees {{ $rows->count() }}
Total Gross {{ number_format($rows->sum(fn ($r) => $r['comp']['grossPay']), 2) }}
Total Deductions {{ number_format($rows->sum(fn ($r) => $r['comp']['totalDeductions']), 2) }}
Total Net {{ number_format($rows->sum(fn ($r) => $r['comp']['netPay']), 2) }}
@endif
@forelse ($rows as $row) @empty @endforelse
Payslip No Employee Period Gross PAYE Net Status Actions
{{ $row['payslipNo'] }} {{ $row['staff']->full_name }} {{ $row['staff']->staff_no }} · {{ $row['staff']->role }} {{ $run->periodLabel() }} {{ number_format($row['comp']['grossPay'], 2) }} {{ number_format($row['comp']['paye'], 2) }} {{ number_format($row['comp']['netPay'], 2) }} @include('payroll.partials.status-badge', ['status' => $run->status])
View Payslip
@csrf @method('DELETE')
No payslips for this selection.
@endsection