@extends('layouts.app') @section('title', 'Payroll Run') @php $readOnly = $run->status === 'Paid' || $run->status === 'Cancelled'; $rs = match($run->status) { 'Draft' => 's', 'Approved' => 'b', 'Paid' => 'g', default => 'r', }; @endphp @section('content')
Payroll Run
{{ $run->period_start->format('M j, Y') }} – {{ $run->period_end->format('M j, Y') }} {{ $run->status }}
{{ $err }}
@endforeachEmployees Included
{{ $run->items->count() }}
Gross Pay
{{ \App\Support\Format::mwkDecimal($run->total_gross) }}
Deductions
{{ \App\Support\Format::mwkDecimal($run->total_deductions) }}
Net Pay
{{ \App\Support\Format::mwkDecimal($run->total_net) }}
Mark as paid
Posts one expense transaction to Finance (category Payroll, grouped under Labour in reports). Cannot be duplicated.
This payroll run is read-only.
@endifPay lines
| Employee | Role | Project | Type | Gross | Deductions | Net | Status |
|---|---|---|---|---|---|---|---|
| {{ $row->employee_name_snapshot }} | {{ $row->job_title_snapshot }} | {{ $row->project?->name ?? '—' }} | {{ $row->employment_type_snapshot }} | {{ \App\Support\Format::mwkDecimal($row->gross_pay) }} | {{ \App\Support\Format::mwkDecimal($row->deductions) }} | {{ \App\Support\Format::mwkDecimal($row->net_pay) }} | {{ $row->status }} |
Finance transaction #{{ $run->transaction_id }} @if($run->payment_date) · paid {{ $run->payment_date->format('M j, Y') }} @endif
@endif