|
Title
|
Quantity
|
Price
|
@foreach ($order->orderProducts->mergeRecursive($order->orderVariations) as $orderProduct)
{{ isset($orderProduct->product_variant_id) && !empty($orderProduct->product_variant_id) ? generateVariantProductData($orderProduct->variant->product, $orderProduct->product_variant_id, $orderProduct->variant->productValues->pluck('option_value_id')->toArray())['name'] : optional($orderProduct->product)->getTranslation('title', 'ar') }}
@if ($orderProduct->variant)
{{ optional(optional($orderProduct->variant)->product)->getTranslation('title', 'en') }}
@else
{{ optional($orderProduct->product)->getTranslation('title', 'en') }}
@endif
|
{{ $orderProduct->qty }}
|
{{ $orderProduct->sale_price }}
|
@endforeach