{{-- resources/views/components/category-tree-accordion.blade.php Recursive accordion for AdvertiseType::buildTree() output. Requires --color-primary-50 ... --color-primary-900 defined in app.css and mapped in tailwind.config as colors.primary.{50..900} (or Tailwind v4 @theme with --color-primary-*, which works out of the box). Usage: Listening for a selection (e.g. in a parent Alpine/Livewire component):
Or with Livewire:
Links: Each node links to a filtered listing: /?filter[category_id]={id} Change the base path via the `base-url` prop if you don't want it on `/`. --}} @props([ 'categories' => [], 'level' => 0, 'baseUrl' => '/', ])