{{-- resources/views/dashboard/overview.blade.php --}} @extends('layouts.user') @section('title', 'Dashboard Overview') @section('content')
{{-- ── Page Header ── --}}

Portfolio Overview

Welcome back, {{ auth()->user()->name }} — here's your account at a glance.

{{-- ── HERO: Ring + 4 stat cards ── --}}
{{-- Donut ring --}}
Net Balance
${{ number_format($walletSummary['available_balance'], 2) }}
{{ $walletSummary['completed_transactions'] }} tx
Available ${{ number_format($walletSummary['available_balance'],2) }}
Profit ${{ number_format($walletSummary['total_profit'],2) }}
In Trades ${{ number_format($walletSummary['trade_balance'],2) }}
Withdrawn ${{ number_format($walletSummary['total_withdrawals'],2) }}
Bonuses ${{ number_format($walletSummary['total_bonus'],2) }}
{{-- 2×2 stat cards --}}
Available Balance
${{ number_format($walletSummary['available_balance'], 2) }}
Ready to use
Total Profit
${{ number_format($walletSummary['total_profit'], 2) }}
All profit credits
Total Withdrawn
${{ number_format($walletSummary['total_withdrawals'], 2) }}
Completed withdrawals
Trade Balance
${{ number_format($walletSummary['trade_balance'], 2) }}
Locked in positions
{{-- ── Mini stats row ── --}}
Completed
{{ $walletSummary['completed_transactions'] }}
Settled
Pending
{{ $walletSummary['pending_transactions'] }}
Processing
Stock Orders
{{ $recentOrders->count() }}
{{ $activeStockOrdersCount }} active
Total Bonuses
${{ number_format($walletSummary['total_bonus'], 2) }}
Admin rewards
{{-- ── Recent Transactions ── --}}
Latest Wallet Activity
Your most recent wallet transactions
View All
Reference Asset Type Amount Status
@forelse($recentTransactions as $tx) @php $isCredit = $tx->direction === 'credit'; @endphp
{{ $tx->reference }}
{{ $tx->created_at?->format('M d, Y · H:i') }}
{{ $tx->asset }}
{{ ucfirst($tx->type) }}
{{ ucfirst($tx->direction) }}
{{ number_format((float)$tx->amount, 8) }}
{{ ucfirst($tx->status) }}
@empty
No wallet transactions yet.
@endforelse
{{-- ── Recent Stock Orders ── --}}
Latest Stock Orders
Your most recent investment positions
Trade Now
Symbol Qty Price Order Value Payment Status
@forelse($recentOrders as $order)
{{ strtoupper(substr($order->symbol,0,2)) }}
{{ $order->symbol }}
{{ $order->created_at?->format('M d, Y · H:i') }}
{{ number_format((float)$order->quantity, 6) }}
${{ number_format((float)$order->price_snapshot, 2) }}
${{ number_format((float)$order->order_value, 2) }}
{{ ucfirst($order->payment_status) }}
{{ ucfirst(str_replace('_',' ',$order->order_status)) }}
@empty
No stock orders yet. Start trading →
@endforelse
{{-- /ov-page --}} @endsection @push('scripts') @endpush