Restaurant
| ID | Category | Title | Description | Price | Mode | Content | QR Code | Hide | Actions |
|---|---|---|---|---|---|---|---|---|---|
| {{ $resto->id }} | {{ $resto->restoCategory->category ?? 'N/A' }} | {{ $resto->title }} | {{ Str::limit($resto->description, 50) }} | Rp {{ number_format($resto->price, 0, ',', '.') }} | {{ ucfirst($resto->mode ?? 'image') }} |
@if (($resto->mode ?? 'image') === 'video')
@if ($resto->video_url)
YouTube Video
@php
$images = array_filter([
$resto->image,
$resto->image_2,
$resto->image_3,
$resto->image_4,
]);
@endphp
@if (!empty($images))
@endif
@foreach ($images as $index => $image)
@if (count($images) > 4)
+{{ count($images) - 4 }} more
@endif
@else
No Images
@endif
|
@if ($resto->qr_img && $resto->qr_url)
Available
{{ Str::limit($resto->qr_url, 20) }}
No QR Code
@endif
|
hide ? 'checked' : '' }}
onchange="toggleHide({{ $resto->id }}, this.checked)">
|