@php
$cat_code_enabled = isset($module_category_data['enable_taxonomy_code']) && !$module_category_data['enable_taxonomy_code'] ? false : true;
@endphp
@php
$can_add = true;
if(request()->get('type') == 'product' && !auth()->user()->can('category.create')) {
$can_add = false;
}
@endphp
@component('components.widget', ['class' => 'box-solid', 'icon' => 'fa fa-layer-group text-primary', 'title' => __( 'category.manage_your_categories' ), 'can_add' => $can_add])
@if($can_add)
@slot('tool')
@endslot
@endif
@if(!empty($module_category_data['taxonomy_label'])) {{$module_category_data['taxonomy_label']}} @else @lang( 'category.category' ) @endif |
@if($cat_code_enabled)
{{ $module_category_data['taxonomy_code_label'] ?? __( 'category.code' )}} |
@endif
@lang( 'lang_v1.description' ) |
@lang( 'messages.action' ) |
@endcomponent
@stop
@section('javascript')
@includeIf('taxonomy.taxonomies_js')
@endsection