@extends('layouts.app') @section('title', 'Payout Runs') @section('content')
← Dashboard

Payout Runs

+ New Payout Run
@if(session('status'))
{{ session('status') }}
@endif
@if($runs->isEmpty())
No payout runs yet. Create one to roll up this week's successful referrals.
@else @foreach($runs as $run) @php $statusColors = [ 'Draft' => 'bg-gray-100 text-gray-700', 'Approved' => 'bg-blue-100 text-blue-700', 'Sent' => 'bg-amber-100 text-amber-800', 'Reconciled' => 'bg-green-100 text-green-800', 'Cancelled' => 'bg-red-100 text-red-700', ]; @endphp @endforeach
Run # Scheme Period Riders Referrals Total KES Status
{{ $run->run_number }} {{ $run->scheme?->code }} {{ $run->period_start->format('d M') }} – {{ $run->period_end->format('d M Y') }} {{ $run->rider_count }} {{ $run->referral_count }} {{ number_format($run->total_amount) }} {{ $run->status }}
{{ $runs->links() }}
@endif
@endsection