{{-- ============================================================ resources/views/user/wallet/index.blade.php ============================================================ --}} @extends('layouts.app') @section('title','My Wallet') @section('content') {{-- Balance Cards --}}
Point Balance
{{ number_format($user->points) }}
pts
Cedis Value
{{ number_format($cedisValue,2) }}
GH₵
Rate: 1000 pts = GH₵{{ number_format((float)\App\Models\Setting::get('points_to_cedis_rate',0.001)*1000,2) }}  |  Min withdrawal: GH₵{{ $minWithdraw }}
{{-- Promo Code --}}
🎟 Apply Promo Code
{{-- Withdraw Form --}}
Withdraw Funds
@if($errors->any())
{{ $errors->first() }}
@endif
@csrf
Upload if you've already made payment for verification
{{-- Withdrawal History --}}
Withdrawal History
@forelse($withdrawals as $w)
GH₵{{ number_format($w->net_amount,2) }}
{{ strtoupper($w->method) }} • {{ $w->account_number }}
{{ $w->created_at->format('d M Y, h:i A') }}
{{ ucfirst($w->status) }}
@empty
No withdrawal history yet.
@endforelse
{{-- Transaction History --}}
Transaction History
@forelse($transactions as $tx)
{{ match($tx->type){ 'earn'=>'⭐','bonus'=>'🎁','referral'=>'👥','spin'=>'🎡','game'=>'🎮','withdraw'=>'💸','promo'=>'🎟','offerwall'=>'📋',default=>'💰' } }}
{{ $tx->description }}
{{ $tx->created_at->format('d M Y h:i A') }}
{{ $tx->points>0?'+':'' }}{{ number_format($tx->points) }}
@empty
No transactions yet.
@endforelse
{{ $transactions->links() }}
@endsection @push('scripts') @endpush