{{-- Sales Statistics Row --}}

Total Orders

{{ number_format($totalOrders) }}

All time

Revenue

${{ number_format($totalRevenue, 2) }}

From paid orders

Pending Orders

{{ number_format($pendingOrders) }}

Awaiting action

Today's Orders

{{ number_format($todayOrders) }}

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

{{-- User Statistics Row --}}

Total Users

{{ $totalUsers }}

New Users Today

{{ $newUsers }}

Active Users

{{ $activeUsers }}

Verified Users

{{ $verifiedUsers }}

{{-- Recent Orders Section --}} @if($recentOrders->count() > 0)

Recent Orders

View all →
@foreach($recentOrders as $order) @endforeach
Order # Customer Date Total Status
{{ $order->order_number }} {{ $order->buyer_email }} {{ $order->ordered_at?->format('M j, Y') ?? $order->created_at->format('M j, Y') }} ${{ number_format($order->total_amount, 2) }} @php $statusColors = [ 'pending' => 'yellow', 'confirmed' => 'blue', 'processing' => 'indigo', 'shipped' => 'purple', 'delivered' => 'green', 'cancelled' => 'zinc', 'refunded' => 'red', ]; @endphp {{ ucfirst($order->status) }}
@endif {{-- Recent Users Section --}}

Recent Users

@foreach($recentUsers as $user) @endforeach
Name Email Last Active Registered Status
{{ $user->name }} {{ $user->email }} @php $status = $user->getActivityStatus(); @endphp @if($status === 'Active') {{ $status }} @elseif($status === 'Never') {{ $status }} @else {{ $status }} @endif {{ $user->created_at->diffForHumans() }} @if($user->email_verified_at) Verified @else Pending @endif