@foreach ($children as $specie)
@if ($specie->children->count() > 0)
{{ $specie->title }}({{ $specie->count_category }})
@if ($specie->children->count() > 0)
@component('front.components.specie_children', [
'children' => $specie->children,
'level' => ++$level,
])
@endcomponent
@endif
@else
@if ($specie->determinations->count() > 0)
{{ $specie->title }}
@else
{{ $specie->title }}
@endif
@endif
@endforeach