refactor(outlet): conditionally render image section only if images exist
This commit is contained in:
parent
90dd06ff17
commit
8c4a364377
@ -93,8 +93,10 @@ class="font-medium text-gray-700 dark:text-gray-300">{{ $day }}:</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if (count($outlet['images']) > 0)
|
||||
<div class="mb-4">
|
||||
<h4 class="text-sm font-semibold text-gray-900 dark:text-white mb-2 flex items-center gap-2">
|
||||
<h4
|
||||
class="text-sm font-semibold text-gray-900 dark:text-white mb-2 flex items-center gap-2">
|
||||
<flux:icon.photo class="w-4 h-4" />
|
||||
Gambar
|
||||
</h4>
|
||||
@ -105,6 +107,7 @@ class="font-medium text-gray-700 dark:text-gray-300">{{ $day }}:</span>
|
||||
@endforeach
|
||||
</flux:avatar.group>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@canany(['update outlet', 'delete outlet'])
|
||||
<flux:separator></flux:separator>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user