@extends('layouts.front') @section('title')@lang('Shipping Details') - {{config('app.name')}}@endsection @section('styles') @include('partials.phone_style') @endsection @section('scripts') @include('partials.phone_script') @endsection @section('content')
@include('partials.front.sidebar')

@lang('Shipping Address')

@if(session()->has('address_updated')) @endif @include('includes.form_errors')
{!! Form::model($customer, ['method'=>'patch', 'action'=>['FrontCustomersController@update', $customer->id], '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', $customer->phone, ['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