@extends($_layout . 'master') @section('title', $page_title) @include($_lib . 'register-meta') @section('content')
@if ($cart && $cart->details && count($cart->details))

{{ scw_text('checkout_page_title') }}

@csrf

{{ scw_text('checkout_page_shipping_adderss') }}

@php $form = $cart->getForm([ 'className' => 'form-control', ]); $info = $form->get( 'billing_name', 'billing_phone_number', 'billing_email', 'billing_country_id', 'billing_region_id', // 'billing_district_id', 'billing_ward_id', 'billing_postal_code', 'billing_address', ); $shipping = $form->get('shipping_name', 'shipping_email', 'shipping_phone_number', 'shipping_region_id', 'shipping_district_id', 'shipping_ward_id', 'shipping_address'); @endphp
@foreach ($info as $input) @if ($input->type == 'hidden') {!! $input !!} @else
{!! $input !!} @if ($input->error)
{{ $input->error }}
@endif
@endif @endforeach @php $input = $form->note; @endphp
{!! $input !!} @if ($input->error)
{{ $input->error }}
@endif
@if ($methods = get_payment_method_options()) @php $old = old('payment_method_id'); @endphp

@foreach ($methods as $v => $method) @endforeach

@if ($err = $errors->first('payment_method_id'))
{{ $err }}
@endif
@endif
{{--

Billing address

--}}
{{ scw_text('checkout_back_to_cart') }}

{{ scw_text('checkout_order_summary') }}

@foreach ($cart->details as $item)
{{ $item->product_name }}

{{ $item->product_name }}

@if ($item->attributes && count($item->attributes)) @foreach ($item->attributes as $attr)

{{ $attr->label ?? $attr->name }}: {{ $attr->text }}

@endforeach @endif

{{ $item->getPriceFormat() }} x {{ $item->quantity }}

@endforeach

{{ scw_text('cart_page_sub_total') }}:

{{ $helper->getCurrencyFormat($cart->sub_total) }}

{{ scw_text('cart_page_shipping_fee') }}:

0

{{ scw_text('cart_page_discount') }}:

0


{{ scw_text('cart_page_total') }}:

{{ $helper->getCurrencyFormat($cart->total_money) }}

{{-- --}}
@else
{{ scw_text('cart_page_empty') }}
@endif
@endsection @section('js') @endsection