@push('css') @endpush

{{ __('ticket::static.categories.categories') }}

@if (!Request::is('admin/ticket/category')) {{ __('ticket::static.categories.add_category') }} @endif
    @if (isset($categories)) @forelse ($categories as $category)
  1. {{ __('ticket::static.categories.drag') }}
    {{ $category->name }} @php $route = route('admin.ticket.category.edit', [$category->id]) . '?locale=' . app()->getLocale(); @endphp
    @if (!$category?->childs?->isEmpty()) @include('ticket::admin.category.childs', [ 'childs' => $category->childs, ]) @endif
  2. @empty
    {{ __('ticket::static.categories.no_category_found') }}
    @endforelse @endif
@push('scripts') @endpush