{!! html()->form('GET', route('order.index'))->id('filter-form')->open() !!}
{!! html()->label(__('message.select_name', ['select' => __('message.country')]))->for('country_id')->class('form-control-label') !!}
{!! html()->select('country_id', $country, $selectedCountryId)
->class('select2js form-control country')
->id('country_id')
->attribute('data-placeholder', __('message.select_name', ['select' => __('message.country')]))
->attribute('data-allow-clear', 'true')
->attribute('data-ajax--url', route('ajax-list', ['type' => 'country-list'])) !!}
{!! html()->label(__('message.select_name', ['select' => __('message.city')]))->for('city_id')->class('form-control-label') !!}
{!! html()->select('city_id', $cities, $selectedCityId)
->class('select2js form-control city')
->id('city_id')
->attribute('data-allow-clear', 'true')
->attribute('data-placeholder', __('message.select_name', ['select' => __('message.city')]))
!!}
{!! html()->label(__('message.status') . ' *')->for('status')->class('form-control-label')!!}
{!! html()->select('status', ['' => __('message.all'),'draft' => __('message.draft'),'completed' => __('message.delivered'),
'courier_departed' => __('message.departed'),'cancelled' => __('message.cancelled'),'courier_assigned' => __('message.assigned'),
'active' => __('message.accepted'),'courier_arrived' => __('message.arrived'),
'courier_picked_up' => __('message.picked_up'),'shipped' => __('message.shipped'),
'reschedule' => __('message.reschedule'),'create' => __('message.created')
], $params['status'] ?? old($params['status']))
->class('form-control select2js') !!}
{!! html()->label(__('message.from_date') . ' *')->for('from_date')->class('form-control-label') !!}
{!! html()->date('from_date', $params['from_date'] ?? old('from_date'))->placeholder(__('message.date'))->class('form-control min-datepicker select2js')->id('from_date_main') !!}
{!! html()->label(__('message.to') . ' *')->for('to_date')->class('form-control-label')!!}
{!! html()->date('to_date', $params['to_date'] ?? old('to_date'))->placeholder(__('message.date'))->class('form-control min-datepicker select2js')->id('to_date_main') !!}
{!! html()->form()->close() !!}