{{ __('ui.dashboard') }}

{{ __('admin.revenue_help') }}

@foreach ([ __('ui.stat_orders') => $orders, __('ui.stat_pending') => $pending, __('ui.stat_completed') => $completed, __('ui.stat_cancelled') => $cancelled, __('ui.stat_paid') => $paidOrders, __('ui.stat_unpaid') => $unpaid, __('ui.stat_revenue') => '$'.number_format($collectedCents / 100, 2), __('ui.stat_gross') => $grossProfitCents === null ? __('ui.unavailable') : '$'.number_format($grossProfitCents / 100, 2), __('ui.stat_net') => __('ui.unavailable'), __('ui.stat_average') => '$'.number_format($averageCents / 100, 2), ] as $label => $value)

{{ $label }}

{{ $value }}

@endforeach

{{ __('admin.revenue_day') }}

@php $max = max(1, (int) $daily->max('cents')); @endphp
@forelse ($daily as $row)
{{ \Illuminate\Support\Str::substr($row->day, 5) }}
@empty

{{ __('admin.no_paid') }}

@endforelse

{{ __('admin.revenue_month') }}

    @forelse ($monthly as $row)
  • {{ $row['month'] }}${{ number_format($row['cents'] / 100, 2) }}
  • @empty
  • {{ __('admin.no_paid') }}
  • @endforelse

{{ __('admin.year_hint') }}

{{ __('admin.order_status') }}

    @forelse ($statuses as $status => $total)
  • {{ __('admin.'.$status) }}{{ $total }}
  • @empty
  • {{ __('admin.no_orders_range') }}
  • @endforelse

{{ __('admin.best_products') }}

    @forelse ($bestProducts as $product)
  • {{ $product->name_en }}{{ $product->qty }}
  • @empty
  • {{ __('admin.no_product_sales') }}
  • @endforelse

{{ __('admin.best_categories') }}

    @forelse ($bestCategories as $category)
  • {{ $category->name }}{{ $category->qty }}
  • @empty
  • {{ __('admin.no_category_sales') }}
  • @endforelse