🎨 refactor: update x-show to x-if for conditionally rendering elements in Blade templates.

This commit is contained in:
fsociety
2024-10-25 11:34:25 +02:00
parent e7fbcb8c11
commit 77c4f0158e
7 changed files with 9 additions and 9 deletions

View File

@@ -48,7 +48,7 @@ on([
<x-layouts.app title="{{ __('Mitglieder') }}">
@volt
<div class="px-4 sm:px-6 lg:px-8 py-8 w-full max-w-9xl mx-auto" x-show="isAllowed" x-data="{isAllowed: $wire.entangle('isAllowed').live}" x-cloak>
<div class="px-4 sm:px-6 lg:px-8 py-8 w-full max-w-9xl mx-auto" x-if="isAllowed" x-data="{isAllowed: $wire.entangle('isAllowed').live}" x-cloak>
<livewire:einundzwanzig-pleb-table/>
</div>
@endvolt