fix(outlet): kasih kondisi ketika datanya kosong
This commit is contained in:
parent
87e25c9591
commit
d02693ac64
@ -61,40 +61,49 @@ class="w-12 h-12 rounded-full">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<h4
|
||||
class="text-sm font-semibold text-gray-900 dark:text-white mb-2 flex items-center gap-2">
|
||||
<flux:icon.clock class="w-4 h-4" />
|
||||
Jam Operasional
|
||||
</h4>
|
||||
<div class="space-y-1 bg-gray-50 dark:bg-gray-800 rounded-lg p-3">
|
||||
@foreach ($this->formatOpeningHours($outlet) as $day => $time)
|
||||
<div class="flex justify-between text-xs">
|
||||
<span
|
||||
class="font-medium text-gray-700 dark:text-gray-300">{{ $day }}:</span>
|
||||
<span class="text-gray-600 dark:text-gray-400">
|
||||
{{ $time['is_closed'] ? 'Tutup' : "{$time['open']} - {$time['close']}" }}
|
||||
</span>
|
||||
</div>
|
||||
@endforeach
|
||||
@if (!empty($this->formatOpeningHours($outlet)))
|
||||
<div class="mb-4">
|
||||
<h4
|
||||
class="text-sm font-semibold text-gray-900 dark:text-white mb-2 flex items-center gap-2">
|
||||
<flux:icon.clock class="w-4 h-4" />
|
||||
Jam Operasional
|
||||
</h4>
|
||||
<div class="space-y-1 bg-gray-50 dark:bg-gray-800 rounded-lg p-3">
|
||||
@foreach ($this->formatOpeningHours($outlet) as $day => $time)
|
||||
<div class="flex justify-between text-xs">
|
||||
<span
|
||||
class="font-medium text-gray-700 dark:text-gray-300">{{ $day }}:</span>
|
||||
<span class="text-gray-600 dark:text-gray-400">
|
||||
{{ $time['is_closed'] ? 'Tutup' : "{$time['open']} - {$time['close']}" }}
|
||||
</span>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if ($outlet->facilities->isNotEmpty())
|
||||
<div class="mb-4">
|
||||
<h4
|
||||
class="text-sm font-semibold text-gray-900 dark:text-white mb-2 flex items-center gap-2">
|
||||
<flux:icon.wifi class="w-4 h-4" />
|
||||
Fasilitas
|
||||
</h4>
|
||||
<div class="flex flex-wrap gap-2">
|
||||
@foreach ($outlet->facilities as $facility)
|
||||
<flux:badge color="zinc" size="sm">{{ $facility->name }}</flux:badge>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="mb-4">
|
||||
<h4
|
||||
class="text-sm font-semibold text-gray-900 dark:text-white mb-2 flex items-center gap-2">
|
||||
<flux:icon.wifi class="w-4 h-4" />
|
||||
Fasilitas
|
||||
<flux:icon.calendar-days class="w-4 h-4" />
|
||||
Tanggal
|
||||
</h4>
|
||||
<div class="flex flex-wrap gap-2">
|
||||
@foreach ($outlet->facilities as $facility)
|
||||
<flux:badge color="zinc" size="sm">{{ $facility->name }}</flux:badge>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-4 bg-gray-50 dark:bg-gray-800 rounded-lg p-3">
|
||||
<div class="flex flex-col gap-2 text-xs">
|
||||
<div class="flex flex-col gap-2 text-xs bg-gray-50 dark:bg-gray-800 rounded-lg p-3">
|
||||
<div>
|
||||
<span class="font-medium text-gray-900 dark:text-white">Tgl Buka:</span>
|
||||
<span
|
||||
|
||||
Loading…
Reference in New Issue
Block a user