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

Restaurant

@foreach ($restos as $resto) @endforeach
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)
Video Thumbnail
YouTube Video
@else No Video @endif @else @endif
@if ($resto->qr_img && $resto->qr_url) @else
No QR Code
@endif
hide ? 'checked' : '' }} onchange="toggleHide({{ $resto->id }}, this.checked)">
@endsection