@php
$subTotal = 0;
@endphp
@foreach ($order_package->products as $key => $package_product)
| {{$key+1}} |
{{ @$package_product->seller_product_sku->product->product_name??@$package_product->seller_product_sku->sku->product->product_name }}
|
@if (@$package_product->seller_product_sku->sku->product->product_type == 2)
{{ __('product.qty') }}: {{ getNumberTranslate($package_product->qty) }}
@php
$countCombinatiion = count(@$package_product->seller_product_sku->product_variations);
@endphp
@foreach (@$package_product->seller_product_sku->product_variations as $key => $combination)
@if ($combination->attribute->id == 1)
{{ $combination->attribute->name }}:
{{ $combination->attribute_value->color->name }}
@else
{{ $combination->attribute->name }}:
{{ $combination->attribute_value->value }}
@endif
@if ($countCombinatiion > $key + 1)
@endif
@endforeach
|
@else
{{__('product.qty') }}: {{ $package_product->qty }} |
@endif
{{ single_price($package_product->price) }} |
{{ single_price($package_product->price * $package_product->qty) }}
@php
$subTotal += $package_product->price * $package_product->qty;
@endphp
|
@endforeach