🎨 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

@@ -115,7 +115,7 @@ $handleNotApprove = function () {
<x-layouts.app :seo="new SEOData(title: 'Unterstützung für: ' . $projectProposal->name,description: str($projectProposal->description)->limit(100, '...', true), image: $projectProposal->getFirstMediaUrl('main'))">
@volt
<div class="px-4 sm:px-6 lg:px-8 py-8 w-full" x-data="nostrDefault(@this)" x-cloak
x-show="isAllowed">
x-if="isAllowed">
<!-- Page content -->
<div class="max-w-5xl mx-auto flex flex-col lg:flex-row lg:space-x-8 xl:space-x-16">