@extends('layouts.app')
@php
$heading = !empty($module_category_data['heading']) ? $module_category_data['heading'] : __('category.categories');
$navbar = !empty($module_category_data['navbar']) ? $module_category_data['navbar'] : null;
@endphp
@section('title', $heading)
@section('content')
@if(!empty($navbar))
@include($navbar)
@endif
@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', '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