@if ($taxon->children->isNotEmpty())
{!! icon('>') !!}
@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())