You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

content-handler.blade.php 637B

12345678910111213141516
  1. @props([
  2. 'item',
  3. ])
  4. @if(isset($item['panelId']))
  5. {{-- Render a submenu toggle for groups in the main panel --}}
  6. <x-panel-shift-dropdown.toggle :label="$item['label']" :icon="$item['icon']" :panel-id="$item['panelId']" />
  7. @elseif(!empty($item['items']))
  8. {{-- For nested groups, recursively render their items --}}
  9. @foreach($item['items'] as $nestedItem)
  10. <x-panel-shift-dropdown.content-handler :item="$nestedItem" />
  11. @endforeach
  12. @elseif(isset($item['url']))
  13. {{-- Render standalone items --}}
  14. <x-panel-shift-dropdown.item :url="$item['url']" :label="$item['label']" :icon="$item['icon']" />
  15. @endif