@extends("admin_base") @section("title", "Dashboard") @section("style") @endsection @section("content")
{{ $metrics['monthly']['total_orders'] }}
Total Orders
{{ abs($metrics['growth']['orders_growth']) }}% today
{{ number_format($metrics['monthly']['total_revenue']) }}
Total Revenue
{{ abs($metrics['growth']['revenue_growth']) }}% today
{{ $metrics['all_time']['total_customers'] }}
Total Customers
{{ abs($metrics['growth']['customers_growth']) }}% today
{{ $metrics['all_time']['total_products'] }}
Total Products
{{ abs($metrics['growth']['products_growth']) }}% today
Revenue Overview ({{ now()->format('M Y') }})
Order Status Distribution ({{ now()->format('M Y') }})
Top Selling Products ({{ now()->format('M Y') }})
Payment Methods Distribution ({{ now()->format('M Y') }})
@foreach($charts['payment_methods']['labels'] as $index => $label) {{ $label }} @endforeach
Recent Orders
@if($total_orders > 10) View All Orders @endif
@foreach($latest_orders->take(10) as $order) @endforeach
Order ID Customer Amount Status Date
{{ $order->order_number }} {{ $order->contact_name }} ৳{{ number_format($order->total) }} {{ ucfirst($order->order_status) }} {{ $order->created_at->format('d M, Y h:i A') }}
Stock Warnings
@forelse($stock_warnings->take(10) as $warning)
{{ $warning['product'] }}
{{ $warning['variant'] }} - {{ $warning['stock_text'] }}
@empty

No stock warnings

@endforelse
Blog Statistics
Total Posts {{ $blog_stats['total_posts'] }}
Total Comments {{ $blog_stats['total_comments'] }}
Total Reactions {{ $blog_stats['total_reactions'] }}
@endsection @section("script") @endsection