@extends('layouts.front') @section('title') @lang('Shipping Details') @endsection @section('styles') @include('partials.phone_style') @endsection @section('scripts') @include('partials.phone_script') @endsection @section('content')
@if(session()->has('payment_fail')) @endif @include('includes.form_errors') @if(count($addresses) > 0)

{!! Form::open(['method'=>'post', 'action'=>'FrontCustomersController@startPaymentSession', 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait') . '"; return true;']) !!} @foreach($addresses as $key => $address)
{{$address->first_name . ' ' . $address->last_name}},
{{$address->address}}
{{$address->city . ', ' . $address->state . ' - ' . $address->zip}}
{{$address->country}}.
@lang('Phone:') {{$address->phone}}
@lang('Email:') {{$address->email}}

@endforeach
{!! Form::submit( __('Proceed to Payment'), ['class'=>'btn btn-success', 'name'=>'submit_button']) !!}
{!! Form::close() !!}
@endif
@lang('Shipping Details')
{!! Form::open(['method'=>'post', 'action'=>'FrontCustomersController@store', 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "'. __('Please Wait') . '"; return true;']) !!}
{!! Form::label('first_name', __('First Name:') ) !!} {!! Form::text('first_name', null, ['class'=>'form-control', 'placeholder'=>__('Enter first name'), 'required'])!!}
{!! Form::label('last_name', __('Last Name:') ) !!} {!! Form::text('last_name', null, ['class'=>'form-control', 'placeholder'=>__('Enter last name'), 'required'])!!}
{!! Form::label('address', __('Address:') ) !!} {!! Form::textarea('address', null, ['class'=>'form-control', 'placeholder'=>__('Enter address'), 'rows'=>'6', 'required'])!!}
{!! Form::label('city', __('City:') ) !!} {!! Form::text('city', null, ['class'=>'form-control', 'placeholder'=>__('Enter city'), 'required'])!!}
{!! Form::label('state', __('State:') ) !!} {!! Form::text('state', null, ['class'=>'form-control', 'placeholder'=>__('Enter state'), 'required'])!!}
{!! Form::label('zip', __('Zip:') ) !!} {!! Form::text('zip', null, ['class'=>'form-control', 'placeholder'=>__('Enter zip'), 'required'])!!}
@include('partials.countries_field')
{!! Form::label('phone-number', __('Phone:') ) !!} {!! Form::text('phone-number', null, ['class'=>'form-control', 'placeholder'=>__('Enter your phone number'), 'required'])!!}
{!! Form::label('email', __('Email:') ) !!} {!! Form::email('email', null, ['class'=>'form-control', 'placeholder'=>__('Enter your email address'), 'required'])!!}
{!! Form::close() !!}
@endsection