@extends('layouts.user') @section('page-title', __('Dashboard')) @section('content')

{{ __('Wallet Balance') }}

{{ currency($stats['balance']) }}

{{ __('Add funds โ†’') }}

{{ __('Total Orders') }}

{{ number_format($stats['orders']) }}

{{ __('View orders โ†’') }}

{{ __('Active Orders') }}

{{ number_format($stats['active_orders']) }}

{{ __('In progress') }}

{{ __('Referral Earnings') }}

{{ currency($stats['referral_earnings']) }}

{{ __('Invite friends โ†’') }}

{{ __('Recent Orders') }}

{{ __('View all') }}
@if($recentOrders->isEmpty())

{{ __('No orders yet') }}

{{ __('Place your first order') }}
@else @endif

{{ __('Recent Transactions') }}

{{ __('View all') }}
@if($recentTransactions->isEmpty())

{{ __('No transactions yet') }}

@else
@foreach($recentTransactions as $transaction)

{{ $transaction->description ?? ucfirst($transaction->type) }}

{{ $transaction->created_at->diffForHumans() }}

{{ $transaction->isCredit() ? '+' : '' }}{{ currency($transaction->amount) }}
@endforeach
@endif
@endsection