@foreach($goods_subjects_discount_all as $one_subject) @if($one_subject->allChildren->isEmpty()) @if((is_array($goods_subjects_for_check) && in_array($one_subject->id, $goods_subjects_for_check)))
id, $filters_elements['subject']) ? 'checked' : '' }} hidden>
@endif @else
{{ $one_subject->name }}
@if($one_subject->allChildren && $one_subject->allChildren->isNotEmpty()) @include('front.templates.catalog.filter-subjects-multilevel',['goods_subjects_discount_all' => $one_subject->allChildren->sortByDesc('allChildren'), 'is_child' => 1, 'goods_subjects_for_check' => $goods_subjects_for_check]) @endif
@endif @endforeach