@props(['cartItem', 'is_save_later_hide', 'is_remove_from_cart', 'product_availability', 'for_checkout']) @php use App\Models\Product; use App\Models\ComboProduct; use App\Services\TranslationService; use App\Services\CurrencyService; use App\Services\MediaService; $language_code = app(TranslationService::class)->getLanguageCode(); @endphp @if ($cartItem->cart_product_type == 'regular') {{-- @dd($cartItem['product_variants']); --}} @if ($is_remove_from_cart == 0) @endif @php $cart_image = app(MediaService::class)->dynamic_image($cartItem->product->image, 84); $product_name = app(TranslationService::class)->getDynamicTranslation(Product::class, 'name', $cartItem->product->id, $language_code); @endphp {{ $product_name }}
{{ $product_name }}
@if (isset($product_availability) && $product_availability['is_deliverable'] == false)

{{ $product_name }} is Not deliverable at Selected Address

@endif @php $variant_values = $cartItem['product_variants'][0]['variant_values']; $variant_values = str_replace(',', '/', $variant_values); @endphp {!! $variant_values . ($variant_values != '' ? '
' : '') !!}{{ labels('front_messages.qty', 'Qty') }}: {{ $cartItem->qty }}
{{ app(CurrencyService::class)->currentCurrencyPrice($cartItem->productVariant->special_price, true) }}
@if ($is_save_later_hide == 0) @endif @php $finalPrice = $cartItem->productVariant->special_price && $cartItem->productVariant->special_price > 0 ? app(CurrencyService::class)->currentCurrencyPrice($cartItem->productVariant->special_price, true) : app(CurrencyService::class)->currentCurrencyPrice($cartItem->productVariant->price, true); @endphp {{ $finalPrice }}
@if ($for_checkout != 1)
@else {{ $cartItem->qty }} @endif
@php $priceToUse = $cartItem->productVariant->special_price && $cartItem->productVariant->special_price > 0 ? $cartItem->productVariant->special_price : $cartItem->productVariant->price; $cart_total = $priceToUse * $cartItem->qty; @endphp {{ app(CurrencyService::class)->currentCurrencyPrice($cart_total, true) }} @else @if ($is_remove_from_cart == 0) @endif @php $cart_image = app(MediaService::class)->dynamic_image($cartItem->product->image, 84); $combo_product_name = app(TranslationService::class)->getDynamicTranslation( ComboProduct::class, 'title', $cartItem->product->id, $language_code, ); @endphp {{ $combo_product_name }}
{{ $combo_product_name }}
@if (isset($product_availability) && $product_availability['is_deliverable'] == false)

{{ $combo_product_name }} is Not deliverable at Selected Address

@endif
{{ labels('front_messages.qty', 'Qty') }}: {{ $cartItem->qty }}
{{ app(CurrencyService::class)->currentCurrencyPrice($cartItem->productVariant->special_price, true) }}
@if ($is_save_later_hide == 0) @endif @php $priceToDisplay = $cartItem->productVariant->special_price && $cartItem->productVariant->special_price > 0 ? $cartItem->productVariant->special_price : $cartItem->productVariant->price; @endphp {{ app(CurrencyService::class)->currentCurrencyPrice($priceToDisplay, true) }}
@if ($for_checkout != 1)
@else {{ $cartItem->qty }} @endif
@php $priceToUse = $cartItem->productVariant->special_price && $cartItem->productVariant->special_price > 0 ? $cartItem->productVariant->special_price : $cartItem->productVariant->price; $cart_total = $priceToUse * $cartItem->qty; @endphp {{ app(CurrencyService::class)->currentCurrencyPrice($cart_total, true) }} @endif