@lang('base/company.document_title')
@if(!empty(setting('multi_taxid')))
@lang('general.button_discard')
@endif
@include('flash::message')
@if (!$errors->isEmpty())
{{ __('general.error_form') }}
@endif
@lang('general.text_add')
{!! Form::open(['route' => 'companies.store','method' => 'POST','class' => '','role' => 'form','id' => 'form','files' => true]) !!}
{!! Form::hidden('image', old('image')) !!}
{!! Form::hidden('file_cer', old('file_cer')) !!}
{!! Form::hidden('file_key', old('file_key')) !!}
{!! Form::hidden('file_pfx', old('file_pfx')) !!}
{!! Form::close() !!}
{!! Form::file('file_image', ['class'=> 'hidden']) !!}
@if ($errors->has('file_image'))
{{ $errors->first('file_image') }}
@endif
{!! html_entity_decode(Form::label('name', __('base/company.entry_name') . ' *', ['class' => 'control-label'])) !!}
{!! Form::text('name', old('name'), ['class' => 'form-control', 'placeholder' => __('base/company.entry_name'),'required','autofocus']) !!}
@if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
{!! html_entity_decode(Form::label('comercial_name', __('base/company.entry_comercial_name') . ' ', ['class' => 'control-label'])) !!}
{!! Form::text('comercial_name', old('comercial_name'), ['class' => 'form-control', 'placeholder' => __('base/company.entry_comercial_name')]) !!}
@if ($errors->has('comercial_name'))
{{ $errors->first('comercial_name') }}
@endif
{!! html_entity_decode(Form::label('tax_regimen_id', __('base/company.entry_tax_regimen_id') . ' *', ['class' => 'control-label'])) !!}
{!! Form::select('tax_regimen_id', $tax_regimens,old('tax_regimen_id'), ['class' => 'form-control', 'placeholder' => __('general.text_select'),'required']) !!}
@if ($errors->has('tax_regimen_id'))
{{ $errors->first('tax_regimen_id') }}
@endif
{!! html_entity_decode(Form::label('tax_regimen_id2', __('base/company.entry_tax_regimen_id2') . '', ['class' => 'control-label'])) !!}
{!! Form::select('tax_regimen_id2', $tax_regimens,old('tax_regimen_id2'), ['class' => 'form-control', 'placeholder' => __('general.text_select')]) !!}
@if ($errors->has('tax_regimen_id2'))
{{ $errors->first('tax_regimen_id2') }}
@endif
{!! html_entity_decode(Form::label('taxid', __('base/company.entry_taxid') . ' *', ['class' => 'control-label'])) !!}
{!! Form::text('taxid', old('taxid'), ['class' => 'form-control text-uppercase', 'placeholder' => __('base/company.entry_taxid'),'required']) !!}
@if ($errors->has('taxid'))
{{ $errors->first('taxid') }}
@endif
{!! html_entity_decode(Form::label('curp', __('base/company.entry_curp') . '', ['class' => 'control-label'])) !!}
{!! Form::text('curp', old('curp'), ['class' => 'form-control text-uppercase', 'placeholder' => __('base/company.entry_curp')]) !!}
@if ($errors->has('curp'))
{{ $errors->first('curp') }}
@endif
{!! html_entity_decode(Form::label('employer_register', __('base/company.entry_employer_register') . '', ['class' => 'control-label'])) !!}
{!! Form::text('employer_register', old('employer_register'), ['class' => 'form-control text-uppercase', 'placeholder' => __('base/company.entry_employer_register')]) !!}
@if ($errors->has('employer_register'))
{{ $errors->first('employer_register') }}
@endif
{!! html_entity_decode(Form::label('email', __('base/company.entry_email') . '', ['class' => 'control-label'])) !!}
{!! Form::email('email', old('email'), ['class' => 'form-control', 'placeholder' => __('base/company.entry_email')]) !!}
@if ($errors->has('email'))
{{ $errors->first('email') }}
@endif
{!! html_entity_decode(Form::label('phone', __('base/company.entry_phone') . '', ['class' => 'control-label'])) !!}
{!! Form::text('phone', old('phone'), ['class' => 'form-control', 'placeholder' => __('base/company.entry_phone')]) !!}
{!! html_entity_decode(Form::label('phone_mobile', __('base/company.entry_phone_mobile') . '', ['class' => 'control-label'])) !!}
{!! Form::text('phone_mobile', old('phone_mobile'), ['class' => 'form-control', 'placeholder' => __('base/company.entry_phone_mobile')]) !!}
{!! html_entity_decode(Form::label('comment', __('base/company.entry_comment') . '', ['class' => 'control-label'])) !!}
{!! Form::textarea('comment', old('comment'), ['class' => 'form-control', 'placeholder' => __('base/company.entry_comment'),'rows' => '2']) !!}
{!! html_entity_decode(Form::label('address_1', __('base/company.entry_address_1') . '', ['class' => 'control-label'])) !!}
{!! Form::text('address_1', old('address_1'), ['class' => 'form-control', 'placeholder' => __('base/company.entry_address_1')]) !!}
{!! html_entity_decode(Form::label('address_2', __('base/company.entry_address_2') . '', ['class' => 'control-label'])) !!}
{!! Form::text('address_2', old('address_2'), ['class' => 'form-control', 'placeholder' => __('base/company.entry_address_2')]) !!}
{!! html_entity_decode(Form::label('address_3', __('base/company.entry_address_3') . '', ['class' => 'control-label'])) !!}
{!! Form::text('address_3', old('address_3'), ['class' => 'form-control', 'placeholder' => __('base/company.entry_address_3')]) !!}
{!! html_entity_decode(Form::label('address_4', __('base/company.entry_address_4') . '', ['class' => 'control-label'])) !!}
{!! Form::text('address_4', old('address_4'), ['class' => 'form-control', 'placeholder' => __('base/company.entry_address_4')]) !!}
{!! html_entity_decode(Form::label('address_5', __('base/company.entry_address_5') . '', ['class' => 'control-label'])) !!}
{!! Form::text('address_5', old('address_5'), ['class' => 'form-control', 'placeholder' => __('base/company.entry_address_5')]) !!}
{!! html_entity_decode(Form::label('address_6', __('base/company.entry_address_6') . '', ['class' => 'control-label'])) !!}
{!! Form::text('address_6', old('address_6'), ['class' => 'form-control', 'placeholder' => __('base/company.entry_address_6')]) !!}
{!! html_entity_decode(Form::label('country_id', __('base/company.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/company.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/company.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/company.entry_postcode') . ' *', ['class' => 'control-label'])) !!}
{!! Form::text('postcode', old('postcode'), ['class' => 'form-control', 'placeholder' => __('base/company.entry_postcode'),'required']) !!}
@if ($errors->has('postcode'))
{{ $errors->first('postcode') }}
@endif
{!! html_entity_decode(Form::label('file_file_cer', __('base/company.entry_file_cer') . '', ['class' => 'control-label'])) !!}
{!! Form::text('input_file_cer', old(''), ['class' => 'form-control', 'placeholder' => __('general.text_select'),'readonly','autocomplete'=>'off']) !!}
{!! Form::file('file_file_cer', ['class'=> 'hidden', 'accept' => '.cer']) !!}
@if ($errors->has('file_file_cer_ext'))
{{ $errors->first('file_file_cer_ext') }}
@endif
{!! html_entity_decode(Form::label('file_file_key', __('base/company.entry_file_key') . '', ['class' => 'control-label'])) !!}
{!! Form::text('input_file_key', old(''), ['class' => 'form-control', 'placeholder' => __('general.text_select'),'readonly','autocomplete'=>'off']) !!}
{!! Form::file('file_file_key', ['class'=> 'hidden', 'accept' => '.key']) !!}
@if ($errors->has('file_file_key_ext'))
{{ $errors->first('file_file_key_ext') }}
@endif
{!! html_entity_decode(Form::label('password_key', __('base/company.entry_password_key') . '', ['class' => 'control-label'])) !!}
{!! Form::password('password_key', ['class' => 'form-control', 'placeholder' => __('base/company.entry_password_key')]) !!}
@if ($errors->has('password_key'))
{{ $errors->first('password_key') }}
@endif
{!! html_entity_decode(Form::label('titular', __('base/company.entry_titular') . '', ['class' => 'control-label'])) !!}
{!! Form::text('titular', old('titular'), ['class' => 'form-control', 'placeholder' => __('base/company.entry_titular'),'readonly']) !!}
{!! html_entity_decode(Form::label('certificate_number', __('base/company.entry_certificate_number') . '', ['class' => 'control-label'])) !!}
{!! Form::text('certificate_number', old('certificate_number'), ['class' => 'form-control', 'placeholder' => __('base/company.entry_certificate_number'),'readonly']) !!}
{!! html_entity_decode(Form::label('date_start', __('base/company.entry_date_start') . '', ['class' => 'control-label'])) !!}
{!! Form::text('date_start', old('date_start'), ['class' => 'form-control', 'placeholder' => __('base/company.entry_date_start'),'readonly']) !!}
{!! html_entity_decode(Form::label('date_end', __('base/company.entry_date_end') . '', ['class' => 'control-label'])) !!}
{!! Form::text('date_end', old('date_end'), ['class' => 'form-control', 'placeholder' => __('base/company.entry_date_end'),'readonly']) !!}
| @lang('general.column_actions') | @lang('base/company.column_bank_account_name') | @lang('base/company.column_bank_account_bank_id') | @lang('base/company.column_bank_account_currency_id') | @lang('base/company.column_bank_account_account_number') |
|---|---|---|---|---|
|
{!! Form::text('item_bank_account[' . $item_bank_account_row . '][name]', old('item_bank_account.' . $item_bank_account_row . '.name'), ['class' => 'form-control input-sm', 'required','id' => 'item_bank_account_name_' . $item_bank_account_row]) !!}
@if ($errors->has('item_bank_account.'.$item_bank_account_row.'.name'))
{{ $errors->first('item_bank_account.'.$item_bank_account_row.'.name') }}
@endif
|
{!! Form::select('item_bank_account[' . $item_bank_account_row . '][bank_id]', $banks,old('item_bank_account.' . $item_bank_account_row . '.bank_id'), ['class' => 'form-control input-sm', 'placeholder' => __('general.text_select'),'required','id' => 'item_bank_account_bank_id_' . $item_bank_account_row]) !!}
@if ($errors->has('item_bank_account.'.$item_bank_account_row.'.bank_id'))
{{ $errors->first('item_bank_account.'.$item_bank_account_row.'.bank_id') }}
@endif
|
{!! Form::select('item_bank_account[' . $item_bank_account_row . '][currency_id]', $currencies,old('item_bank_account.' . $item_bank_account_row . '.currency_id'), ['class' => 'form-control input-sm', 'placeholder' => __('general.text_select'),'required','id' => 'item_bank_account_currency_id_' . $item_bank_account_row]) !!}
@if ($errors->has('item_bank_account.'.$item_bank_account_row.'.currency_id'))
{{ $errors->first('item_bank_account.'.$item_bank_account_row.'.currency_id') }}
@endif
|
{!! Form::text('item_bank_account[' . $item_bank_account_row . '][account_number]', old('item_bank_account.' . $item_bank_account_row . '.account_number'), ['class' => 'form-control input-sm text-center', 'required','id' => 'item_bank_account_account_number_' . $item_bank_account_row]) !!}
@if ($errors->has('item_bank_account.'.$item_bank_account_row.'.account_number'))
{{ $errors->first('item_bank_account.'.$item_bank_account_row.'.account_number') }}
@endif
|
|