@php use App\Models\Product; use App\Models\ComboProduct; use App\Services\TranslationService; use App\Services\MediaService; use App\Services\CurrencyService; @endphp @if (count($cart_data) < 1)

{{ labels('front_messages.your_cart', 'Your cart') }} (0 {{ labels('front_messages.items', 'Items') }})

{{ labels('front_messages.no_products_in_cart', 'No Products in the Cart') }}

{{ labels('front_messages.continue_shopping', 'Continue shopping') }}
@else

{{ labels('front_messages.your_cart', 'Your cart') }} ({{ count($cart_data['cart_items']) }} {{ labels('front_messages.items', 'Items') }})

    @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 }}
    {{ $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 }}
    product->total_allowed_quantity }}' step='{{ $items->product->quantity_step_size }}' min='{{ $items->product->minimum_order_quantity }}' data-variant-id='{{ $items->product_variant_id }}'>
  • @endforeach
{{ labels('front_messages.total', 'Total') }}:{{ app(CurrencyService::class)->currentCurrencyPrice($cart_data['sub_total'], true) }}
{{ labels('front_messages.terms_and_conditions', 'Terms & conditions') }}
@endif