generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f578d64
commit 282438c
Showing
3 changed files
with
29 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,29 @@ | ||
<div {{ $attributes | ||
->cssClass([ | ||
'layer' => 'flex items-center gap-3', | ||
'layer' => 'flex items-center h-full', | ||
'item' => 'py-3 border-b', | ||
'active' => 'text-white border-white-500/80', | ||
'inactive' => 'text-secondary-500 border-transparent', | ||
]) | ||
->classMerge() | ||
->withoutClass() | ||
}}> | ||
@foreach ($group->items as $action) | ||
@if ($action->hasComponent()) | ||
<x-dynamic-component :component="$action->getComponent()" :$action /> | ||
@endif | ||
<nav class="{{ $attributes->classFor('layer') }}"> | ||
@foreach ($group->items as $action) | ||
<x-wireuse::actions-link | ||
:$action | ||
class="{{ $attributes->classFor('item') }}" | ||
class:active="{{ $attributes->classFor('active') }}" | ||
class:inactive="{{ $attributes->classFor('inactive') }}" | ||
class:icon="{{ $attributes->classFor('icon') }}" | ||
/> | ||
|
||
@if ($action->hasLivewire()) | ||
@livewire($action->getLivewire(), compact('action'), key($action->getName())) | ||
@endif | ||
@endforeach | ||
@if ($action?->hasComponent()) | ||
<x-dynamic-component :component="$action->getComponent()" :$action /> | ||
@endif | ||
|
||
@if ($action?->hasLivewire()) | ||
@livewire($action->getLivewire(), ['action' => $action], key($action->getName())) | ||
@endif | ||
@endforeach | ||
</nav> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters