@extends('layouts.app') @section('title', 'Savings Withdrawals') @section('content')

{{ $withdrawals->total() }}

Total Withdrawals

USD {{ number_format($withdrawals->sum('amount'), 2) }}

Total Amount

{{ $withdrawals->count() > 0 ? $withdrawals->first()->transaction_date->format('M Y') : 'N/A' }}

Latest Month

Filters
Withdrawal Transactions
@forelse($withdrawals as $withdrawal) @empty @endforelse
TRANSACTION # CLIENT ACCOUNT AMOUNT DESCRIPTION DATE CREATED BY ACTIONS
{{ $withdrawal->transaction_number }}
{{ $withdrawal->savingsAccount->client->full_name }}
{{ $withdrawal->savingsAccount->client->client_number }}
{{ $withdrawal->savingsAccount->account_number }}
{{ $withdrawal->savingsAccount->product_name }}
USD {{ number_format($withdrawal->amount, 2) }} {{ $withdrawal->description ?? 'N/A' }} {{ $withdrawal->transaction_date->format('M d, Y') }} {{ $withdrawal->creator->name ?? 'N/A' }}

No withdrawal transactions found

@if($withdrawals->hasPages())
Showing {{ $withdrawals->firstItem() }} to {{ $withdrawals->lastItem() }} of {{ $withdrawals->total() }} withdrawals
{{ $withdrawals->appends(request()->query())->links() }}
@endif
@endsection