@if (!empty($config['table']['filter'])) @foreach ($config['table']['filter'] as $k_f => $f) @if (!empty($f['status'])) @php $label = $f['label'] ?? __("field.{$k_f}"); @endphp
@if ($f['type'] == 'select') @if ($k_f == 'member' && !empty($member)) @else @endif @elseif ($f['type'] == 'selection') @slot('option') @foreach ($f['options'] as $k_o => $o) @endforeach @endslot @elseif ($f['type'] == 'selection_date') @slot('option') @php $opts = [ '1' => __('filter.today'), '2' => __('filter.yesterday'), '3' => __('filter.last_7_days'), '4' => __('filter.last_30_days'), '5' => __('filter.this_month'), '6' => __('filter.last_month'), '7' => __('filter.custom'), ]; @endphp @foreach ($opts as $k => $v) @endforeach @endslot @endif
@endif @endforeach @endif