@extends('layouts.vendor') @section('page-title', 'Wallet') @push('styles') @endpush @section('content')
{{-- Page Header --}} {{-- Balance Hero Card --}}
Available Balance
{{ price($wallet->balance) }}
Ready to withdraw · Instant processing
{{-- Stats Row --}}
Total Earned {{ price($wallet->total_earned) }} Lifetime earnings
Total Withdrawn {{ price($wallet->total_withdrawn) }} Paid out to you
Pending {{ price($wallet->pending_amount) }} Processing withdrawals
{{-- Main Content Grid --}}
{{-- Withdrawal Form --}}
Request Withdrawal
@csrf
@error('amount')

{{ $message }}

@enderror

Max: {{ price($wallet->balance) }}

@error('payment_method')

{{ $message }}

@enderror
@error('payment_details')

{{ $message }}

@enderror

Enter the details where you want to receive funds

{{-- Quick Info Sidebar --}}
{{-- Quick Actions --}}
Quick Actions
Withdraw
Analytics
{{-- Recent Transactions --}}
Recent Payouts
@forelse($recentTransactions as $txn)

Withdrawal

{{ $txn->created_at->format('M d, Y') }}

-{{ price($txn->amount) }}

{{ ucfirst($txn->status) }}
@empty

No payouts yet

@endforelse
{{-- Withdrawal History Table --}}
Withdrawal History
@forelse($withdrawals as $w) @empty @endforelse
Date Amount Method Payment Details Status Processed
{{ $w->created_at->format('M d, Y') }}
{{ $w->created_at->format('h:i A') }}
{{ price($w->amount) }} {{ ucfirst(str_replace('_', ' ', $w->payment_method)) }} {{ is_array($w->payment_details) ? ($w->payment_details['details'] ?? '-') : ($w->payment_details ?? '-') }} {{ ucfirst($w->status) }} @if($w->processed_at) {{ $w->processed_at->format('M d') }} @else @endif

No withdrawal history yet

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