@foreach($taxons as $taxon)
@if ($taxon->children->isNotEmpty()) @else  {!! icon('>', 'light') !!} @endif @can('edit taxons') {{ $taxon->name }} @else {{ $taxon->name }} @endcan  {{ $taxon->products()->count() }}
@can('create taxons') {!! icon('+') !!} @endcan @can('delete taxons') {{ Form::open([ 'url' => route('vanilo.admin.taxon.destroy', [$taxonomy, $taxon]), 'class' => 'form', 'style' => 'display: inline-flex', 'data-confirmation-text' => __('Delete :name?', ['name' => $taxon->name]), 'method' => 'DELETE' ]) }} {{ Form::close() }} @endcan
@if ($taxon->children->isNotEmpty())
@include('vanilo::taxon._tree', ['taxons' => $taxon->children])
@endif @endforeach