@extends('layouts.master')
@section('title', 'Trust Account Balance - ' . $trust_account->account_number)
@section('content')
{{ $trust_account->account_number }}
Current balance for {{ $trust_account->client?->full_name ?? 'Client' }} trust ledger
{{ number_format($balance, 2) }}
{{ strtoupper($trust_account->currency ?? 'USD') }}
@if($recentEntries->isNotEmpty())
Date
Type
Description
Debit
Credit
Running Balance
@foreach($recentEntries as $entry)
{{ \Carbon\Carbon::parse($entry->created_at)->format('d M Y') }}
{{ ucfirst($entry->type ?? 'entry') }}
{{ $entry->description ?? 'N/A' }}
{{ number_format((float)($entry->debit ?? 0), 2) }}
{{ number_format((float)($entry->credit ?? 0), 2) }}
{{ number_format((float)($entry->running_balance ?? 0), 2) }}
@endforeach
@else
No ledger entries found for this trust account.
@endif
@endsection