@props([
'label' => 'Opciones',
'labelButton' => null,
'icon' => 'lucide-list',
'options' => [],
])
{{-- BOTÓN --}}
{{-- DROPDOWN --}}
{{-- HEADER --}}
{{ $label }}
{{-- LISTA TIPO TABLA --}}
@forelse($options as $group)
{{-- CABECERA DE GRUPO --}}
@if(isset($group['group']))
-
{{ $group['group'] }}
@endif
{{-- FILAS --}}
@foreach($group['items'] ?? [] as $option)
{{-- LINK --}}
@if(isset($option['url']))
-
{{-- ICONO --}}
@if(!empty($option['icon']))
@else
@endif
{{-- TEXTO --}}
{{ $option['label'] }}
{{-- INDICADOR --}}
›
{{-- BOTÓN --}}
@elseif(isset($option['action']))
-
{{-- HTML LIBRE --}}
@elseif(isset($option['html']))
-
{!! $option['html'] !!}
@endif
@endforeach
@empty
-
Sin opciones
@endforelse