{{ __('adminhub::global.dashboard') }}

{{ __('adminhub::components.dashboard.top_timeframe', [ 'period' => 14 ]) }}
{{ $this->newProductsCount }} {{ __('adminhub::global.new_products') }}
{{ $this->returningCustomersPercent }}% {{ __('adminhub::catalogue.customer.dashboard.returning_customers') }}
{{ $this->orderTotal->formatted }} {{ __('adminhub::catalogue.customer.dashboard.turnover') }}
{{ $this->orderCount }} {{ __('adminhub::catalogue.customer.dashboard.no_of_orders') }}
@livewire('hub.components.dashboard.sales-performance', [ 'from' => $this->from, 'to' => $this->to, ])

{{ __('adminhub::catalogue.customer.dashboard.customer_group_orders') }}

@livewire('hub.components.reporting.apex-chart', ['options' => $this->customerGroupOrders])

{{ __('adminhub::catalogue.orders.dashboard.recent_orders') }}

@foreach ($this->recentOrders as $order) @endforeach
{{ __('adminhub::global.order_ref') }} {{ __('adminhub::global.customer') }} {{ __('adminhub::global.no_items') }} {{ __('adminhub::global.placed_at') }} {{ __('adminhub::global.total') }}
{{ $order->reference }} {{ $order->billingAddress->full_name }} {{ $order->lines_count }} {{ optional($order->placed_at)->format('jS F Y h:ma') }} {{ $order->total->formatted }}

{{ __('adminhub::catalogue.customer.dashboard.top_selling_products') }}

@foreach ($this->topSellingProducts as $product) @endforeach