@extends('admin.admin_dashboard') @section('admin') @php $activeQueue = request('queue', ''); $queues = [ '' => ['label' => 'All', 'count' => $stats['total'] ?? 0], 'pending' => ['label' => 'Pending approval', 'count' => $stats['pending'] ?? 0], 'approved' => ['label' => 'Approved', 'count' => $stats['approved'] ?? 0], 'disbursed' => ['label' => 'Disbursed', 'count' => $stats['disbursed'] ?? 0], 'draft' => ['label' => 'Drafts', 'count' => $stats['draft'] ?? 0], ]; @endphp
Planning Requisitions @can('create', App\Models\FundsRequisition::class) New requisition @endcan @can('role_permissions.view')
Grant requisition access to staff

Go to Management → All roles in permission, click Edit on a role, then under the Planning group enable: Planning module access, View own requisitions, and Create requisitions. Staff must also be assigned to activities on the workplan to see budget lines.

Open role permissions
@endcan {{-- Summary --}}
{{-- Queue tabs --}}
@foreach($queues as $key => $meta) @php $params = array_filter(array_merge(request()->except('page', 'queue'), $key !== '' ? ['queue' => $key] : [])); @endphp {{ $meta['label'] }} {{ number_format($meta['count']) }} @endforeach
{{-- Filters --}}
@if($activeQueue) @endif
@if($viewAll)
@endif
Clear
{{-- Table --}}
Requisitions
{{ number_format($requisitions->total()) }} total · showing {{ $requisitions->firstItem() ?? 0 }}–{{ $requisitions->lastItem() ?? 0 }}
@if($requisitions->isEmpty()) @else # Reference Date Department Requester Lines Status Requested (UGX) Approved (UGX) Disbursement Action @foreach($requisitions as $index => $req) @php $progress = $req->disbursementProgress(); $dept = $req->department; @endphp {{ $requisitions->firstItem() + $index }} {{ $req->reference }} @if($req->is_emergency ?? false) Emergency @endif
{{ $req->requisition_date?->format('d M Y') ?? $req->created_at?->format('d M Y') }}
{{ $req->created_at?->diffForHumans() }} {{ $dept?->name ?? '—' }}
{{ $req->requester?->name ?? '—' }}
{{ $req->lines_count ?? 0 }} {{ number_format($req->total_requested, 0) }} {{ number_format($req->total_approved, 0) }} @if($req->total_approved > 0 || $req->isDisbursed()) {{ $progress }}% @else @endif View @endforeach
@endif @if($requisitions->hasPages()) @endif
@push('styles') @endpush @push('scripts') @endpush @endsection