@php /* $layout_page = shop_checkout **Variables:** - $cartItem: collection - $storeCheckout: int - $shippingMethod: string - $paymentMethod: string - $totalMethod: array - $dataTotal: array - $shippingAddress: array - $countries: array - $attributesGroup: array */ @endphp @extends($sc_templatePath.'.layout') @section('block_main')
@if (count($cartItem) ==0)
{!! sc_language_render('cart.cart_empty') !!}!
@else
{{ sc_store('title', $storeCheckout) }}
{{-- Item cart detail --}} @include($sc_templatePath.'.common.checkout_list', ['cartItem' => $cartItem]) {{-- //Item cart detail --}}
@csrf
{{-- Begin address shipping --}}
{{-- Select address if customer login --}} @if (auth()->user())
@endif {{--// Select address if customer login --}} {{-- Render address shipping --}} @if (sc_config('customer_lastname')) @else @endif @if (sc_config('customer_name_kana')) @endif @if (sc_config('customer_phone')) @else @endif @if (sc_config('customer_country')) @endif @if (sc_config('customer_postcode')) @endif @if (sc_config('customer_company')) @endif @if (sc_config('customer_address1')) @endif @if (sc_config('customer_address2')) @endif @if (sc_config('customer_address3')) @endif
@if($errors->has('first_name')) {{ $errors->first('first_name') }} @endif @if($errors->has('last_name')) {{ $errors->first('last_name') }} @endif @if($errors->has('first_name')) {{ $errors->first('first_name') }} @endif
@if($errors->has('first_name_kana')) {{ $errors->first('first_name_kana') }} @endif @if($errors->has('last_name_kana')) {{ $errors->first('last_name_kana') }} @endif
@if($errors->has('email')) {{ $errors->first('email') }} @endif @if($errors->has('phone')) {{ $errors->first('phone') }} @endif @if($errors->has('email')) {{ $errors->first('email') }} @endif
@php $ct = old('country',$shippingAddress['country']); @endphp @if ($errors->has('country')) {{ $errors->first('country') }} @endif
@if($errors->has('postcode')) {{ $errors->first('postcode') }} @endif @if($errors->has('company')) {{ $errors->first('company') }} @endif
@if($errors->has('address1')) {{ $errors->first('address1') }} @endif
@if($errors->has('address2')) {{ $errors->first('address2') }} @endif
@if($errors->has('address3')) {{ $errors->first('address3') }} @endif
{{-- //Render address shipping --}}
{{--// End address shipping --}}
{{-- Total --}}
{{-- Data total --}} @include($sc_templatePath.'.common.render_total') {{-- Data total --}} {{-- Total method --}}
@if($errors->has('totalMethod')) {{ $errors->first('totalMethod') }} @endif
@foreach ($totalMethod as $key => $plugin) @includeIf($plugin['pathPlugin'].'::render') @endforeach
{{-- //Total method --}} @if (!sc_config('shipping_off')) {{-- Shipping method --}}

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

@if($errors->has('shippingMethod')) {{ $errors->first('shippingMethod') }} @endif
@foreach ($shippingMethod as $key => $shipping)
{{-- Render view --}} @includeIf($shipping['pathPlugin'].'::render') {{-- //Render view --}} @endforeach
{{-- //Shipping method --}} @endif @if (!sc_config('payment_off')) {{-- Payment method --}}

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

@if($errors->has('paymentMethod')) {{ $errors->first('paymentMethod') }} @endif
@foreach ($paymentMethod as $key => $payment)
{{-- Render view --}} @includeIf($payment['pathPlugin'].'::render') {{-- //Render view --}} @endforeach
{{-- //Payment method --}} @endif
{{-- End total --}} {{-- Button checkout --}}
{!! $viewCaptcha ?? ''!!} @php $dataButton = [ 'class' => '', 'id' => 'sc_button-form-process', 'type_w' => '', 'type_t' => 'buy', 'type_a' => '', 'type' => 'submit', 'name' => ''.sc_language_render('cart.checkout'), 'html' => 'onClick="location.href=\' '.sc_route('cart').' \'"' ]; @endphp @include($sc_templatePath.'.common.button.button', $dataButton)
{{-- Button checkout --}}
@endif
@endsection @push('scripts') {{-- Render script from total method --}} @foreach ($totalMethod as $key => $plugin) @includeIf($plugin['pathPlugin'].'::script') @endforeach {{--// Render script from total method --}} {{-- Render script from shipping method --}} @foreach ($shippingMethod as $key => $plugin) @includeIf($plugin['pathPlugin'].'::script') @endforeach {{--// Render script from shipping method --}} {{-- Render script from payment method --}} @foreach ($paymentMethod as $key => $plugin) @includeIf($plugin['pathPlugin'].'::script') @endforeach {{--// Render script from payment method --}} @endpush @push('styles') {{-- Your css style --}} @endpush