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

Welcome back, {{ auth()->user()->name }}!

Here's what's happening with your store today.

Total Products

{{ $stats['total_products'] ?? 0 }}

Total Orders

{{ $stats['total_orders'] ?? 0 }}

Pending Orders

{{ $stats['pending_orders'] ?? 0 }}

Revenue

${{ number_format($stats['total_revenue'] ?? 0, 2) }}

Recent Orders

@if(isset($recentOrders) && $recentOrders->count() > 0)
@foreach($recentOrders as $order)

Order #{{ $order->id }}

{{ $order->user->name }}

${{ number_format($order->total_amount, 2) }}

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

@endforeach
@else

No recent orders found.

@endif

Quick Actions

@endsection