@extends('layouts.admin') @section('title', 'Dashboard') @section('page_title', 'Dashboard') @section('content')
{{ $totalOrders }}
Total Orders
{{ \App\Support\Currency::symbol() }}{{ number_format($totalRevenue, 0) }}
Total Revenue
{{ $totalProducts }}
Products
{{ $totalUsers }}
Customers
Recent Orders
@forelse($recentOrders as $order) @empty @endforelse
Order # Customer Amount Status Date Action
{{ $order->order_number }} {{ $order->user->name }} {{ \App\Support\Currency::symbol() }}{{ number_format($order->total, 2) }} {{ ucfirst($order->status) }} {{ $order->created_at->format('M d, Y') }} View
No orders available
Low Stock Products
@forelse($lowStockProducts as $product)
{{ substr($product->name, 0, 20) }}
Stock: {{ $product->inventory->quantity }}
Low
@empty

All products have good stock levels

@endforelse
@endsection