@php $cart = Session::has('cart') ? Session::get('cart') : []; $total = 0; $option_price = 0; $cartTotal = 0; @endphp

{{ __('Your Shopping Cart') }}

@foreach ($cart as $key => $item) @php $cartTotal += ($item['main_price'] + $total + $item['attribute_price']) * $item['qty']; @endphp @endforeach
{{ __('Product Name') }} {{ __('Product Price') }} {{ __('Quantity') }} {{ __('Subtotal') }} {{ __('Clear Cart') }}
Product

{{ Str::limit($item['name'], 45) }}

@foreach ($item['attribute']['option_name'] as $optionkey => $option_name) {{ $item['attribute']['names'][$optionkey] }}: {{ $option_name }} ({{ PriceHelper::setCurrencyPrice($item['attribute']['option_price'][$optionkey]) }}) @endforeach
{{ PriceHelper::setCurrencyPrice($item['main_price']) }} @if ($item['item_type'] == 'normal')
@endif
{{ PriceHelper::setCurrencyPrice($item['main_price'] * $item['qty']) }}

{{ __('Cart Summary') }}

  • {{ __('Total Items') }}:
    {{ count($cart) }}
  • {{ __('Total Price') }}:
    {{ PriceHelper::setCurrencyPrice($cartTotal) }}
  • @if (Session::has('coupon'))
  • {{ __('Discount') }} ({{ Session::get('coupon')['code']['title'] }}):
    {{ PriceHelper::setCurrencyPrice(Session::get('coupon')['discount']) }}
  • @endif
@csrf

Taxes and shipping calculated at checkout