@php $grandSubtotal = 0; $qty = 0; $option_price = 0; @endphp @if (Session::has('cart')) @foreach (Session::get('cart') as $key => $cart) @php $grandSubtotal = ($cart['main_price'] + $grandSubtotal + $cart['attribute_price']) * $cart['qty']; @endphp
Product

{{ Str::limit($cart['name'], 30) }}

{{ $cart['qty'] }} x {{ PriceHelper::setCurrencyPrice($cart['main_price']) }}
@foreach ($cart['attribute']['option_name'] as $optionkey => $option_name) {{ $cart['attribute']['names'][$optionkey] }}: {{ $option_name }} ({{ PriceHelper::setCurrencyPrice($cart['attribute']['option_price'][$optionkey]) }}) @endforeach
@endforeach @else
{{ __('Your cart is empty') }}

{{ __('You may check out all the available products and buy some in the shop') }}

{{ __('Return to shop') }}
@endif