@extends('shop::layouts.master') @section('page_title') {{ __('shop::app.checkout.cart.title') }} @stop @section('content-wrapper')
@if ($cart)
{{ __('shop::app.checkout.cart.title') }}
@csrf
@csrf @foreach ($cart->items as $key => $item) @php $productBaseImage = $item->product->getTypeInstance()->getBaseImage($item); if (is_null ($item->product->url_key)) { if (! is_null($item->product->parent)) { $url_key = $item->product->parent->url_key; } } else { $url_key = $item->product->url_key; } @endphp
{!! view_render_event('bagisto.shop.checkout.cart.item.name.before', ['item' => $item]) !!} {!! view_render_event('bagisto.shop.checkout.cart.item.name.after', ['item' => $item]) !!} {!! view_render_event('bagisto.shop.checkout.cart.item.price.before', ['item' => $item]) !!}
{{ core()->currency($item->base_price) }}
{!! view_render_event('bagisto.shop.checkout.cart.item.price.after', ['item' => $item]) !!} {!! view_render_event('bagisto.shop.checkout.cart.item.options.before', ['item' => $item]) !!} @if (isset($item->additional['attributes']))
@foreach ($item->additional['attributes'] as $attribute) {{ $attribute['attribute_name'] }} : {{ $attribute['option_label'] }}
@endforeach
@endif {!! view_render_event('bagisto.shop.checkout.cart.item.options.after', ['item' => $item]) !!} {!! view_render_event('bagisto.shop.checkout.cart.item.quantity.before', ['item' => $item]) !!}
@if ($item->product->getTypeInstance()->showQuantityBox() === true) @endif {{ __('shop::app.checkout.cart.remove-link') }} @auth('customer') @php $showWishlist = core()->getConfigData('general.content.shop.wishlist_option') == "1" ? true : false; @endphp @if ($showWishlist) @if ($item->parent_id != 'null' ||$item->parent_id != null) {{ __('shop::app.checkout.cart.move-to-wishlist') }} @else {{ __('shop::app.checkout.cart.move-to-wishlist') }} @endif @endif @endauth
{!! view_render_event('bagisto.shop.checkout.cart.item.quantity.after', ['item' => $item]) !!} @if (! cart()->isItemHaveQuantity($item))
* {{ __('shop::app.checkout.cart.quantity-error') }}
@endif
@endforeach
{!! view_render_event('bagisto.shop.checkout.cart.controls.after', ['cart' => $cart]) !!}
{{ __('shop::app.checkout.cart.continue-shopping') }}
@if ($cart->hasProductsWithQuantityBox()) @endif @if (! cart()->hasError()) @php $minimumOrderAmount = (float) core()->getConfigData('sales.orderSettings.minimum-order.minimum_order_amount') ?? 0; @endphp @endif
{!! view_render_event('bagisto.shop.checkout.cart.controls.after', ['cart' => $cart]) !!}
{!! view_render_event('bagisto.shop.checkout.cart.summary.after', ['cart' => $cart]) !!} @include('shop::checkout.total.summary', ['cart' => $cart]) {!! view_render_event('bagisto.shop.checkout.cart.summary.after', ['cart' => $cart]) !!}
@include ('shop::products.view.cross-sells') @else
{{ __('shop::app.checkout.cart.title') }}

{{ __('shop::app.checkout.cart.empty') }}

{{ __('shop::app.checkout.cart.continue-shopping') }}

@endif
@endsection @push('scripts') @include('shop::checkout.cart.coupon') @endpush