{{ $keywords['Item Price'] ?? __('Item Price') }}:
{{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, $item['product_price']) }}
{{ $keywords['Quantity'] ?? __('Quantity') }}:
{{ $item['qty'] }}
@php
$variation_total = 0;
@endphp
@if (!empty($item['variations']))
@foreach ($item['variations'] as $k => $itm)
@php
$variation_total = $variation_total + $itm['price'];
//show variations name
$vNameId = App\Models\User\ProductVariationContent::where(
'product_variation_id',
$itm['variation_id'],
)
->pluck('variation_name')
->first();
$variant_id = App\Models\VariantContent::where('id', $vNameId)->pluck('variant_id')->first();
$variation_name = App\Models\VariantContent::where([
['variant_id', $variant_id],
['language_id', $userCurrentLang->id],
])
->pluck('name')
->first();
//show variation options name
$vOptionId = App\Models\User\ProductVariantOptionContent::where([
['language_id', $userCurrentLang->id],
['product_variant_option_id', $itm['option_id']],
])
->pluck('option_name')
->first();
$vOptionName = App\Models\VariantOptionContent::where([
['language_id', $userCurrentLang->id],
['id', $vOptionId],
])
->pluck('option_name')
->first();
@endphp
|
{{ $variation_name }}:
|
{{ $vOptionName }}
-({{ symbolPrice($userCurrentCurr->symbol_position, $userCurrentCurr->symbol, $itm['price']) }})
|
@endforeach
@endif