@extends('layouts.master') @section('title') Budgets @endsection @section('content') @component('components.breadcrumb') @slot('li_1') Administration @endslot @slot('title') Budgets @endslot @endcomponent @if(session('success'))
{{ session('success') }}
@endif
Budgets — {{ $fiscalYear }}

Set each cost centre's allocation for the year. Committed (encumbered at PO) and Spent (paid) are maintained by the system; Balance = allocation − committed − spent. Budget control is advisory (warn-but-allow).

@forelse($costCentres as $cc) @php $b = $cc->budgets->firstWhere('fiscal_year', $fiscalYear); @endphp @csrf @method('PUT') @empty @endforelse @if($costCentres->isNotEmpty()) @endif
Cost Centre Allocation (JMD) Committed Spent Balance Utilisation Save
{{ $cc->code }} — {{ $cc->name }} {{ $cc->formation?->path ?? '—' }} {{ number_format((float) ($b->committed ?? 0), 2) }} {{ number_format((float) ($b->spent ?? 0), 2) }} {{ number_format($b->balance ?? 0, 2) }} @php $util = $b->utilization ?? 0; @endphp
{{ $util }}%
No active cost centres. Create one.
Total {{ number_format($totals['allocation'], 2) }} {{ number_format($totals['committed'], 2) }} {{ number_format($totals['spent'], 2) }} {{ number_format($totals['balance'], 2) }}
@endsection