-
@foreach ($cart_data['cart_items'] as $items)
@php
$pro_image = app(MediaService::class)->dynamic_image($items->product->image, 70);
$language_code = app(TranslationService::class)->getLanguageCode();
$product_name = '';
if ($items->cart_product_type == 'combo') {
$product_name = app(TranslationService::class)->getDynamicTranslation(
ComboProduct::class,
'title',
$items->product->id,
$language_code,
);
} else {
$product_name = app(TranslationService::class)->getDynamicTranslation(
Product::class,
'name',
$items->product->id,
$language_code,
);
}
@endphp
-
{{ $product_name }} @if ($items->cart_product_type != 'combo'){{ $items['product_variants'][0]['variant_values'] }}@endif@php $price = app(CurrencyService::class)->currentCurrencyPrice($items->productVariant->price, true); $special_price = isset($items->productVariant->special_price) && $items->productVariant->special_price > 0 ? app(CurrencyService::class)->currentCurrencyPrice($items->productVariant->special_price, true) : $price; @endphp @if ($special_price !== $price) {{ $price }} @endif {{ $special_price }}
@endforeach