@extends('layouts.app') @section('page_title','Savings & Goals') @section('content')
Progress is calculated from the live savings balance of each linked category.
Each balance is deposits minus withdrawals.
| Category | Added | Withdrawn | Current Savings | History |
|---|---|---|---|---|
{{$category->name}} |
৳ {{number_format($row['added'],2)}} | ৳ {{number_format($row['withdrawn'],2)}} | ৳ {{number_format($row['current'],2)}} | |
|
@if($categoryHistory->count())
{{$category->name}} withdrawal history
@foreach($categoryHistory as $history)
@else
{{$history->description ?? 'Savings withdrawal'}}
{{$history->transaction_date->format('d M Y')}} · {{$history->account?->name ?? '—'}}
৳ {{number_format($history->amount,2)}}
No withdrawals from this category yet.
@endif
|
||||
| No savings categories yet. Add one from Categories. | ||||
Uncategorized Savings Older savings without a category |
— | — | ৳ {{number_format($uncategorizedSavings,2)}} | — |