File: D:/HostingSpaces/SBogers10/helder.komma.pro/resources/views/shop/pages/checkout/index.blade.php
@php
/** @var \Illuminate\Database\Eloquent\Collection $addresses */
/** @var string $title */
/** @var string $radioPrefix */
/** @var \App\Komma\Globalization\RegionInfo $regionInfo */
@endphp
@extends('site.master')
@section('content')
<div class="c-body o-blocks">
<div class="l-grid o-block">
<div class="grid-col col-md-12">
<div class="panel panel-default">
<div class="panel-heading">@lang('shop/checkout.checkout')</div>
<div class="panel-body">
<form class="form-horizontal" method="POST" action="{{ route('checkout') }}">
{{ csrf_field() }}
{{ method_field('POST') }}
<!--Step 1. User must enter invoice details-->
<div class="">
<h2>@lang('shop/checkout.invoice_address')</h2>
@include('shop.partials.checkout.invoice_details', ['lastUsedInvoiceAddress' => $lastUsedInvoiceAddress, 'addresses' => $addresses])
</div>
<!--Step 2. User must enter or choose shipping address. Can be the same as invoice adress, And may be the address of a picking point, organized by a courier-->
<div class="">
<h2>@lang('shop/checkout.shipping_address')</h2>
@include('shop.partials.checkout.shipping_details', ['lastUsedShippingAddress' => $lastUsedShippingAddress, 'addresses' => $addresses])
</div>
<!--Step 3. Coupon code-->
<div class="">
<h2>@lang('shop/discounts.coupon')</h2>
@include('shop.partials.checkout.coupon_code')
</div>
<!--Step 4. Show order details-->
<div class="" dusk="order_details_container">
<h2>@lang('shop/checkout.order_details')</h2>
@include('shop.partials.checkout.order_details')
</div>
<!--Step 5. Remarks-->
<div class="">
<h2>@lang('shop/checkout.remarks')</h2>
<textarea title="@lang('shop/checkout.remarks')" name="remarks" dusk="remarks" cols="30" rows="10"></textarea>
</div>
<!--Step 7. Terms and conditions-->
<div class="terms_and_conditions">
<h2>@lang('shop/checkout.terms_and_conditions')</h2>
<input type="hidden" name="terms_and_conditions" value="0"> <!--Sends 0 instead of nothing when terms_and_conditions checkbox isn't checked-->
<label for="terms_and_conditions">@lang('shop/checkout.agree_to_terms')</label> <input id="terms_and_conditions" type="checkbox" name="terms_and_conditions" dusk="terms_and_conditions" value="1">
@if($errors->has('terms_and_conditions'))<br><span style="color: red;">@foreach ($errors->get('terms_and_conditions') as $error) {{ $error }} @endforeach</span>@endif
</div>
<label class="submitButtonHolder">
<input class="button filled blue arrow" type="submit" dusk="checkout" value="@lang('shop/cart.checkout')">
<span class="arrow"></span>
</label>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection