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

Payroll Dashboard

Overview of payroll activity across the school

Generate Payslips
@include('partials.flashes')
Total Staff on Payroll {{ $staffCount }} {{ $current?->periodLabel() ?? '—' }} cycle
This Month's Gross {{ number_format($totalGross, 2) }} Total earnings before deductions
This Month's Net {{ number_format($totalNet, 2) }} Take-home after all deductions
Pending Runs {{ $pendingRuns }} Awaiting approval
@forelse ($recent as $item) @php $run = $item['run']; @endphp @empty @endforelse
Period Staff Gross Net Status Generated By Date Actions
{{ $run->periodLabel() }} {{ $item['staffCount'] }} {{ number_format($item['totals']['gross'], 2) }} {{ number_format($item['totals']['net'], 2) }} @include('payroll.partials.status-badge', ['status' => $run->status]) {{ $run->generated_by }} {{ $run->generated_at?->toDateString() }} View
No payroll runs yet.

Recent Payroll Runs

@foreach ($recent->take(4) as $item)
{{ $item['run']->periodLabel() }} {{ $item['staffCount'] }} staff · net {{ number_format($item['totals']['net'], 2) }}
@include('payroll.partials.status-badge', ['status' => $item['run']->status])
@endforeach
View All

Quick Actions

@foreach ([ ['Generate Payroll', 'Run a new payroll cycle for a period', 'payroll.generate'], ['Manage Payslips', 'Browse, print and export employee payslips', 'payroll.payslips'], ['Payroll Settings', 'Configure PAYE, NSSF, SHIF and allowances', 'payroll.settings'], ] as [$title, $desc, $routeName]) {{ $title }} {{ $desc }} @endforeach
@endsection