@extends('tree.app')
@section('styles')
@endsection
@section('content')
@include('content::category.tree.navbar')
@if (!empty($data))
@foreach ($data as $item)
@if (!empty($item->children) && $item->children->count())
-
{{ $item->name ?? '' }}
@include('content::category.tree.children', [
'param' => $item->children,
])
@else
-
{{ $item->name }}
@endif
@endforeach
@endif
@endsection
@section('scripts')
{{ module_vite('build-content', 'resources/assets/js/category.js') }}
@endsection