@if($for)
{{ $for->name }}
{{ Form::hidden('for', shorten(get_class($for))) }} {{ Form::hidden('forId', $for->id) }}
@endif
@foreach($types as $key => $value) @endforeach @if ($errors->has('type'))
{{ $errors->first('type') }}
@endif

{{ Form::text('name', null, [ 'class' => 'form-control form-control-lg' . ($errors->has('name') ? ' is-invalid' : ''), 'placeholder' => __('Name') ]) }} @if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
{{ Form::select( 'country_id', $countries->pluck('name', 'id'), $address->country_id ?: setting('appshell.default.country'), ['class' => 'form-control' . ($errors->has('country_id') ? ' is-invalid' : '')] ) }} @if ($errors->has('country_id'))
{{ $errors->first('country_id') }}
@endif
{{ Form::select('province_id', [], null, [ 'class' => 'form-control' . ($errors->has('province_id') ? ' is-invalid' : '') ]) }} @if ($errors->has('province_id'))
{{ $errors->first('province_id') }}
@endif
{{ Form::text('city', null, ['class' => 'form-control' . ($errors->has('city') ? ' is-invalid' : '')]) }} @if ($errors->has('city'))
{{ $errors->first('city') }}
@endif
{{ Form::text('postalcode', null, ['class' => 'form-control' . ($errors->has('postalcode') ? ' is-invalid' : '')]) }} @if ($errors->has('postalcode'))
{{ $errors->first('postalcode') }}
@endif
{{ Form::text('address', null, ['class' => 'form-control' . ($errors->has('address') ? ' is-invalid' : '')]) }} @if ($errors->has('address'))
{{ $errors->first('address') }}
@endif