@props(['cartItem', 'is_save_later_hide', 'is_remove_from_cart', 'product_availability', 'for_checkout'])
{{-- @dd($for_checkout) --}}
@if ($cartItem['cart_product_type'] == 'regular')
|
@if ($is_remove_from_cart == 0)
@endif
|
@php
$cart_image = dynamic_image($cartItem['image'], 84);
@endphp
|
@if (isset($product_availability) && $product_availability['is_deliverable'] == false)
{{ $cartItem['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'] }}
{{ currentCurrencyPrice($cartItem['special_price'], true) }}
|
@if ($is_save_later_hide == 0)
|
@endif
@php
$finalPrice =
$cartItem['special_price'] && $cartItem['special_price'] > 0
? currentCurrencyPrice($cartItem['special_price'], true)
: currentCurrencyPrice($cartItem['price'], true);
@endphp
{{ $finalPrice }}
|
@if ($for_checkout != 1)
@else
{{ $cartItem['qty'] }}
@endif
|
@php
$priceToUse =
$cartItem['special_price'] && $cartItem['special_price'] > 0
? $cartItem['special_price']
: $cartItem['price'];
$cart_total = $priceToUse * $cartItem['qty'];
@endphp
{{ currentCurrencyPrice($cart_total, true) }}
|
@else
|
@if ($is_remove_from_cart == 0)
@endif
|
@php
$cart_image = dynamic_image($cartItem['image'], 84);
@endphp
|
@if (isset($product_availability) && $product_availability['is_deliverable'] == false)
{{ $cartItem['name'] }} is Not deliverable at
Selected Address
@endif
{{ labels('front_messages.qty', 'Qty') }}: {{ $cartItem['qty'] }}
{{ currentCurrencyPrice($cartItem['special_price'], true) }}
|
@if ($is_save_later_hide == 0)
|
@endif
@php
$priceToDisplay =
$cartItem['special_price'] && $cartItem['special_price'] > 0
? $cartItem['special_price']
: $cartItem['price'];
@endphp
{{ currentCurrencyPrice($priceToDisplay, true) }}
|
|
@php
$priceToUse =
$cartItem['special_price'] && $cartItem['special_price'] > 0
? $cartItem['special_price']
: $cartItem['price'];
$cart_total = $priceToUse * $cartItem['qty'];
@endphp
{{ currentCurrencyPrice($cart_total, true) }}
|
@endif