hide files title if no files and not editing
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user