{{ __('Shopping cart') }}
{{ __('Review your selected items, update quantities, and get ready for a smooth and easy checkout experience.') }}
@php use Botble\Base\Facades\BaseHelper; use Botble\Ecommerce\Facades\Cart; use Botble\Ecommerce\Facades\EcommerceHelper; use Botble\Ecommerce\Facades\OrderHelper; use Botble\Theme\Facades\Theme; Theme::layout('full-width'); Theme::set('pageTitle', __('Shopping cart')); Theme::set('hideBreadcrumb', true); $cartContent = Cart::instance('cart')->content(); $cartCount = Cart::instance('cart')->count(); $rawSubTotal = Cart::instance('cart')->rawSubTotal(); $rawTax = EcommerceHelper::isTaxEnabled() ? Cart::instance('cart')->rawTax() : 0; $rawTotal = Cart::instance('cart')->rawTotal(); $couponDiscount = $couponDiscountAmount ?? 0; $promotionDiscount = $promotionDiscountAmount ?? 0; $totalDiscount = $couponDiscount + $promotionDiscount; $grandTotal = max(0, $rawTotal - $totalDiscount); $appliedCoupon = session('applied_coupon_code'); @endphp {{-- Wrapper for AJAX replacement after qty/coupon/remove updates. `data.cart_content` from PublicCartController::getDataForResponse re-renders this whole blade — JS swaps this div with the new HTML so totals can never drift out of sync. --}}
{{ __('Review your selected items, update quantities, and get ready for a smooth and easy checkout experience.') }}
{{ __('Looks like you have not added anything to your cart yet.') }}
{{ __('Continue shopping') }}{{ __('Product') }} |
{{ __('Price') }} |
{{ __('Quantity') }} |
{{ __('Total') }} |
|
|---|---|---|---|---|
|
{!! apply_filters('ecommerce_cart_before_item_content', null, $cartItem) !!}
{{ RvMedia::image(
$cartItem->options['image'] ?? $product->original_product->image,
$product->original_product->name,
'thumb'
) }}
{{ $product->original_product->name }}
{!! BaseHelper::clean($product->stock_status_html) !!}
@if (is_plugin_active('marketplace') && $product->original_product->store?->id)
{{ __('Vendor:') }}
{{ $product->original_product->store->name }}
@endif
@if (! empty($cartItem->options['attributes']))
{{ $cartItem->options['attributes'] }}
@endif
@if (EcommerceHelper::isEnabledProductOptions() && ! empty($cartItem->options['options']))
{!! render_product_options_html($cartItem->options['options'], $product->price()->getPrice()) !!}
@endif
@include(
EcommerceHelper::viewPath('includes.cart-item-options-extras'),
['options' => $cartItem->options]
)
{!! apply_filters('ecommerce_cart_after_item_content', null, $cartItem) !!}
|
@include(EcommerceHelper::viewPath('includes.product-price'), [ 'product' => $product, 'priceWrapperClassName' => 'd-flex flex-column gap-1', 'priceClassName' => 'fw-semibold text-primary', 'priceOriginalWrapperClassName' => '', 'priceOriginalClassName' => 'small cl-text-2 text-decoration-line-through', 'priceFormatted' => format_price($cartItem->price), ]) | @include(Theme::getThemeNamespace('views.ecommerce.includes.cart-quantity'), [ 'product' => $product, 'cartItem' => $cartItem, 'key' => $key, ]) | {{ format_price($cartItem->price * $cartItem->qty) }} |