@extends('layouts.app') @section('page_title','Budget Planning') @section('content')

Budget Planning

Plan monthly spending and compare budget against actual.

Monthly Planned
৳ {{number_format($monthlyBudget,2)}}
Monthly Actual Expenses
৳ {{number_format($monthlyActual,2)}}
Monthly Remaining
৳ {{number_format($monthlyRemaining,2)}}

Set Budget

@csrf

{{$month}} / {{$year}} Budget vs Actual

@forelse($rows as $b)@php($a=(float)($actual[$b->category_id]??0)) @empty@endforelse
CategoryBudgetActualRemainingUsage
{{$b->category?->name??'Overall / Other'}} ৳ {{number_format($b->amount,2)}} ৳ {{number_format($a,2)}} ৳ {{number_format((float)$b->amount-$a,2)}} {{round($a/$b->amount*100)}}%
@csrf @method('DELETE')
No budgets defined for this month.
@endsection