@extends('layouts.app') @section('title', 'My Wallet') @section('content')

My Wallet

Manage your gaming funds and transaction history

Available Balance

₦{{ number_format(auth()->user()->wallet_balance) }}
Ready to use

Locked in Challenges

₦{{ number_format(auth()->user()->locked_balance) }}
In active challenges

Total Value

₦{{ number_format(auth()->user()->wallet_balance + auth()->user()->locked_balance) }}
Combined balance

Quick Actions

Add Funds
Withdraw Funds
@if(auth()->user()->hasTransactionPin())
Transfer Credits
@else
Set PIN
@endif
@if(auth()->user()->hasTransactionPin()) @else

Enable Credit Transfers

Set up a 4-digit PIN to start transferring credits to other players.

@endif

Transaction History

@if(auth()->user()->walletTransactions()->latest()->take(20)->get()->count() > 0)
@foreach(auth()->user()->walletTransactions()->latest()->take(20)->get() as $transaction) @endforeach
Date Type Description Amount Status
{{ $transaction->created_at->format('M j, Y') }}
{{ $transaction->created_at->format('H:i') }}
@if($transaction->type === 'transfer') Transfer Sent @elseif($transaction->type === 'transfer_received') Transfer Received @else {{ ucfirst($transaction->type) }} @endif {{ $transaction->description ?? 'No description' }} {{ $transaction->amount > 0 ? '+' : '' }}₦{{ number_format(abs($transaction->amount)) }} {{ ucfirst($transaction->status) }}
@else
💳

No Transactions Yet

Your transaction history will appear here

Make First Deposit
@endif
@endsection