feat(user): hide alamat ketika datanya null

This commit is contained in:
Yoga Pangestu 2025-11-13 19:28:37 +07:00
parent 6bcd196010
commit 813397400c

View File

@ -74,15 +74,18 @@ class="w-4 h-4 text-gray-500 dark:text-white flex-shrink-0 mt-0.5" />
</div>
</div>
<div>
<flux:heading class="uppercase font-semibold text-gray-500 dark:text-gray-400 ">Alamat
</flux:heading>
<div class="flex items-start gap-2 text-sm">
<flux:icon.map-pin
class="w-4 h-4 text-gray-500 dark:text-white flex-shrink-0 mt-0.5" />
<flux:text>{{ $employee['address'] }}</flux:text>
@if ($employee['address'])
<div>
<flux:heading class="uppercase font-semibold text-gray-500 dark:text-gray-400 ">
Alamat
</flux:heading>
<div class="flex items-start gap-2 text-sm">
<flux:icon.map-pin
class="w-4 h-4 text-gray-500 dark:text-white flex-shrink-0 mt-0.5" />
<flux:text>{{ $employee['address'] }}</flux:text>
</div>
</div>
</div>
@endif
<div class="grid grid-cols-2 gap-3">
<div>