Some checks failed
Tests / PHP 8.1 (push) Has been cancelled
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
22 lines
665 B
PHP
22 lines
665 B
PHP
@props(['id', 'name', 'href', 'active', 'type', 'tab'])
|
|
|
|
@if (empty($href))
|
|
<x-tabs.nav :id="$id" :active="$active ?? false">
|
|
<div class="flex items-center">
|
|
{{ $name }}
|
|
|
|
<livewire:tab.pin :type="$type" :id="$id" :tab="$tab" :pinned="$active ?? false" />
|
|
</div>
|
|
</x-tabs.nav>
|
|
@else
|
|
<x-tabs.nav-link :id="$id" :href="$href" :active="$active ?? false">
|
|
<div class="flex items-center">
|
|
<a href="{{ $href }}">
|
|
{{ $name }}
|
|
</a>
|
|
|
|
<livewire:tab.pin :type="$type" :id="$id" :tab="$tab" :pinned="$active ?? false" />
|
|
</div>
|
|
</x-tabs.nav-link>
|
|
@endif
|