@extends('layouts.app') @section('content')

{{ $budget->name }} Analysis

{{ date('M d, Y', strtotime($budget->start_date)) }} — {{ date('M d, Y', strtotime($budget->end_date)) }}

TOTAL PLANNED
{{ formatCurrency($totalPlanned) }}
TOTAL ACTUAL
{{ formatCurrency($totalActual) }}
BUDGET COMPLETION
@php $percent = $totalPlanned > 0 ? ($totalActual / $totalPlanned) * 100 : 0; @endphp
{{ number_format($percent, 1) }}% of Planned Budget Used
Budget vs Actual
Account-wise Comparison
@foreach($reportData as $row) @endforeach
Account Planned Actual Difference
{{ $row['account_name'] }}
{{ $row['account_type'] }}
{{ formatCurrency($row['planned']) }} {{ formatCurrency($row['actual']) }} {{ $row['difference'] < 0 ? '-' : '+' }}{{ formatCurrency(abs($row['difference'])) }} @if($row['is_over']) OVER @endif
@endsection