@extends('layouts.admin') @section('page-title', 'Withdrawal Details') @section('content')

Withdrawal #{{ $withdrawal->id }}

Requested on {{ $withdrawal->created_at->format('M d, Y \a\t g:i A') }}

@php $badgeClass = match($withdrawal->status) { 'pending' => 'badge-yellow', 'approved' => 'badge-green', 'rejected' => 'badge-red', default => 'badge-gray', }; @endphp {{ ucfirst($withdrawal->status) }}

Promoter

{{ $withdrawal->user->name }}

{{ $withdrawal->user->email }}

@if($withdrawal->user->phone)

{{ $withdrawal->user->phone }}

@endif

Payment Details

{{ ucfirst(str_replace('_', ' ', $withdrawal->payment_method)) }}

@if($withdrawal->payment_details) @foreach($withdrawal->payment_details as $key => $value)

{{ ucfirst(str_replace('_', ' ', $key)) }}: {{ $value }}

@endforeach @endif

Amount

${{ number_format($withdrawal->amount, 2) }}

@if($withdrawal->notes)

Notes

{{ $withdrawal->notes }}

@endif @if($withdrawal->processed_at)

Processed By

{{ $withdrawal->processor?->name ?? 'Unknown' }}

{{ $withdrawal->processed_at->format('M d, Y \a\t g:i A') }}

@endif @if($withdrawal->status === 'pending')

Actions

@csrf
@endif
@endsection