{{-- ═══════════════════════════════════════════════════════════════════════════ FILE 1: resources/views/components/budget/kpi-card.blade.php Usage: ═══════════════════════════════════════════════════════════════════════════ --}} @props(['label', 'value', 'color' => 'blue', 'sub' => null]) @php $colorMap = [ 'blue' => ['border' => 'border-t-blue-500', 'text' => 'text-blue-700'], 'green' => ['border' => 'border-t-green-500', 'text' => 'text-green-700'], 'amber' => ['border' => 'border-t-amber-500', 'text' => 'text-amber-700'], 'orange' => ['border' => 'border-t-orange-500', 'text' => 'text-orange-700'], 'red' => ['border' => 'border-t-red-500', 'text' => 'text-red-700'], ]; $cls = $colorMap[$color] ?? $colorMap['blue']; @endphp
{{ $label }}
{{ number_format($value) }} UGX
@if($sub)
{{ $sub }}
@endif
{{-- ═══════════════════════════════════════════════════════════════════════════ FILE 2: resources/views/budget/create.blade.php ═══════════════════════════════════════════════════════════════════════════ --}} {{--

New Budget Line

@csrf
@error('code')

{{ $message }}

@enderror
@error('fiscal_year')

{{ $message }}

@enderror
@error('name')

{{ $message }}

@enderror
@error('allocated_amount')

{{ $message }}

@enderror
Cancel
--}} {{-- ═══════════════════════════════════════════════════════════════════════════ FILE 3: Alpine.js budget checker — add to your procurement create/edit form Drop this inside the
where the user picks a budget line. Requires: budget.check and budget.lines routes registered. ═══════════════════════════════════════════════════════════════════════════ --}} {{--
{{-- Live balance feedback --}}
--}}