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

Savings Statement

{{-- 🔍 SEARCH FORM --}}
{{-- 📄 PDF BUTTON --}} @if(isset($transactions)) {{-- 📊 RESULTS TABLE --}}
@foreach($transactions as $trx) @endforeach
Date Type Remarks Debit (₵) Credit (₵) Balance (₵)
{{ $trx->created_at->format('d-m-Y') }} {{ strtoupper(str_replace('_', ' ', $trx->type)) }} {{ $trx->remarks }} {{ in_array($trx->type, ['withdrawal','loan_repayment']) ? number_format($trx->amount,2) : '0.00' }} {{ in_array($trx->type, ['deposit','interest_credit']) ? number_format($trx->amount,2) : '0.00' }} {{ number_format($trx->balance_after, 2) }}
{{-- PAGINATION --}}
{{ $transactions->links() }}
@endif
@endsection