@php /* $layout_page = shop_cart **Variables:** - $cart: no paginate - $countries: array - $attributesGroup: array */ @endphp @extends($sc_templatePath.'.layout') @section('block_main')
@if (count($cart) ==0)
{!! sc_language_render('cart.cart_empty') !!}!
@else @php $cartTmp = $cart->groupBy('storeId'); @endphp {{-- Render cart item for earch shop --}} @foreach ($cartTmp as $sId => $cartItem)
{{ sc_store('title', $sId) }}
@csrf {{-- Item cart detail --}} @include($sc_templatePath.'.common.cart_list', ['cartItem' => $cartItem]) {{-- //Item cart detail --}} {{-- Button checkout --}}
@php $dataButton = [ 'class' => '', 'id' => '', 'type_w' => '', 'type_t' => 'buy', 'type_a' => '', 'type' => 'submit', 'name' => ''.sc_language_render('cart.checkout'), 'html' => '' ]; @endphp @include($sc_templatePath.'.common.button.button', $dataButton)
{{-- Button checkout --}}
@endforeach {{--// Render cart item for earch shop --}} @endif
@endsection @push('scripts') {{-- //script here --}} @endpush @push('styles') {{-- Your css style --}} @endpush