@extends('backend.layout.exposcale') @section('page_title', 'Wallet Withdraw Requests') @section('content')
@forelse($withdrawals as $wd) @empty @endforelse
ID Date Client Amount Status Actions
#{{ $wd->id }} {{ $wd->created_at ? $wd->created_at->format('d M Y H:i') : 'β€”' }} {{ $wd->user ? trim($wd->user->first_name . ' ' . $wd->user->last_name) : 'Unknown' }} {{ $wd->currency }} {{ number_format($wd->amount, 2) }} @php $statusColor = match(strtolower($wd->status)) { 'completed', 'approved' => 'var(--green)', 'pending', 'processing' => 'var(--amber)', 'failed', 'rejected' => 'var(--red)', default => 'var(--muted2)' }; @endphp {{ $wd->status }}
@if(!in_array(strtolower($wd->status), ['rejected', 'completed', 'approved'])) @endif
No withdrawal requests found.
@if($withdrawals->hasPages())
{{ $withdrawals->links('pagination::bootstrap-4') }}
@endif
@endsection @section('page_scripts') @endsection