{!! Form::open(['route' => 'cfdi-downloads/store-deposit','method' => 'POST','class' => '','role' => 'form','id'=>'form_modal_cfdi_download_deposit_create']) !!}

{!! __('base/cfdi_download.text_modal_cfdi_download_deposit_create') !!}

{!! html_entity_decode(Form::label('date', __('base/cfdi_download.entry_date') . ' *', ['class' => 'control-label'])) !!}
{!! Form::text('date', old('date',\App\Helpers\Helper::dateTime(Date::now())), ['class' => 'form-control', 'placeholder' => __('base/cfdi_download.entry_date'),'required','autofocus','autocomplete'=>'off']) !!}
@if ($errors->has('date')) {{ $errors->first('date') }} @endif
{!! html_entity_decode(Form::label('name', __('base/cfdi_download.entry_name') . ' *', ['class' => 'control-label'])) !!} {!! Form::text('name', old('name'), ['class' => 'form-control', 'placeholder' => __('base/cfdi_download.entry_name'),'required']) !!} @if ($errors->has('name')) {{ $errors->first('name') }} @endif
{!! html_entity_decode(Form::label('expense_type_id', __('base/cfdi_download.entry_expense_type_id') . '', ['class' => 'control-label'])) !!} {!! Form::select('expense_type_id', $expense_types,null, ['class' => 'form-control', 'placeholder' => __('general.text_select')]) !!} @if ($errors->has('expense_type_id')) {{ $errors->first('expense_type_id') }} @endif
{!! html_entity_decode(Form::label('receptor', __('base/cfdi_download.entry_receptor') . ' *', ['class' => 'control-label'])) !!} {!! Form::text('receptor', old('receptor'), ['class' => 'form-control', 'placeholder' => __('base/cfdi_download.entry_receptor'),'required']) !!} @if ($errors->has('receptor')) {{ $errors->first('receptor') }} @endif
{!! html_entity_decode(Form::label('operational_type_id', __('base/cfdi_download.entry_operational_type_id') . '', ['class' => 'control-label'])) !!} {!! Form::select('operational_type_id', $operational_types,null, ['class' => 'form-control', 'placeholder' => __('general.text_select')]) !!} @if ($errors->has('operational_type_id')) {{ $errors->first('operational_type_id') }} @endif
{!! html_entity_decode(Form::label('payment_way_id', __('base/cfdi_download.entry_payment_way_id') . '', ['class' => 'control-label'])) !!} {!! Form::select('payment_way_id', $payment_ways,old('payment_way_id'), ['class' => 'form-control', 'placeholder' => __('general.text_select')]) !!} @if ($errors->has('payment_way_id')) {{ $errors->first('payment_way_id') }} @endif
{!! html_entity_decode(Form::label('currency_id', __('base/cfdi_download.entry_currency_id') . ' *', ['class' => 'control-label'])) !!} {!! Form::select('currency_id', $currencies,old('currency_id',\App\Models\Catalogs\Currency::first()->id), ['class' => 'form-control', 'placeholder' => __('general.text_select'),'required']) !!} @if ($errors->has('currency_id')) {{ $errors->first('currency_id') }} @endif
{!! html_entity_decode(Form::label('currency_value', __('base/cfdi_download.entry_currency_value') . ' *', ['class' => 'control-label'])) !!} {!! Form::number('currency_value', old('currency_value'), ['class' => 'form-control text-center', 'placeholder' => __('base/cfdi_download.entry_currency_value'),'required','step' => 'any']) !!} @if ($errors->has('currency_value')) {{ $errors->first('currency_value') }} @endif
{!! html_entity_decode(Form::label('amount_total', __('base/cfdi_download.entry_amount_total_2') . ' *', ['class' => 'control-label'])) !!} {!! Form::number('amount_total', old('amount_total'), ['class' => 'form-control text-right', 'placeholder' => __('base/cfdi_download.entry_amount_total_2'),'required', 'step' => 'any', 'autocomplete' => 'off']) !!} @if ($errors->has('amount_total')) {{ $errors->first('amount_total') }} @endif
{!! html_entity_decode(Form::label('comment', __('base/cfdi_download.entry_comment_0') . '', ['class' => 'control-label'])) !!} {!! Form::textarea('comment', old('comment'), ['class' => 'form-control', 'placeholder' => __('base/cfdi_download.entry_comment_0'), 'rows' => '2']) !!} @if ($errors->has('comment')) {{ $errors->first('comment') }} @endif
{!! html_entity_decode(Form::label('comment_2', __('base/cfdi_download.entry_comment_2') . '', ['class' => 'control-label'])) !!} {!! Form::textarea('comment_2', old('comment_2'), ['class' => 'form-control', 'placeholder' => __('base/cfdi_download.entry_comment_2'), 'rows' => '2']) !!} @if ($errors->has('comment_2')) {{ $errors->first('comment_2') }} @endif
{!! Form::button(__('general.button_save'),['type' => 'submit', 'class' => 'btn btn-sm btn-primary']) !!}   
{!! Form::close() !!}