@extends('layouts.admin') @section('title', 'Budget Planning') @section('content')
@csrf
@foreach ($items as $item) @php($actual = (float) ($actuals[$item->account_id] ?? 0)) @endforeach
Account Cost Center Period Budget Actual Variance
{{ $item->account?->account_name }} {{ $item->costCenter?->name ?? 'N/A' }} {{ $item->period_start?->format('d M Y') }} to {{ $item->period_end?->format('d M Y') }} {{ number_format($item->amount, 2) }} {{ number_format($actual, 2) }} {{ number_format((float) $item->amount - $actual, 2) }}
@endsection