Dashboard
@foreach($metrics as $metric) @endforeach
Gross margin
Revenue
@foreach($countrySales as $sale)
{{ $sale['country'] }}
{{ $sale['percent'] }}%
@endforeach
@foreach($categoryChart['labels'] as $index => $label)
{{ $label }} – {{ $categoryChart['data'][$index] }}%
@endforeach
View all Order ID Customer Status Amount @foreach($recentOrders as $order) {{ $order['id'] }}
{{ $order['customer'] }} {{ $order['product'] }}
@php $type = match ($order['status']) { 'Completed' => 'success', 'Processing' => 'info', 'Cancelled' => 'danger', default => 'warning', }; @endphp {{ $order['status'] }} {{ $order['amount'] }} @endforeach
@push('scripts') @endpush