{{-- contract --}}
@if(!isset($contract))
{!! Form::label('filter_contract', 'Contract') !!}
{!! Form::select('filter_contract', [], '', [
'class' => 'form-select',
'data-kt-select2' => 'true',
'data-remote' => route('resource-select', ['Contract', 'haspayments', 'companies' => @$company->id]),
'data-placeholder' => __('All Contracts'),
'data-allow-clear' => 'true',
]) !!}
@endif
{{-- company --}}
@if(!isset($company))
{!! Form::label('filter_company', 'Client') !!}
{!! Form::select('filter_company', [], [], [
'class' => 'form-select',
'data-kt-select2' => 'true',
'data-placeholder' => __('All Clients'),
'data-allow-clear' => 'true',
'data-remote' => route('resource-select', ['groupedCompany', 'haspayments']),
])!!}
@endif
{{-- invoice--}}
@if(!isset($invoice))
{!! Form::label('filter_invoice', 'Invoice') !!}
{!! Form::select('filter_invoice', [], '', [
'class' => 'form-select',
'data-kt-select2' => 'true',
'data-placeholder' => __('All Invoices'),
'data-allow-clear' => 'true',
'data-remote' => route('resource-select', ['Invoice', 'haspayments']),
]) !!}
@endif
{{-- select year --}}
{!! Form::label('filter_paid_in_year', 'Paid In') !!}
{!! Form::select('filter_paid_in_year', $payment_years, null, ['class' => 'form-select', 'data-kt-select2' => 'true', 'data-placeholder' => 'Any', 'data-allow-clear' => 'true']) !!}
{{-- paid in --}}
{!! Form::label('filter_payment_date_range', 'Payment Date') !!}
{!! Form::date('filter_payment_date_range', null, ['class' => 'form-control flatpickr', 'placeholder' => __('Payment Date'), 'data-flatpickr' => '{"mode": "range"}']) !!}
{{-- invoice_due_date_years --}}
{!! Form::label('filter_due_date_year', 'Due Date') !!}
{!! Form::select('filter_due_date_year', $invoice_due_date_years, null, ['class' => 'form-select', 'data-kt-select2' => 'true', 'data-placeholder' => 'Any', 'data-allow-clear' => 'true']) !!}
{!! Form::label('filter_source_type', 'Source Type') !!}
{!! Form::select('filter_source_type', [
'' => 'All',
'Contract' => 'Contract',
'Expense' => 'Expense',
'Competition' => 'Competition',
], '', ['class' => 'form-select', 'data-kt-select2' => 'true']) !!}
{!! Form::label('filter_invoice_type', 'Invoice Type') !!}
{!! Form::select('filter_invoice_type', [
'' => 'All',
'Contract' => [
'cont-regular' => 'Regular',
'cont-down-payment' => 'Down Payment',
'cont-authority' => 'Authority Invoice',
],
'Expense' => [
'exp-regular' => 'Regular',
'exp-authority' => 'Authority Invoice',
],
'Competition' => [
'comp-regular' => 'Regular',
'comp-authority' => 'Authority Invoice',
],
], '', ['class' => 'form-select', 'data-kt-select2' => 'true']) !!}