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

Payroll dashboard

Monthly payroll status, statutory deductions and staffing cost for {{ $year }}.
Run payroll
@include('payroll._nav')

Net payroll by month

{{ $year }} ยท {{ num($stats['payslips']) }} payslips issued
@if(count($monthly)) {!! \App\Support\Chart::bars($monthly) !!} @else Generate payroll @endif

Latest run

{{ $last ? $last->period : 'None yet' }}
@if($last)
Period{{ $last->period }}
Gross{{ money($last->total_gross) }}
Deductions{{ money($last->total_deductions) }}
Net{{ money($last->total_net) }}
Status
Open payslips @else @endif

Runs in {{ $year }}

Generated payroll periods
@forelse($runs as $run) @empty @endforelse
PeriodGrossDeductionsNetStatusActions
{{ $run->period }} {{ money($run->total_gross) }} {{ money($run->total_deductions) }} {{ money($run->total_net) }}

Staff by role

Active establishment
@forelse($roles as $role => $count) @php($maxRole = max(1, max($roles ?: [1])))
{{ ucfirst($role ?: 'Unassigned') }}{{ $count }}
@empty @endforelse
@endsection