{{-- View Sales + Statistics --}}
Congratulations {{ $bestSeller->user->first_name ?? 'N/A' }} 🎉

Best seller of the month

$ {{ number_format($bestSeller->total_spent ?? 0) }}

View Sales
view sales
Statistics
Updated 1 month ago
{{ $totalSales }}
Sales
{{ $totalCustomers }}
Customers
{{ $totalProducts }}
Products
{{ $totalRevenue }}
Revenue
{{-- 4 Mini Cards + Earning Reports --}}
{{-- 4 Stat Mini Cards --}}
{{-- Clients - Current Month --}}
Current Month

Clients

{{ $clientsCurrentMonth ?? 0 }}

{{-- Clients - Last Month --}}
Last Month

Clients

{{ $clientsLastMonth ?? 0 }}

{{-- Orders - Current Month --}}
Current Month

Orders

{{ $ordersCurrentMonth ?? 0 }}

{{-- Orders - Last Month --}}
Last Month

Orders

{{ $ordersLastMonth ?? 0 }}

Earning Reports
Yearly Earnings Overview
{{-- Summary Row --}}
Total Orders
{{ $totalOrders ?? 0 }}
Total Clients
{{ $totalClients ?? 0 }}
Total Profit
{{ $totalProfit ?? 0 }}
{{-- Monthly Report + (Clients/Orders Count) --}}
{{-- Clients/Orders Count Comparison --}}
{{-- Clients Count Comparison --}}
Clients Count

{{ $clientsCompareA }}

{{ $compareYearA }}
VS

{{ $clientsCompareB }}

{{ $compareYearB }}
@php $clientsTotal = ($clientsCompareA + $clientsCompareB) ?: 1; $clientsPctA = round($clientsCompareA / $clientsTotal * 100); @endphp
{{-- Orders Count Comparison --}}
Orders Count
{{ $compareYearA }} / {{ $compareYearB }}

{{ $ordersCompareA }}

{{ $compareYearA }}
VS

{{ $ordersCompareB }}

{{ $compareYearB }}
@php $ordersTotal = ($ordersCompareA + $ordersCompareB) ?: 1; $ordersPctA = round($ordersCompareA / $ordersTotal * 100); @endphp
Monthly Reports
Monthly Earnings Overview
{{-- Filters --}}
{{-- Summary Row --}}
Total Orders
{{ $monthlyReportTotalOrders }}
Total Sales
{{ number_format($monthlyReportTotalSales, 2) }}
{{-- Popular Products --}}
{{ __('home.popular_products') }}
{{ __('home.last_30_days') }}
@forelse($popularProducts as $index => $product) @empty @endforelse
{{ __('products.product') }} {{ __('products.industry') }} {{ __('products.category') }} {{ __('products.price') }} {{ __('products.stock') }} {{ __('products.rate') }}
@if($product->photo) @else
{{ strtoupper(substr($product->name['en'], 0, 1)) }}
@endif
{{ $product->name[app()->getLocale()] }}
{{ $product->industry->name[app()->getLocale()] }} @foreach($product->categories as $category) {{ $category->name[app()->getLocale()] }} @endforeach {{ $product->min_price ? number_format($product->min_price, 2) : '-' }} @if($product->total_stock > 0) {{ __('products.in_stock') }} ({{ $product->total_stock }}) @else {{ __('products.out_of_stock') }} @endif {{ $product->rate }}
{{ __('products.no_products_found') }}
@if($popularProducts->count() > 5) @endif
{{-- Top Orders --}}
{{ __('home.top_orders') }}
{{ __('home.last_30_days') }}
@forelse($topOrders as $index => $order) @empty @endforelse
# {{ __('orders.customer') }} {{ __('orders.branch') }} {{ __('orders.items_count') }} {{ __('orders.status_column') }} {{ __('orders.total') }} {{ __('orders.date') }}
#{{ $order->id }}
@if($order->user->photo) @else
{{ strtoupper(substr($order->user->first_name, 0, 1)) }}
@endif
{{ $order->user->first_name }} {{ $order->user->last_name }}
@if($order->branch) {{ $order->branch->name[app()->getLocale()] }} @else — @endif {{ $order->items_count }} @php $statusColor = match($order->status->value ?? $order->status) { 'pending' => 'warning', 'processing' => 'info', 'delivered' => 'success', 'cancelled' => 'danger', 'refunded' => 'secondary', default => 'secondary', }; @endphp {{ $order->status->label() ?? $order->status }} {{ number_format($order->total, 2) }} {{ $order->date->format('M d, Y') }} {{ $order->date->format('h:i A') }}
{{ __('orders.no_orders_found') }}
@if($topOrders->count() > 5) @endif
{{-- Scripts --}}