@extends('layouts.app')
@section('title', 'Withdrawals')
@section('content')
@include('partials.admin-nav')
@php use App\Support\Money; @endphp
@foreach(['open' => 'Needs action', 'completed' => 'Completed', 'rejected' => 'Rejected', 'all' => 'All'] as $s => $l)
{{ $l }}
@endforeach
@forelse($withdrawals as $w)
#{{ $w->id }} · {{ $w->user->name }} {{ $w->user->email }}
Debited {{ Money::fmt((string) $w->amount) }} · fee {{ Money::fmt((string) $w->fee) }} · send {{ Money::fmt((string) $w->net_amount) }} USDT on {{ $w->network }}
{{ $w->address }}
Requested {{ $w->created_at->format('d M H:i') }}{{ $w->auto_approved ? ' · auto-approved' : '' }}@if($w->txid) · payout TxID {{ $w->txid }}@endif @if($w->admin_note) · note: {{ $w->admin_note }}@endif
{{ ucfirst($w->status->value) }}
@if(in_array($w->status->value, ['pending', 'approved']))
@if($w->status->value === 'pending')
@else
Approved — send the funds, then record the TxID →
@endif
@endif
@empty
Nothing here.
@endforelse
{{ $withdrawals->links() }}
@endsection