@extends('layouts.customer') @section('content')

Withdrawals

@if(isset($dailyLimit))
Daily Withdrawal Limit ${{ number_format($dailyLimit->remaining ?? 0, 2) }} remaining
@endif
{{-- Withdrawal Form --}}

Request Withdrawal

@if($errors->any())
@foreach($errors->all() as $error)

{{ $error }}

@endforeach
@endif
@csrf @method('POST')

$0.00

$
@error('pin')

{{ $message }}

@enderror
{{-- Withdrawal History --}}

Withdrawal History

@forelse($withdrawals as $withdrawal) @empty @endforelse
Date Amount Destination Bank Status
{{ $withdrawal->created_at->format('M d, Y') }} ${{ number_format($withdrawal->amount, 2) }} {{ $withdrawal->account_number }} {{ $withdrawal->bank }} {{ ucfirst($withdrawal->status) }} View

No withdrawals yet

@if($withdrawals->hasPages())
{{ $withdrawals->links() }}
@endif
@endsection