{{ __('Title') }}
{!! Form::text('title', null, ['class' => 'form-control', 'placeholder' => 'Enter Title']) !!}
{{ __('Required From') }}
{!! Form::select('client_type', ['Person' => 'Person', 'Company' => 'Company', 'Both' => 'Both'], null, ['class' => 'form-control', 'data-kt-select2' => 'true']) !!}
{{-- types --}}
{{ Form::label('contract_type_ids', __('Contract Type'), ['class' => 'col-form-label']) }}
{!! Form::select('contract_type_ids[]', $contract_types, $kyc_document->contractTypes->pluck('id')->toArray(), ['class' => 'form-select', 'data-kt-select2' => 'true', 'multiple', 'data-placeholder' => __('Select Type')]) !!}
{{-- categories --}}
{{ Form::label('contract_category_ids', __('Contract Category'), ['class' => 'col-form-label']) }}
{!! Form::select('contract_category_ids[]', $contract_categories, $kyc_document->contractCategories->pluck('id')->toArray(), ['class' => 'form-select', 'data-kt-select2' => 'true', 'multiple', 'data-placeholder' => __('Select Category')]) !!}
@if(request()->route()->getName() == 'admin.invoice-doc-controls.create' || request()->route()->getName() == 'admin.invoice-doc-controls.edit' )
{{-- Contract --}}
{{ Form::label('contract_ids', __('Contract'), ['class' => 'col-form-label']) }}
{!! Form::select('contract_ids[]', $contracts ?? [], $kyc_document->contracts->pluck('id')->toArray(), [
'class' => 'form-select',
'data-kt-select2' => 'true',
'multiple',
'data-placeholder' => __('Select Contract'),
'data-allow-clear' => 'true',
'data-remote' => route('resource-select', ['Contract'])
]) !!}
{{-- Invoice Type --}}
{{ Form::label('invoice_type', __('Invoice type'), ['class' => 'col-form-label']) }}
{!! Form::select('invoice_type', (['' => 'Both'] + array_combine($invoice_types, $invoice_types)), $kyc_document->invoice_type , ['class' => 'form-select', 'data-kt-select2' => 'true', 'data-placeholder' => __('Both'), 'data-allow-clear' => 'true']) !!}
@endif
{{ __('Required At:') }}
{!! Form::text('required_at',null, ['class' => 'form-control flatpickr']) !!}
{{ __('Required At Type:') }}
{!! Form::select('required_at_type', ['Before' => 'Before', 'After' => 'After', 'On' => 'On'], null, ['class' => 'form-control', 'data-kt-select2' => 'true']) !!}
{{ __('Status:') }}
{!! Form::select('status', ['1' => 'Active', '0' => 'Inactive'], null, ['class' => 'form-control', 'data-kt-select2' => 'true']) !!}
{{ __('Is Mendatory:') }}
{!! Form::select('is_mendatory', ['1' => 'Yes', '0' => 'No'], null, ['class' => 'form-control', 'data-kt-select2' => 'true']) !!}
{{ __('Description:') }}
{!! Form::textarea('description', null, ['class' => 'form-control', 'rows' => 2]) !!}
{{ Form::checkbox('is_expirable', 1, $kyc_document->is_expirable,['class' => 'form-check-input'])}}
Is having Exipiry date?
{{ __('Expiry Date Title:') }}
{!! Form::text('expiry_date_title', null, ['class' => 'form-control', 'rows' => 2]) !!}
{{ __('Is Expiry Date Required:') }}
{!! Form::select('is_expiry_date_required', ['0' => 'No', '1' => 'Yes'], null, ['class' => 'form-control', 'data-kt-select2' => 'true']) !!}
{{-- signatures --}}
{{ Form::checkbox('signable', 1, $kyc_document->signatures_required > 0,['class' => 'form-check-input'])}}
Is signature required?
{{ __('No. of Signatures:') }}
{!! Form::number('signatures_required', $kyc_document->signatures_required, ['class' => 'form-control', 'rows' => 2]) !!}
{{-- end signatures --}}
{{-- stamps --}}
{{ Form::checkbox('stampable', 1, $kyc_document->stamps_required > 0,['class' => 'form-check-input'])}}
Is stamp required?
{{ __('No. of Stamps:') }}
{!! Form::number('stamps_required', $kyc_document->stamps_required, ['class' => 'form-control', 'rows' => 2]) !!}
{{-- end stamps --}}
{{-- Having Refrence Id --}}
{{ Form::checkbox('having_refrence_id', 1, $kyc_document->having_refrence_id,['class' => 'form-check-input'])}}
Has refrence Id?
{{-- End Having Refrence Id --}}
@if(request()->route()->getName() == 'admin.invoice-doc-controls.create' || request()->route()->getName() == 'admin.invoice-doc-controls.edit' )
{{-- is Global --}}
{{ Form::checkbox('is_global', 1, $kyc_document->is_global,['class' => 'form-check-input'])}}
Is Global?
{{-- End is Global --}}
@endif
{{ __('Save') }}