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

Welcome back, {{ auth()->user()->first_name ?: auth()->user()->username }}!

{{ now()->format('l, F j, Y') }}

{{ $wallet_balance }} {{ config('app.currency') }}

Available Balance

Total Orders
{{ $total_orders }}
Completed Orders
{{ $completed_orders }}
Total Spent
{{ number_format($total_spent, 2) }} {{ config('app.currency') }}
Pending Orders
{{ $pending_orders }}
Spending Overview
Orders Status
Recent Orders
View All
@forelse($recent_orders as $order) @empty @endforelse
Order ID Service Link Quantity Price Status Date Actions
{{ $order->order_id }} {{ $order->service->name }} {{ $order->link }} {{ number_format($order->quantity) }} {{ number_format($order->price, 2) }} {{ config('app.currency') }} @php $statusColors = [ 'pending' => 'warning', 'processing' => 'info', 'in_progress' => 'primary', 'completed' => 'success', 'cancelled' => 'danger', 'refunded' => 'secondary', ]; @endphp {{ ucfirst($order->status) }} {{ $order->created_at->diffForHumans() }}
No orders yet.
Recent Transactions
@forelse($recent_transactions as $transaction)
{{ $transaction->type_badge['text'] }}

{{ $transaction->description }}

{{ $transaction->formatted_amount }}
{{ $transaction->status_badge['text'] }}
@empty

No transactions yet.

@endforelse
Recent Referrals
{{ $referral_count }} Total
@forelse($recent_referrals as $referral)
{{ $referral->referred->username }}

Joined {{ $referral->joined_at->diffForHumans() }}

Earned: {{ number_format($referral->total_earned, 2) }} {{ config('app.currency') }}
@empty

No referrals yet. Share your referral link to earn!

@endforelse
@push('scripts') @endpush @endsection