{!! Form::open(['url' => action([\Modules\AccountingReports\Http\Controllers\LoanController::class, 'store']), 'method' => 'post', 'id' => 'add_loan_form', 'files' => true]) !!}

@lang('accounting-reports::lang.add_loan')

{!! Form::label('loan_name', __('accounting-reports::lang.loan_name') . ':*') !!} {!! Form::text('loan_name', null, ['class' => 'form-control', 'required', 'placeholder' => __('accounting-reports::lang.loan_name')]) !!}

@lang('accounting-reports::lang.loan_name_help')

{!! Form::label('description', __('accounting-reports::lang.description') . ':') !!} {!! Form::textarea('description', null, ['class' => 'form-control', 'rows' => '3', 'placeholder' => __('accounting-reports::lang.description')]) !!}
{!! Form::label('loan_amount', __('accounting-reports::lang.loan_amount') . ':*') !!}
{!! Form::text('loan_amount', null, ['class' => 'form-control input_number', 'required']) !!}
{!! Form::label('loan_date', __('accounting-reports::lang.loan_date') . ':*') !!}
{!! Form::text('loan_date', @format_date('now'), ['class' => 'form-control date-picker', 'required', 'readonly']) !!}
{!! Form::label('interest_rate', __('accounting-reports::lang.interest_rate') . ':') !!}
{!! Form::text('interest_rate', 0, ['class' => 'form-control input_number', 'placeholder' => '0.00']) !!} %
{!! Form::label('interest_type', __('accounting-reports::lang.interest_type') . ':') !!} {!! Form::select('interest_type', ['flat' => __('accounting-reports::lang.flat'), 'reducing' => __('accounting-reports::lang.reducing')], 'flat', ['class' => 'form-control select2', 'style' => 'width:100%']) !!}
{!! Form::label('maturity_date', __('accounting-reports::lang.maturity_date') . ':') !!}
{!! Form::text('maturity_date', null, ['class' => 'form-control date-picker', 'readonly']) !!}
{!! Form::label('location_id', __('purchase.business_location') . ':') !!} {!! Form::select('location_id', $locations, null, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select'), 'style' => 'width:100%']) !!}

@lang('accounting-reports::lang.lender_information')

{!! Form::label('lender_name', __('accounting-reports::lang.lender_name') . ':*') !!} {!! Form::text('lender_name', null, ['class' => 'form-control', 'required', 'placeholder' => __('accounting-reports::lang.lender_name')]) !!}
{!! Form::label('lender_contact', __('accounting-reports::lang.lender_contact') . ':') !!} {!! Form::text('lender_contact', null, ['class' => 'form-control', 'placeholder' => __('accounting-reports::lang.lender_contact')]) !!}
{!! Form::label('lender_address', __('accounting-reports::lang.lender_address') . ':') !!} {!! Form::textarea('lender_address', null, ['class' => 'form-control', 'rows' => '2', 'placeholder' => __('accounting-reports::lang.lender_address')]) !!}

@lang('accounting-reports::lang.account_information')

@lang('accounting-reports::lang.liability_account_auto_created')
{!! Form::label('payment_account_id', __('accounting-reports::lang.payment_account') . ':') !!} {!! Form::select('payment_account_id', $payment_accounts, null, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select'), 'style' => 'width:100%']) !!}

@lang('accounting-reports::lang.payment_account_help')

{!! Form::label('reference_no', __('accounting-reports::lang.reference_no') . ':') !!} {!! Form::text('reference_no', null, ['class' => 'form-control', 'placeholder' => __('accounting-reports::lang.reference_no')]) !!}
{!! Form::label('document', __('purchase.attach_document') . ':') !!} {!! Form::file('document', ['class' => 'form-control', 'accept' => 'image/*,.pdf,.doc,.docx,.xls,.xlsx']) !!}

@lang('lang_v1.max_file_size_10mb')

{!! Form::close() !!}