@lang('base/cfdi_download.document_title_cfdi_download')

@include('flash::message') @if (!$errors->isEmpty()) @endif

@lang('base/cfdi_download.text_step_1')

{!! Form::open(['route' => 'cfdi-downloads/sat-login','method' => 'POST','class' => 'form-horizontal','role' => 'form','id'=>'form','files' => true]) !!} {!! Form::hidden('token_session', old('token_session', $token_session)) !!} {!! Form::hidden('login_type', old('login_type',$login_type)) !!} @if($login_type == 'login_password')
{!! html_entity_decode(Form::label('rfc', __('base/cfdi_download.entry_rfc') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::text('rfc', old('rfc',$company->taxid), ['class' => 'form-control', 'placeholder' => __('base/cfdi_download.entry_rfc'),'required','readonly']) !!} @if ($errors->has('rfc')) {{ $errors->first('rfc') }} @endif
{!! html_entity_decode(Form::label('password', __('base/cfdi_download.entry_password') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::password('password', ['class' => 'form-control', 'placeholder' => __('base/cfdi_download.entry_password'),'required','autofocus']) !!} @if ($errors->has('password')) {{ $errors->first('password') }} @endif
{!! html_entity_decode(Form::label('', '', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! html_entity_decode(Form::label('captcha', __('base/cfdi_download.entry_captcha') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::text('captcha', old('captcha'), ['class' => 'form-control', 'placeholder' => __('base/cfdi_download.entry_captcha'),'required']) !!} @if ($errors->has('captcha')) {{ $errors->first('captcha') }} @endif
@endif @if($login_type == 'efirma')
{!! html_entity_decode(Form::label('rfc', __('base/cfdi_download.entry_rfc') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::text('rfc', old('rfc',$company->taxid), ['class' => 'form-control', 'placeholder' => __('base/cfdi_download.entry_rfc'),'required','readonly']) !!} @if ($errors->has('rfc')) {{ $errors->first('rfc') }} @endif
{!! html_entity_decode(Form::label('file_file_cer', __('base/company.entry_file_cer') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::text('input_file_cer', old(''), ['class' => 'form-control', 'placeholder' => __('general.text_select'),'readonly','autocomplete'=>'off']) !!} {{__('general.button_search')}}
{!! 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' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::text('input_file_key', old(''), ['class' => 'form-control', 'placeholder' => __('general.text_select'),'readonly','autocomplete'=>'off']) !!} {{__('general.button_search')}}
{!! Form::file('file_file_key', ['class'=> 'hidden', 'accept' => '.key']) !!} @if ($errors->has('file_file_key')) {{ $errors->first('file_file_key') }} @endif
{!! html_entity_decode(Form::label('fiel_password', __('base/cfdi_download.entry_fiel_password') . ' *', ['class' => 'col-md-3 col-xs-12 control-label'])) !!}
{!! Form::password('fiel_password', ['class' => 'form-control', 'placeholder' => __('base/cfdi_download.entry_fiel_password'),'required']) !!} @if ($errors->has('fiel_password')) {{ $errors->first('fiel_password') }} @endif
@endif {!! Form::close() !!}