{!! Form::text('address_title', null, ['id' => 'address_title', 'class' => 'form-control flat', 'placeholder' => trans('theme.placeholder.address_title') . '*', 'pattern' => '^[A-Za-z]+\s[A-Za-z]+$', 'data-error' => trans('app.full_name_required'), 'required']) !!}
{!! Form::text('address_line_1', null, ['id' => 'address_line_1', 'class' => 'form-control flat', 'placeholder' => trans('theme.placeholder.address_line_1') . '*', 'required']) !!}
{!! Form::text('address_line_2', null, ['id' => 'address_line_2', 'class' => 'form-control flat', 'placeholder' => trans('theme.placeholder.address_line_2')]) !!}
@if (is_address_autocomplete_on()) {!! Form::text('country_id', isset($cart) ? $cart->country->name : null, ['id' => 'address_country', 'class' => 'form-control', 'placeholder' => trans('theme.country') . '*', 'required']) !!}
@elseif (isset($one_checkout_form)) {!! Form::text('country_id', $cart->country->name, ['id' => 'address_country', 'class' => 'form-control', 'disabled' => 'true']) !!}
{{ trans('packages.checkout.make_changes_on_cart_page') }}
@else {!! Form::select('country_id', $countries, isset($address) ? null : (isset($cart) ? $cart->ship_to_country_id : config('system_settings.address_default_country')), ['id' => 'address_country', 'class' => 'form-control flat', 'placeholder' => trans('theme.country') . '*', 'required']) !!}
@endif
{!! Form::text('zip_code', null, ['id' => 'postcode', 'class' => 'form-control flat', 'placeholder' => trans('theme.placeholder.zip_code') . '*', 'required']) !!}
{!! Form::text('city', null, ['id' => 'address_city', 'class' => 'form-control flat', 'placeholder' => trans('theme.placeholder.city') . '*', 'required']) !!}
@if (is_address_autocomplete_on()) {!! Form::text('state_id', isset($cart) ? $cart->state->name : null, ['id' => 'address_state', 'class' => 'form-control', 'placeholder' => trans('theme.placeholder.state') . '*', 'required']) !!}
@elseif (isset($one_checkout_form)) {!! Form::text('state_id', $cart->state->name, ['id' => 'address_state', 'class' => 'form-control', 'disabled' => 'true']) !!}
{{ trans('packages.checkout.make_changes_on_cart_page') }}
@else {!! Form::select('state_id', isset($states) ? $states : [], isset($cart) ? $cart->ship_to_state_id : (isset($address) ? null : config('system_settings.address_default_state')), ['id' => 'address_state', 'class' => 'form-control flat', 'placeholder' => trans('theme.placeholder.state') . '*', empty($states) ? '' : 'required']) !!}
@endif
{!! Form::text('phone', null, ['id' => 'address_phone', 'class' => 'form-control flat', 'placeholder' => trans('theme.placeholder.phone_number')]) !!}
{{-- GOOGLE PLACE API --}} @if (is_address_autocomplete_on()) @include('scripts.google_place') @endif