Resources
@foreach($selectedItems as $selectedItem)
#{{$selectedItem}}
@endforeach
{{--
--}}
{{--
--}}
Categories
@foreach($levels ?? [] as $level)
@if ($level->level == 1)
@foreach ($level->categories as $category)
@endforeach
@elseif(!empty($category_array[$level->level - 1]))
@foreach ($level->categories->where('parent_id', $category_array[$level->level - 1]) as $category)
@endforeach
@else
@endif
@endforeach
Comments
{{-- @if($input_field_modal)--}}
{{-- @if (!empty($distribiution))--}}
{{-- @foreach ($distribiution->group->fields as $fields)--}}
{{-- @php--}}
{{-- if ($fields->required) {--}}
{{-- $ty = $fields->type == 'email' ? '|email' : '';--}}
{{-- $ty = $fields->type == 'number' ? '|numeric' : '';--}}
{{-- $this->input_field_modal_check['input.' . \Illuminate\Support\Str::slug($fields->label)] = 'required' . $ty;--}}
{{-- }--}}
{{-- @endphp--}}
{{-- @if ($fields->type == 'select')--}}
{{-- @php--}}
{{-- $data_value = explode(',', $fields->value);--}}
{{-- @endphp--}}
{{--
--}}
{{-- --}}
{{-- --}}
{{-- --}}
{{-- @foreach ($data_value as $value)--}}
{{-- --}}
{{-- @endforeach--}}
{{-- --}}
{{-- @error('input.' . \Illuminate\Support\Str::slug($fields->label))--}}
{{-- This field can't be empty--}}
{{-- @enderror--}}
{{--
--}}
{{-- @else--}}
{{--
--}}
{{-- --}}
{{-- --}}
{{-- @error('input.' . \Illuminate\Support\Str::slug($fields->label))--}}
{{-- This field can't be empty--}}
{{-- @enderror--}}
{{--
--}}
{{-- @endif--}}
{{-- @endforeach--}}
{{-- @endif--}}
{{-- @else--}}
{{--
--}}
{{--
This will be enabled after choosing categories
--}}
{{--
--}}
{{-- @endif--}}
{{--
--}}
{{--
--}}
{{-- --}}
{{-- --}}
@if($input_field_modal)
@endif