@extends('layouts.app') @section('title', 'Wallet') @section('content')
{{-- Live Balance --}}

Total Balance

{{ number_format($wallet->points_balance) }} Pts

≈ ${{ number_format($wallet->points_balance * $usdRate, 2) }} USD

lock SHA-256
{{-- Buy Points — all 8 gateways --}}

Top Up Wallet

Select a payment method to buy more points for boosting posts.

@foreach([ ['gateway' => 'stripe', 'icon' => 'credit_card', 'label' => 'Card'], ['gateway' => 'paypal', 'icon' => 'account_balance_wallet', 'label' => 'PayPal'], ['gateway' => 'paystack', 'icon' => 'payments', 'label' => 'Paystack'], ['gateway' => 'flutterwave', 'icon' => 'bolt', 'label' => 'Flutterwave'], ['gateway' => 'mpesa', 'icon' => 'smartphone', 'label' => 'M-Pesa'], ['gateway' => 'mtn_momo', 'icon' => 'smartphone', 'label' => 'MTN MoMo'], ['gateway' => 'bank_transfer', 'icon' => 'account_balance', 'label' => 'Bank Transfer'], ['gateway' => 'crypto', 'icon' => 'currency_bitcoin', 'label' => 'Crypto'], ] as $method) @endforeach
{{-- Points package selector + gateway-specific fields --}}
@foreach($pointsPackages as $package) @endforeach

{{-- Recent Earnings --}}

Recent Earnings

View All
@forelse($recentTransactions as $tx)
{{ $tx->points_delta >= 0 ? 'trending_up' : 'trending_down' }}

{{ Str::headline($tx->type) }}

{{ $tx->created_at->format('M j, g:i A') }}

{{ $tx->points_delta >= 0 ? '+' : '' }}{{ number_format($tx->points_delta) }} Pts
@empty
No transactions yet.
@endforelse
{{-- Right column: ad simulator + quick boost --}}
@if($adStats)

Ad Simulator

trending_up

Impressions Today

{{ number_format($adStats['impressions_today']) }}

Est. Earnings

${{ number_format($adStats['dummy_earnings_today'], 2) }}

@endif

Boost a Post

Use points for reach

rocket_launch
{{-- Cashout Modal --}}

Withdraw Funds

@endsection @push('scripts') @endpush