@extends('layouts.app') @section('title', 'Savings') @section('page-title', 'Savings Management') @section('content')
Savings Ledger
All deposits and withdrawals — USD & LRD · Rate: L${{ number_format($rate,2) }}=US$1
Record Transaction
{{-- Summary cards --}}
${{ number_format($totals['deposits'],0) }}
Total Deposits (USD)
≈ L${{ number_format($totals['deposits'] * $rate, 0) }}
${{ number_format($totals['withdrawals'],0) }}
Total Withdrawals (USD)
≈ L${{ number_format($totals['withdrawals'] * $rate, 0) }}
${{ number_format($totals['net'],0) }}
Net Savings Pool (USD)
≈ L${{ number_format($totals['net'] * $rate, 0) }}
${{ number_format($totals['this_month'],0) }}
This Month (USD)
≈ L${{ number_format($totals['this_month'] * $rate, 0) }}
{{-- Filters --}}
@forelse($transactions as $txn) @empty @endforelse
ReferenceMemberTypeCur. Amount (USD)Amount (LRD)Balance (USD) ModeDateBy
{{ $txn->reference }}
{{ strtoupper(substr($txn->member->name,0,2)) }}
{{ $txn->member->name }}
{{ ucfirst($txn->type) }} {{ $txn->currency ?? 'USD' }} {{ $txn->type==='deposit'?'+':'-' }}${{ number_format($txn->amount,2) }} {{ $txn->type==='deposit'?'+':'-' }}L${{ number_format($txn->amount_lrd ?? $txn->amount * $rate,2) }} ${{ number_format($txn->balance_after,2) }} {{ ucfirst(str_replace('_',' ',$txn->payment_mode)) }} {{ $txn->created_at->format('d M Y') }} {{ $txn->recordedBy->name ?? 'System' }}
No transactions found
@if($transactions->hasPages())
{{ $transactions->links() }}
@endif
@endsection