@extends('vendor.layouts.app') @section('title', 'Withdrawal Management') @section('page-title', 'My Wallet') @push('styles') @endpush @section('content')

Withdrawal

Manage your earnings and payouts.

Current Date: {{ date('d M, Y') }}

Available Balance

৳{{ number_format($wallet->balance, 2) }}

Total Earned

৳{{ number_format($wallet->total_earned, 2) }}

Total Withdrawn

৳{{ number_format($wallet->total_withdrawn, 2) }}

Request Payout
@csrf
৳
@error('amount')
{{ $message }}
@enderror
Withdrawal History
@forelse($withdrawals as $row) @empty @endforelse
Date Request Method Amount Status Note
{{ $row->created_at->format('d M, Y') }} {{ $row->created_at->format('h:i A') }}
@if($row->payout_method == 'bkash') @endif {{ ucfirst($row->payout_method) }}
{{ $row->account_number ?? 'N/A' }}
৳{{ number_format($row->amount, 2) }} @php $status = $row->status; $badgeClass = 'badge-soft-secondary'; $icon = 'fa-question'; if($status === 'approved') { $badgeClass = 'badge-soft-success'; $icon = 'fa-check'; } elseif($status === 'rejected') { $badgeClass = 'badge-soft-danger'; $icon = 'fa-times'; } elseif($status === 'pending') { $badgeClass = 'badge-soft-warning'; $icon = 'fa-clock'; } @endphp {{ ucfirst($status) }} {{ $row->note ?? '-' }}
No Records Found

You haven't made any withdrawal requests yet.

@if($withdrawals->hasPages())
Showing {{ $withdrawals->firstItem() }} to {{ $withdrawals->lastItem() }} of {{ $withdrawals->total() }} entries
@endif
@endsection