@foreach($order->orderItems as $item)
{{ $item->product->name }}
Qty: {{ $item->quantity }} | Seller: {{ $item->product->vendor->shop_name }}
@php
$statusColors = [
'pending' => ['bg' => 'hsl(36, 100%, 94%)', 'text' => 'hsl(36, 100%, 45%)'],
'confirmed' => ['bg' => 'hsl(210, 100%, 96%)', 'text' => 'hsl(210, 100%, 45%)'],
'shipped' => ['bg' => 'hsl(190, 100%, 94%)', 'text' => 'hsl(190, 100%, 40%)'],
'delivered' => ['bg' => 'hsl(142, 70%, 94%)', 'text' => 'hsl(142, 70%, 35%)'],
'cancelled' => ['bg' => 'hsl(0, 100%, 96%)', 'text' => 'hsl(0, 100%, 45%)'],
];
$st = $order->order_status;
$colors = $statusColors[$st] ?? ['bg' => '#f8f9fa', 'text' => '#6c757d'];
@endphp
{{ $st }}
@endforeach