@if ($statuses->count())
{!! Former::select('filter_status')
->label('status')
->addOption(trans('texts.all'), '')
->fromQuery($statuses, 'name', 'public_id')
->data_bind('value: filterStatusId') !!}
@endif
{!! Former::select('filter_state')
->label('filter')
->addOption(trans('texts.all'), 'all')
->addOption(trans('texts.stopped'), 'stopped')
->addOption(trans('texts.running'), 'running')
->data_bind('value: filterState') !!}
{!! Former::select('sort_field')
->addOption(trans('texts.date'), 'createdAt')
->addOption(trans('texts.duration'), 'duration')
->addOption(trans('texts.client'), 'client')
->addOption(trans('texts.project'), 'project')
->addOption(trans('texts.description'), 'description')
->data_bind('value: sortField, event: {change: onSortChange}') !!}
{!! Former::select('sort_direction')
->addOption(trans('texts.ascending'), 'ascending')
->addOption(trans('texts.descending'), 'descending')
->data_bind('value: sortDirection, event: {change: onSortChange}') !!}