{{-- The Opportunities search and filter bar. Included by index.blade.php and sharing its variables ($select, $chips, $shown, $filtersOn, $members, $types, $sources, $priorities). --}} {{-- Search and filters: one bar, the rarely-used filters behind "Filters", and a chip per filter that is on. --}} @php $pill = 'inline-flex h-10 items-center gap-1.5 whitespace-nowrap rounded-xl border px-3 text-sm font-medium transition'; $quiet = 'rounded-xl border-slate-200 bg-slate-50 py-2 pl-3 pr-9 text-sm text-slate-700 shadow-sm transition focus:border-indigo-500 focus:bg-white focus:ring-indigo-500'; $fieldLabel = 'mb-1 block text-[11px] font-semibold uppercase tracking-wider text-slate-400'; $dueOptions = ['' => __('Any'), 'overdue' => __('Overdue'), 'today' => __('Today'), 'week' => __('7 days'), 'none' => __('None')]; @endphp
@if (trim($search) !== '') @endif
@if ($view === 'list') @else @endif
{{ __('Next action') }}
@foreach ($dueOptions as $key => $label) @endforeach
@if ($view === 'list')
@endif
{{ $view === 'board' ? trans_choice(':n opportunity on the board|:n opportunities on the board', $shown, ['n' => number_format($shown)]) : trans_choice(':n opportunity|:n opportunities', $shown, ['n' => number_format($shown)]) }} @foreach ($chips as $name => $chip) {{ $chip['label'] }}: {{ $chip['value'] }} @endforeach @if ($filtersOn) @endif