@foreach($selectors as $column => $selector)
{{ $selector['label'] }}
    @foreach($selector['options'] as $value => $option) @php $active = in_array($value, \Illuminate\Support\Arr::get($selected, $column, [])); @endphp
  • {{ $option }} @if(!$active && $selector['type'] == 'many')   @else @endif
  • @endforeach
@endforeach