@if ((isset($addressable_type) && $addressable_type == 'App\Models\Customer') || (isset($address) && $address->address_type != 'Primary'))
{!! Form::label('address_title', trans('app.form.address_title')) !!} {!! Form::text('address_title', null, ['class' => 'form-control', 'placeholder' => trans('app.placeholder.address_title')]) !!}
{!! Form::label('address_type', trans('app.form.address_type')) !!} @foreach ($address_types as $address_type) @endforeach

@endif
{!! Form::label('address_line_1', trans('app.form.address_line_1')) !!} {!! Form::text('address_line_1', null, ['class' => 'form-control', 'placeholder' => trans('app.placeholder.address_line_1')]) !!}
{!! Form::label('address_line_2', trans('app.form.address_line_2')) !!} {!! Form::text('address_line_2', null, ['class' => 'form-control', 'placeholder' => trans('app.placeholder.address_line_2')]) !!}
{!! Form::label('city', trans('app.form.city')) !!} {!! Form::text('city', null, ['class' => 'form-control', 'placeholder' => trans('app.placeholder.city')]) !!}
{!! Form::label('zip_code', trans('app.form.zip_code')) !!} {!! Form::text('zip_code', null, ['class' => 'form-control', 'required', 'placeholder' => trans('app.placeholder.zip_code')]) !!}
{!! Form::label('phone', trans('app.form.phone')) !!} {!! Form::text('phone', null, ['class' => 'form-control', 'placeholder' => trans('app.placeholder.phone_number')]) !!}
{!! Form::label('country_id', trans('app.form.country')) !!} {!! Form::select('country_id', $countries, isset($address) ? $address->country_id : config('system_settings.address_default_country'), ['class' => 'form-control select2', 'placeholder' => trans('app.placeholder.country')]) !!}
{!! Form::label('state_id', trans('app.form.state')) !!} {!! Form::select('state_id', $states, isset($address) ? $address->sate_id : config('system_settings.address_default_state'), ['class' => 'form-control select2', 'placeholder' => trans('app.placeholder.state')]) !!}