@lang('base/branch_office.document_title')
@include('flash::message')
@if (!$errors->isEmpty())
{{ __('general.error_form') }}
@endif
@lang('general.text_add')
{!! Form::open(['route' => 'branch-offices.store','method' => 'POST','class' => '','role' => 'form','id'=>'form','files' => true]) !!}
{!! Form::hidden('logo_docs', old('logo_docs')) !!}
{!! Form::close() !!}
{!! html_entity_decode(Form::label('name', __('base/branch_office.entry_name') . ' *', ['class' => 'control-label'])) !!}
{!! Form::text('name', old('name'), ['class' => 'form-control', 'placeholder' => __('base/branch_office.entry_name'),'required','autofocus']) !!}
@if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
{!! html_entity_decode(Form::label('email', __('base/branch_office.entry_email') . '', ['class' => 'control-label'])) !!}
{!! Form::email('email', old('email'), ['class' => 'form-control', 'placeholder' => __('base/branch_office.entry_email')]) !!}
@if ($errors->has('email'))
{{ $errors->first('email') }}
@endif
{!! html_entity_decode(Form::label('phone', __('base/branch_office.entry_phone') . '', ['class' => 'control-label'])) !!}
{!! Form::text('phone', old('phone'), ['class' => 'form-control', 'placeholder' => __('base/branch_office.entry_phone')]) !!}
{!! html_entity_decode(Form::label('phone_mobile', __('base/branch_office.entry_phone_mobile') . '', ['class' => 'control-label'])) !!}
{!! Form::text('phone_mobile', old('phone_mobile'), ['class' => 'form-control', 'placeholder' => __('base/branch_office.entry_phone_mobile')]) !!}
{!! Form::label('sort_order', __('base/branch_office.entry_sort_order'), ['class' => 'control-label']) !!}
{!! Form::number('sort_order', old('sort_order'), ['class' => 'form-control', 'placeholder' => __('base/branch_office.entry_sort_order')]) !!}
{!! html_entity_decode(Form::label('logo_docs', __('base/branch_office.entry_logo_docs') . ' ', ['class' => 'control-label'])) !!}
{!! Form::file('file_logo_docs', ['class'=> 'hidden']) !!}
@lang('base/branch_office.help_logo_docs')
@if ($errors->has('file_logo_docs'))
{{ $errors->first('file_logo_docs') }}
@endif
{!! html_entity_decode(Form::label('comment', __('base/branch_office.entry_comment') . '', ['class' => 'control-label'])) !!}
{!! Form::textarea('comment', old('comment'), ['class' => 'form-control', 'placeholder' => __('base/branch_office.entry_comment'),'rows' => '2']) !!}
{!! html_entity_decode(Form::label('address_1', __('base/branch_office.entry_address_1') . '', ['class' => 'control-label'])) !!}
{!! Form::text('address_1', old('address_1'), ['class' => 'form-control', 'placeholder' => __('base/branch_office.entry_address_1')]) !!}
{!! html_entity_decode(Form::label('address_2', __('base/branch_office.entry_address_2') . '', ['class' => 'control-label'])) !!}
{!! Form::text('address_2', old('address_2'), ['class' => 'form-control', 'placeholder' => __('base/branch_office.entry_address_2')]) !!}
{!! html_entity_decode(Form::label('address_3', __('base/branch_office.entry_address_3') . '', ['class' => 'control-label'])) !!}
{!! Form::text('address_3', old('address_3'), ['class' => 'form-control', 'placeholder' => __('base/branch_office.entry_address_3')]) !!}
{!! html_entity_decode(Form::label('address_4', __('base/branch_office.entry_address_4') . '', ['class' => 'control-label'])) !!}
{!! Form::text('address_4', old('address_4'), ['class' => 'form-control', 'placeholder' => __('base/branch_office.entry_address_4')]) !!}
{!! html_entity_decode(Form::label('address_5', __('base/branch_office.entry_address_5') . '', ['class' => 'control-label'])) !!}
{!! Form::text('address_5', old('address_5'), ['class' => 'form-control', 'placeholder' => __('base/branch_office.entry_address_5')]) !!}
{!! html_entity_decode(Form::label('address_6', __('base/branch_office.entry_address_6') . '', ['class' => 'control-label'])) !!}
{!! Form::text('address_6', old('address_6'), ['class' => 'form-control', 'placeholder' => __('base/branch_office.entry_address_6')]) !!}
{!! html_entity_decode(Form::label('country_id', __('base/branch_office.entry_country_id') . ' *', ['class' => 'control-label'])) !!}
{!! Form::select('country_id', $countries,old('country_id'), ['class' => 'form-control my-select2', 'placeholder' => __('general.text_select'),'required']) !!}
@if ($errors->has('country_id'))
{{ $errors->first('country_id') }}
@endif
{!! html_entity_decode(Form::label('state_id', __('base/branch_office.entry_state_id') . '', ['class' => 'control-label'])) !!}
{!! Form::select('state_id', [],old('state_id'), ['class' => 'form-control my-select2', 'placeholder' => __('general.text_select')]) !!}
{!! html_entity_decode(Form::label('city_id', __('base/branch_office.entry_city_id') . '', ['class' => 'control-label'])) !!}
{!! Form::select('city_id', [],old('city_id'), ['class' => 'form-control my-select2', 'placeholder' => __('general.text_select')]) !!}
{!! html_entity_decode(Form::label('postcode', __('base/branch_office.entry_postcode') . ' *', ['class' => 'control-label'])) !!}
{!! Form::text('postcode', old('postcode'), ['class' => 'form-control', 'placeholder' => __('base/branch_office.entry_postcode'),'required']) !!}
@if ($errors->has('postcode'))
{{ $errors->first('postcode') }}
@endif