@php $layout = $isMobile ? 'layouts.mobile' : 'layouts.desktop'; $statusStyles = [ 'delivered' => ['bg' => '#dcfce7', 'text' => '#15803d', 'icon' => 'bi-check-circle-fill', 'label' => 'Delivered'], 'shipped' => ['bg' => '#dbeafe', 'text' => '#1d4ed8', 'icon' => 'bi-truck', 'label' => 'Shipped'], 'processing' => ['bg' => '#e0e7ff', 'text' => '#4338ca', 'icon' => 'bi-gear-fill', 'label' => 'Processing'], 'confirmed' => ['bg' => '#e0e7ff', 'text' => '#4338ca', 'icon' => 'bi-check2-circle', 'label' => 'Confirmed'], 'pending' => ['bg' => '#fef3c7', 'text' => '#b45309', 'icon' => 'bi-clock-fill', 'label' => 'Pending'], 'cancelled' => ['bg' => '#fee2e2', 'text' => '#b91c1c', 'icon' => 'bi-x-circle-fill', 'label' => 'Cancelled'], 'returned' => ['bg' => '#fce7f3', 'text' => '#be185d', 'icon' => 'bi-arrow-return-left', 'label' => 'Returned'], 'refunded' => ['bg' => '#f3e8ff', 'text' => '#7e22ce', 'icon' => 'bi-cash-coin', 'label' => 'Refunded'], ]; $status = strtolower($order->order_status); $st = $statusStyles[$status] ?? ['bg' => '#f1f5f9', 'text' => '#475569', 'icon' => 'bi-circle-fill', 'label' => ucfirst($status)]; $progressMap = ['pending' => 15, 'processing' => 40, 'confirmed' => 40, 'shipped' => 70, 'delivered' => 100]; $progress = $progressMap[$status] ?? 0; @endphp @extends($layout) @section('title', 'Order #' . $order->order_number . ' - Gletra') @section('content')
Placed on {{ $order->created_at->format('d M, Y · h:i A') }}
{{ $order->orderItems->count() }} item{{ $order->orderItems->count() !== 1 ? 's' : '' }}
| Product | Qty | Price |
|---|---|---|
|
@php
$productUrl = $item->product ? $item->product->publicUrl() : '#';
@endphp
{{ $item->getProductName() }}
@if($item->vendor)
Sold by: {{ $item->vendor->shop_name }}
@endif
@if($item->variant_name)
{{ $item->variant_name }}
@endif
|
×{{ $item->quantity }} | ₹{{ number_format($item->price, 2) }} |
{{ $log->message }}
@if($log->location) {{ $log->location }} @endifAddress not available.
@endifHave an issue with this order? Submit a query — admin & support team will see your details.
@if($isDelivered ?? false) @else Contact Support @endif