@if($order->orderdetails && $order->orderdetails->count() > 0)
@foreach($order->orderdetails->take(3) as $detail)
@php
$productSlug = null;
if ($detail->product && $detail->product->slug) {
$productSlug = $detail->product->slug;
}
$productImage = null;
// First try to get image from product relationship
if ($detail->product && $detail->product->image) {
$productImage = $detail->product->image->image;
}
// Fallback: try to get from orderdetails image relationship
elseif ($detail->image) {
$productImage = $detail->image->image;
}
@endphp
@if($productImage)
@if($productSlug)
@else
 }})
@endif
@else
@endif
৳{{ number_format($detail->sale_price * $detail->qty) }}
@endforeach
@if($order->orderdetails->count() > 3)
+ আরও {{ $order->orderdetails->count() - 3 }} টি পণ্য
@endif
@else
কোন পণ্যের তথ্য পাওয়া যায়নি
@endif
কাস্টমার পেমেন্ট
৳{{ number_format($order->customer_payable_amount ?? 0) }}
লাভ: ৳{{ number_format($order->reseller_profit ?? 0) }}