@extends('reports.deposit.base') @section('action-content')

Deposit Report

{{-- 🔍 SEARCH FILTERS --}}
{{-- ACCOUNT NUMBER --}}
{{-- REPORT TYPE --}}
{{-- ACCOUNT TYPE --}}
Used only when “Specific Account Type” is selected
{{-- FROM DATE --}}
{{-- TO DATE --}}
{{-- SEARCH --}}
{{-- RESULTS --}} @if(isset($deposits) && $deposits->count()) {{-- 📄 PDF --}} {{-- 📊 BALANCE SUMMARY --}}
Opening Balance
₵{{ number_format($openingBalance, 2) }}
Total Deposits
₵{{ number_format($periodTotal, 2) }}
Closing Balance
₵{{ number_format($closingBalance, 2) }}
{{-- 📋 TABLE --}}
@foreach($deposits as $dep) @endforeach
Date Account Type Amount (₵) Running Balance (₵) Payment Method Reference Teller
{{ $dep->created_at->format('d M Y') }} {{ str_replace('_',' ', strtoupper($dep->clientAccount->account_type ?? 'N/A')) }} {{ number_format($dep->amount, 2) }} {{ number_format($dep->running_balance, 2) }} {{ strtoupper($dep->payment_method) }} {{ $dep->reference_no }} {{ optional($dep->teller)->name ?? 'N/A' }}
{{-- PAGINATION --}}
{{ $deposits->links() }}
@endif
@endsection