@extends('layouts.admin') @section('title', 'Withdrawals') @section('content')
Customer Amount Destination Bank Account Status Date Actions @forelse($withdrawals ?? [] as $withdrawal) {{ $withdrawal->user->name ?? 'N/A' }} {{ $currency ?? '₦' }}{{ number_format($withdrawal->amount, 2) }} {{ $withdrawal->recipient_name ?? 'N/A' }} {{ $withdrawal->bank_name ?? 'N/A' }} {{ $withdrawal->account_number ?? 'N/A' }} {{ ucfirst($withdrawal->status) }} {{ $withdrawal->created_at->format('M d, Y H:i') }}
@if($withdrawal->status === 'pending')
@csrf @method('PATCH')
@endif
@empty

No withdrawals found.

@endforelse
@foreach($withdrawals ?? [] as $withdrawal) @if($withdrawal->status === 'pending') @endif @endforeach @endsection