@extends('layouts.app') @section('title','Dashboard') @section('header-left')

Good {{ now()->hour < 12 ? 'morning' : (now()->hour < 17 ? 'afternoon' : 'evening') }}, {{ explode(' ', auth()->user()->name)[0] }} 👋

@endsection @section('content') {{-- ── Stats Grid ──────────────────────────────────────────────────────────── --}}
{{-- Total Payout --}}
account_balance_wallet

Total Payout

₦{{ number_format($stats['total_payout'], 0) }}

trending_up Lifetime
{{-- Active --}}

Active

{{ $stats['active'] }}

{{-- Completed --}}

Completed

{{ $stats['completed'] }}

All time
{{-- Pending --}}

Pending

{{ $stats['pending'] }}

hourglass_empty In review
{{-- ── Live Rates Bar ─────────────────────────────────────────────────────── --}}
Rates @foreach($rates as $rate)
{{ $rate->asset_type }} ₦{{ number_format($rate->rate, 0) }}
@endforeach All Rates →
{{-- ── Quick Exchange CTA (mobile) ─────────────────────────────────────────── --}}

Start New Exchange

Convert crypto or gift cards now

swap_horizontal_circle
{{-- ── Recent Transactions Table ────────────────────────────────────────────── --}}

Recent Transactions

{{-- Mobile: Card List ──────────────────────────────────────────────────── --}}
@forelse($recentOrders as $order)
{{ $order->order_type === 'crypto_to_cash' ? 'currency_bitcoin' : 'featured_play_list' }}

{{ $order->asset_type }}

{{ $order->status }}

{{ $order->order_id }}

₦{{ number_format($order->calculated_payout, 0) }}

{{ $order->created_at->format('M d') }}

@if($order->chatThread) chat_bubble @endif
@empty
receipt_long

No transactions yet

Start your first exchange →
@endforelse
{{-- Desktop: Table ───────────────────────────────────────────────────────── --}}
{{-- ── Bottom Cards ──────────────────────────────────────────────────────────── --}}
{{-- CTA Card (hidden on mobile since we have the quick CTA above) --}} {{-- Account Status --}}

verified_user Account Status

Email Verified {{ auth()->user()->email_verified_at ? 'check_circle' : 'warning' }}
Bank Details {{ auth()->user()->account_number ? 'check_circle' : 'warning' }}
Account Status {{ auth()->user()->account_status }}
@unless(auth()->user()->account_number) Add Bank Details @endunless
{{-- Bottom padding for mobile nav --}}
@endsection