Don't show delete audition button for an audition with entries.

This commit is contained in:
Matt Young 2024-06-18 16:45:30 -05:00
parent 8176b60f9d
commit cd3cd85ec4
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,9 @@
</x-form.body-grid> </x-form.body-grid>
<x-form.footer submit-button-text="Update Audition" class="pb-4 !justify-between"> <x-form.footer submit-button-text="Update Audition" class="pb-4 !justify-between">
<div> <div>
<x-form.red-trash-button size="20"></x-form.red-trash-button> @if($audition->entries->count() == 0)
<x-form.red-trash-button size="20"></x-form.red-trash-button>
@endif
</div> </div>
<div> <div>
<x-form.button>Edit Audition</x-form.button> <x-form.button>Edit Audition</x-form.button>