{{ __('Order') }}
{{ $ord_postfix }}{{ $order->order_id }}
{{ __('Date') }}
{{ $order->created_at ? $order->created_at->format('M d, Y') : '' }}
{{ __('Total') }}
{!! price_format(((float) $order->order_total) + ((float) ($order->handlingcharge ?? 0))) !!}
{{ __('Payment') }}
{{ $order->payment_method }}
@php $st = $order->order_status ?? 'Placed'; $cls = $statusColors[$st] ?? 'bg-slate-100 text-slate-700'; @endphp
{{ $st }}
{{ __('View') }}
@foreach(array_slice($order->invoices ? $order->invoices->all() : [], 0, 3) as $inv)
@php
$proName = '';
$img = url('images/no-image.png');
if (isset($inv->variant) && $inv->variant) {
$proName = $inv->variant->products->name ?? '';
if ($inv->variant->variantimages) $img = url('variantimages/thumbnails/' . $inv->variant->variantimages->main_image);
} elseif (isset($inv->simple_product) && $inv->simple_product) {
$proName = $inv->simple_product->product_name ?? '';
if ($inv->simple_product->thumbnail) $img = url('images/simple_products/' . $inv->simple_product->thumbnail);
}
@endphp
@endforeach
@if($itemCount > 3)
{{ $proName }}
{{ __('Qty') }}: {{ $inv->qty ?? 1 }}
+ {{ $itemCount - 3 }} {{ __('more items') }}
@endif