@php $eventCategoryFilters = (!empty($event) and !empty($event->category)) ? $event->category->filters : null; $eventFilterOptions = (!empty($event) and !empty($event->category)) ? $event->filterOptions->pluck('filter_option_id')->toArray() : []; @endphp

{{ trans('public.category') }}

@error('category_id')
{{ $message }}
@enderror
{{ trans('public.category_filters') }}
@if(!empty($eventCategoryFilters) and count($eventCategoryFilters)) @foreach($eventCategoryFilters as $filter)
{{ $filter->title }} @foreach($filter->options as $option)
id, $eventFilterOptions)) ? 'checked' : '') }} class="custom-control-input" id="filterOptions{{ $option->id }}">
@endforeach
@endforeach @endif