{{-- projects --}}
{!! Form::label('projects', 'Projects') !!}
{!! Form::select('filter_projects', [], [], [
'class' => 'form-select',
'data-kt-select2' => 'true',
'data-placeholder' => __('All'),
'data-allow-clear' => 'true',
'data-remote' => route('resource-select', ['Project', 'hasContract'])
]) !!}
{{-- programs --}}
{!! Form::label('programs', 'Programs') !!}
{!! Form::select('filter_programs', [], [], [
'class' => 'form-select',
'data-kt-select2' => 'true',
'data-placeholder' => __('All'),
'data-allow-clear' => 'true',
'data-remote' => route('resource-select', ['Program', 'hasContract'])
]) !!}
{{-- contract Status --}}
{!! Form::label('fc_status', 'Contract Status') !!}
{!! Form::select('fc_status', $contract_statuses, null, ['class' => 'form-select', 'data-kt-select2' => 'true', 'data-placeholder' => 'All', 'data-allow-clear' => 'true']) !!}
{{-- contract type --}}
{!! Form::label('filter_contract_type', 'Contract Type') !!}
{!! Form::select('filter_contract_type', $contractTypes, null, ['class' => 'form-select', 'data-kt-select2' => 'true', 'data-placeholder' => 'All', 'data-allow-clear' => 'true']) !!}
{{-- client --}}
{!! Form::label('fc_companies', 'Client') !!}
{!! Form::select('fc_companies', [], null, [
'class' => 'form-select',
'data-kt-select2' => 'true',
'data-placeholder' => 'All Clients',
'data-allow-clear' => 'true',
'data-remote' => route('resource-select', ['groupedCompany', 'hasContract']),
]) !!}
{{-- select year$contractDueDateYears --}}
{!! Form::label('fc_ending_in_year', 'Contract Ending In') !!}
{!! Form::select('fc_ending_in_year', $contractDueDateYears, null, ['class' => 'form-select gantt_filter', 'data-kt-select2' => 'true', 'data-placeholder' => 'Any', 'data-allow-clear' => 'true']) !!}
{{-- date range --}}
{!! Form::label('fc_date_range', 'Contract Date Range') !!}
{!! Form::text('fc_date_range', null, [
'class' => 'form-control gantt_filter flatpickr',
'data-flatpickr' => '{"mode": "range"}',
'placeholder' => 'Date Range'
]) !!}
{{-- payment progress --}}
{!! Form::label('payment_progress', 'Payment Progress') !!}
{!! Form::select('payment_progress', [
'' => 'Any',
'no_payment' => 'No Payment', // Replaced 0% with No Payment
'fully_paid' => 'Fully Paid', // Added option for Fully Paid
'overpaid' => 'Overpaid', // Added option for Overpaid
'partially_paid' => 'Partially Paid', // Added option for Partial Paid
'>0-10' => '>0% - 10%',
'10-20' => '10% - 20%',
'20-30' => '20% - 30%',
'30-40' => '30% - 40%',
'40-50' => '40% - 50%',
'50-60' => '50% - 60%',
'60-70' => '60% - 70%',
'70-80' => '70% - 80%',
'80-90' => '80% - 90%',
'90-<100' => '90% - <100%'
], '',
[
'class' => 'form-select',
'data-placeholder' => 'Any',
'data-allow-clear' => 'true',
'data-kt-select2' => 'true',
]) !!}
{{-- miscellaneous filter --}}
{!! Form::label('miscellaneous_filter', 'Contract Miscellaneous') !!}
{!! Form::select('miscellaneous_filter', [
'' => 'Filter',
'Phases' => [
'hasPhases' => 'Has Phases',
'hasPhasesWithoutDueDate' => 'Has Phases Without Due Date',
'doesnthavePhases' => 'Does Not Have Phases',
],
'Retention' => [
'hasRetention' => 'Has Retention',
'doesnthaveRetention' => 'Does Not Have Retention',
],
'Reference Id' => [
'hasReferenceId' => 'Has Reference Id',
'doesnthaveReferenceId' => 'Does Not Have Reference Id',
],
'Invoice' => [
'hasInvoices' => 'Has Invoices',
'doesnthaveInvoices' => 'Does Not Have Invoices',
],
'Currency' => [
'localCurrency' => 'Local Currency',
'foreignCurrency' => 'Foreign Currency',
],
'Expired' => [
'expired_30_days' => 'Expired 30 Days Ago',
'expired_60_days' => 'Expired 30-60 Days Ago',
'expired_90_days' => 'Expired 60-90 Days Ago',
],
'About To Expire' => [
'upcomming_30_day' => 'In 30 Days',
'upcomming_60_day' => 'In 30-60 Days',
'upcomming_90_day' => 'In 60-90 Days',
],
], '',
[
'class' => 'form-select',
'data-placeholder' => 'Filter',
'data-allow-clear' => 'true',
'data-kt-select2' => 'true',
]) !!}