@extends('layouts.promoter') @section('page-title', 'Withdrawal History') @section('content')

Withdrawal History

Request Withdrawal
@if($withdrawals->count() > 0)
@foreach($withdrawals as $withdrawal) @endforeach
ID Amount Method Status Processed By Date
#{{ $withdrawal->id }} ${{ number_format($withdrawal->amount, 2) }} {{ ucfirst(str_replace('_', ' ', $withdrawal->payment_method)) }} @php $badgeClass = match($withdrawal->status) { 'pending' => 'badge-yellow', 'approved' => 'badge-green', 'rejected' => 'badge-red', default => 'badge-gray', }; @endphp {{ ucfirst($withdrawal->status) }} {{ $withdrawal->processor?->name ?? '-' }} {{ $withdrawal->created_at->format('M d, Y') }}
{{ $withdrawals->links() }}
@else

No withdrawal requests yet

@endif
@endsection