{{-- Tabs Component - LucentUI Theme Migrated from AdminLTE to Tailwind Usage: Overview content Settings content Logs content --}} @props([ 'tabs' => [], 'active' => null, 'variant' => 'default', ]) @php $activeTab = $active ?? ($tabs[0] ?? null); @endphp
{{-- Tab Navigation --}} @if($variant === 'pills')
@elseif($variant === 'buttons')
@else
    @endif @foreach($tabs as $tab) @php $tabName = is_array($tab) ? ($tab['name'] ?? $tab['label'] ?? '') : $tab; $tabLabel = is_array($tab) ? ($tab['label'] ?? $tab['name'] ?? '') : $tab; $tabIcon = is_array($tab) ? ($tab['icon'] ?? null) : null; $tabBadge = is_array($tab) ? ($tab['badge'] ?? null) : null; @endphp @if($variant === 'pills') @elseif($variant === 'buttons') @else
  • @endif @endforeach @if($variant === 'pills' || $variant === 'buttons')
@else @endif {{-- Tab Panels --}}
{{ $slot }}