@extends('backEnd.layouts.master') @section('title','Order Process') @section('css') @endsection @section('content')
| SL | Image | Product | Color | Size | Price | Qty | Total |
|---|---|---|---|---|---|---|---|
| {{ $key + 1 }} | {{-- ✅ Product Image --}}
|
{{-- ✅ Product Name --}}
{{ $product->product_name }} | {{ ($product->color && $product->color->name) ? $product->color->name : ($product->product_color ?: 'N/A') }} | @php $sizeDisplay = 'N/A'; if ($product->size) { $sizeDisplay = $product->size->sizeName ?? $product->size->size_name ?? $product->size->name ?? 'N/A'; } elseif ($product->product_size) { // If product_size is an ID, fetch the Size model $s = \App\Models\Size::find($product->product_size); if ($s) { $sizeDisplay = $s->sizeName ?? $s->size_name ?? 'N/A'; } elseif (!is_numeric($product->product_size)) { // If it's not numeric, it might be a direct size name string $sizeDisplay = $product->product_size; } } @endphp{{ $sizeDisplay }} | ৳{{ number_format($displayPrice, 2) }} | {{ $product->qty }} | ৳{{ number_format($displayPrice * $product->qty, 2) }} |