hide files title if no files and not editing

This commit is contained in:
2024-04-23 09:10:25 +10:00
parent 633e0557f6
commit ff811d961f

View File

@@ -9,7 +9,7 @@
@if($value !== '' || $editor === true)
<div x-data class="{{ twMerge('mb-4', $attributes->get('class')) }}">
<h3 class="text-xl font-semibold">{{ $label }}</h3>
<h3 x-show="$store.files.length > 0 || {{ $editor === true ? 'true' : 'false' }}" class="text-xl font-semibold">{{ $label }}</h3>
<ul x-show="$store.files.length > 0" class="flex flex-col bg-white p-4 border border-gray-300 rounded-lg gap-4 mt-2">
<template x-for="file in $store.files" :key="file.name">
<li class="flex items-center">