@extends('layouts.app') @section('content')
@include('partials.header') @include('partials.sidebar')

View Restaurant

Restaurant Details

@if ($resto->mode === 'video' && $resto->video_url)
Video Content
@if ($resto->youtube_video_id)

View on YouTube

@else
Invalid YouTube URL format
@endif
@else @php $images = $resto->getAllImages(); $imageUrls = $resto->getImageUrls(); @endphp @if (!empty($images))
Images ({{ count($images) }})
@if (count($images) === 1)
{{ $resto->title }}
@else @endif
@else

No images available for this item

@endif @endif
Title

{{ $resto->title }}

Category
{{ $resto->restoCategory->category ?? 'No Category' }}
Price

Rp {{ number_format($resto->price, 0, ',', '.') }}

@if ($resto->description)
Description

{{ $resto->description }}

@endif
Content Mode
{{ ucfirst($resto->mode ?? 'image') }} Mode
@if ($resto->qr_img && $resto->qr_url) @endif
Visibility
{{ $resto->hide ? 'Hidden' : 'Visible' }}
@if ($resto->qr_img && $resto->qr_url) @endif @endsection