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

Pending Withdrawals

Back to Savings
@if(session('success'))
{{ session('success') }}
@endif
@forelse($withdrawals as $withdrawal) @empty @endforelse
# Client Amount (₵) Reference Created By Date Status Action
{{ $loop->iteration }} {{ optional($withdrawal->client)->surname ?? 'N/A' }} {{ optional($withdrawal->client)->first_name ?? '' }} {{ optional($withdrawal->client)->other_names ?? '' }} {{ number_format($withdrawal->amount, 2) }} {{ $withdrawal->reference ?? '—' }} {{ $withdrawal->recorded_by ?? 'N/A' }} {{ \Carbon\Carbon::parse($withdrawal->created_at)->format('d M Y H:i') }} {{ ucfirst($withdrawal->approval_status) }} @if(in_array(auth()->user()->role, ['manager', 'admin'])) @else N/A @endif
No pending withdrawals found.
{{-- JS for Approve/Reject --}} @endsection