@extends('layouts.app') @section('title', 'Ration Store Management') @section('content')
{{-- Page guide: what this screen is for --}}
Ration Store Management. Manage the ration store: record food received, compute per-prisoner and cumulative daily allocations, and track the running balance.

Ration Store Management

{{ $records->total() }} record(s)
@can('prison.ration-store.add') New Record@endcan
@if(session('success'))
{{ session('success') }}
@endif
@forelse($records as $r) @empty @endforelse
DateItemReceivedPrisonersPer prisonerTotal allocatedBalanceUnitActions
{{ optional($r->allocation_date)->format('d M Y') }} {{ $r->item_name }} {{ $r->quantity_received }} {{ $r->prisoner_count }} {{ $r->ration_per_prisoner }} {{ $r->total_allocated }} {{ number_format(($r->quantity_received - $r->total_allocated),2) }} {{ $r->unit ?? '—' }} @if(in_array($r->status ?? '', ['Draft','Scheduled','Open']))
@csrf
@endif
No records yet.
{{ $records->withQueryString()->links() }}
@endsection