@php($title = 'Kuliner') @extends('admin.layout', ['title' => $title]) @section('content') @php($type = $filters['type'] ?? '') @php($typeLabel = $culinaryTypes[$type] ?? 'Kuliner')

{{ $typeLabel }}

Kelola data kuliner: foto, deskripsi, lokasi, dan tipe.
Tambah Kuliner
Menampilkan {{ $culinaries->total() }} data
Reset
@foreach($culinaries as $c) @endforeach
Gambar Nama Status Update Terakhir Aksi
@php($images = is_array($c->images) ? $c->images : []) @if(count($images))
@php($imagePath = $images[0]) @if(Str::startsWith($imagePath, 'http')) Foto @elseif(Str::startsWith($imagePath, 'img/')) Foto @else Foto @endif @if(count($images) > 1) +{{ count($images) - 1 }} @endif
@else
@endif
{{ $c->name }}
{{ $c->slug }}
@php($rowType = $c->type ?? '') @if($rowType !== '')
{{ $culinaryTypes[$rowType] ?? $rowType }}
@endif
@if($c->is_published) Published @else Draft @endif @if($c->is_popular) Populer @endif
{{ $c->updated_at?->format('d/m/Y H:i') ?? '-' }}
Edit
@csrf @method('DELETE')
{{ $culinaries->links() }}
@endsection