@php /* $layout_page = shop_checkout **Variables:** - $cart: no paginate - $shippingMethod: string - $paymentMethod: string - $dataTotal: array - $shippingAddress: array - $attributesGroup: array - $products: paginate Use paginate: $products->appends(request()->except(['page','_token']))->links() */ @endphp @extends($sc_templatePath.'.layout') @section('block_main')
@if (count($cart) ==0)
{!! sc_language_render('cart.cart_empty') !!}
@else
@foreach($cart as $item) @php $n = (isset($n)?$n:0); $n++; $product = $modelProduct->start()->getDetail($item->id, null, $item->storeId); @endphp {{-- Render product in cart --}} {{--// Render product in cart --}} @endforeach
No. {{ sc_language_render('product.sku') }} {{ sc_language_render('product.name') }} {{ sc_language_render('product.price') }} {{ sc_language_render('product.quantity') }} {{ sc_language_render('product.subtotal') }}
{{ $n }} {{ $product->sku }} {{ $product->name }}
{{-- Process attributes --}} @if ($item->options->count()) ( @foreach ($item->options as $keyAtt => $att) {{ $attributesGroup[$keyAtt] }}: {!! sc_render_option_price($att) !!} @endforeach )
@endif {{-- //end Process attributes --}}
{!! $product->showPrice() !!} {{$item->qty}} {{sc_currency_render($item->subtotal)}}
{{-- Required csrf for secirity --}} @csrf {{--// Required csrf for secirity --}}
{{-- Display address --}}

{{ sc_language_render('cart.shipping_address') }}:

@if (sc_config('customer_name_kana')) @endif @if (sc_config('customer_phone')) @endif @if (sc_config('customer_postcode')) @endif @if (sc_config('customer_company')) @endif
{{ sc_language_render('order.name') }}: {{ $shippingAddress['first_name'] }} {{ $shippingAddress['last_name'] }}
{{ sc_language_render('order.name_kana') }}: {{ $shippingAddress['first_name_kana'].$shippingAddress['last_name_kana'] }}
{{ sc_language_render('order.phone') }}: {{ $shippingAddress['phone'] }}
{{ sc_language_render('order.email') }}: {{ $shippingAddress['email'] }}
{{ sc_language_render('order.address') }}: {{ $shippingAddress['address1'].' '.$shippingAddress['address2'].' '.$shippingAddress['address3'].','.$shippingAddress['country'] }}
{{ sc_language_render('order.postcode') }}: {{ $shippingAddress['postcode']}}
{{ sc_language_render('order.company') }}: {{ $shippingAddress['company']}}
{{ sc_language_render('cart.note') }}: {{ $shippingAddress['comment'] }}
{{--// Display address --}}
{{-- Total --}}


@foreach ($dataTotal as $key => $element) @if ($element['code']=='total') @elseif($element['value'] !=0) @elseif($element['code'] =='shipping') @endif @endforeach
{!! $element['title'] !!} {{$element['text'] }}
{!! $element['title'] !!} {{$element['text'] }}
{!! $element['title'] !!} {{$element['text'] }}
@if (!sc_config('payment_off')) {{-- Payment method --}}

{{ sc_language_render('order.payment_method') }}:

{{-- //Payment method --}} @endif
{{-- End total --}} {{-- Button process cart --}}
@php $dataButton = [ 'class' => '', 'id' => '', 'type_w' => '', 'type_t' => '', 'type_a' => '', 'type' => 'button', 'name' => ''.sc_language_render('cart.back_to_cart'), 'html' => 'onClick="location.href=\' '.sc_route('cart').' \'"' ]; @endphp @include($sc_templatePath.'.common.button.button', $dataButton)
@php $dataButton = [ 'class' => '', 'id' => '', 'type_w' => '', 'type_t' => 'buy', 'type_a' => '', 'type' => 'submit', 'name' => ''.sc_language_render('cart.confirm'), 'html' => '' ]; @endphp @include($sc_templatePath.'.common.button.button', $dataButton)
{{--// Button process cart --}}
@endif
@endsection @push('scripts') {{-- //script here --}} @endpush @push('styles') {{-- Your css style --}} @endpush