@extends('layouts.portal') @section('title', 'Wallet') @section('portal_title', 'Wallet Balance') @section('portal_subtitle', 'Deposit funds into your wallet and track approval status.') @section('portal_content') @php $balance = (float) ($wallet['balance'] ?? 0); $availableBalance = (float) ($wallet['available_balance'] ?? $balance); $pendingWithdrawals = (float) ($wallet['pending_withdrawals'] ?? 0); $deposits = $wallet['deposits'] ?? []; $cryptoWallets = [ 'Bitcoin address' => 'bc1qgexfnlm6pzzhjyp3eumjsd7m7hc3trrf7yv0ja', 'USDT (TRC20)' => 'F1YVZb4rDpEvdmrWNoBjMqgbsr5rDuX5v5tKEW3oTaDo', 'Ethereum' => '0x4c032Cf0299a056082570613626A394800864a0f', ]; @endphp

Available Wallet Balance

${{ number_format($balance, 2) }}

Available to Withdraw

${{ number_format($availableBalance, 2) }}

Pending Withdrawal

${{ number_format($pendingWithdrawals, 2) }}

Request Withdrawal

Deposit to Wallet

@csrf
@error('amount')

{{ $message }}

@enderror
@error('payment_method')

{{ $message }}

@enderror

Crypto Wallets

@foreach ($cryptoWallets as $label => $address)

{{ $label }}

{{ $address }}

@endforeach

Add your transaction hash or payment note below after sending the deposit.

@error('note')

{{ $message }}

@enderror

Wallet Deposit History

Date Method Status Amount
@forelse ($deposits as $deposit) @php $status = $deposit['status'] ?? 'Pending Payment Review'; $statusClass = match ($status) { 'Payment Completed' => 'bg-emerald-50 text-emerald-700', 'Deposit Approved' => 'bg-emerald-50 text-emerald-700', 'Deposit Rejected' => 'bg-red-50 text-red-700', default => 'bg-amber-50 text-amber-700', }; @endphp
{{ $deposit['submitted_at'] ?? '-' }} {{ $deposit['payment_method'] ?? 'Not selected' }} {{ $status }} ${{ number_format((float) ($deposit['amount'] ?? 0), 2) }}
@empty
- No deposit yet Pending $0.00
@endforelse
@endsection @push('scripts') @endpush