@extends('shop::layouts.master') @section('page_title') {{ __('shop::app.checkout.cart.title') }} @stop @section('content-wrapper') @if ($cart) {{ __('shop::app.checkout.cart.title') }} @csrf {{ __('shop::app.checkout.cart.remove-all-items') }} @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]) !!} {{ $item->product->name }} {!! 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') @if ((bool) core()->getConfigData('general.content.shop.wishlist_option')) @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()) {{ __('shop::app.checkout.cart.update-cart') }} @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
{{ __('shop::app.checkout.cart.empty') }}
{{ __('shop::app.checkout.cart.continue-shopping') }}