@extends('admin.layouts.app', ['title' => 'Dashboard']) @push('scripts') @endpush @section('content') @php $cards = [ ['label' => 'Total Sales', 'value' => '$'.number_format($stats['total_sales'], 2), 'icon' => 'shopping-bag'], ['label' => 'Total Orders', 'value' => number_format($stats['total_orders']), 'icon' => 'shopping-cart'], ['label' => 'Pending Orders', 'value' => number_format($stats['pending_orders']), 'icon' => 'clock'], ['label' => 'Custom Orders', 'value' => number_format($stats['custom_orders']), 'icon' => 'edit-3'], ['label' => 'Completed Orders', 'value' => number_format($stats['completed_orders']), 'icon' => 'check-circle'], ['label' => 'Cancelled Orders', 'value' => number_format($stats['cancelled_orders']), 'icon' => 'x-circle'], ['label' => 'Revenue', 'value' => '$'.number_format($stats['revenue'], 2), 'icon' => 'dollar-sign'], ['label' => 'New Customers', 'value' => number_format($stats['new_customers']), 'icon' => 'users'], ['label' => 'Low Stock', 'value' => number_format($stats['low_stock_products']), 'icon' => 'alert-triangle'], ['label' => 'Payment Proofs', 'value' => number_format($stats['pending_payment_proofs']), 'icon' => 'credit-card'], ]; @endphp
@foreach ($cards as $card)

{{ $card['value'] }}

{{ $card['label'] }}
@endforeach

Sales Charts

Country-wise Sales

Best-selling Products

@forelse ($bestSellingProducts as $product) @empty @endforelse
{{ $product->product_name }}{{ $product->sold }}
No sales yet.

Recent Reviews

@forelse ($stats['recent_reviews'] as $review)

{{ $review->customer_name }} {{ $review->rating }}/5
{{ str($review->comment)->limit(80) }}

@empty

No reviews yet.

@endforelse

Admin Notifications

@forelse ($notifications as $notification)

{{ $notification->title }}
{{ $notification->message }}

@empty

No notifications yet.

@endforelse
@endsection