@php($title = 'Penginapan') @extends('admin.layout', ['title' => $title]) @section('content')

Penginapan

Kelola hotel, homestay, villa, dan guest house di Cilacap.
Tambah Penginapan
Menampilkan {{ $accommodations->total() }} data
Reset
@foreach($accommodations as $a) @endforeach
Gambar Nama Kategori Zona Status Update Terakhir Aksi
@php($images = is_array($a->images) ? $a->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
{{ $a->name }}
{{ $a->slug }}
{{ $categories[$a->category] ?? $a->category }} {{ $locationZones[$a->location_zone] ?? $a->location_zone }}
@if($a->is_published) Published @else Draft @endif @if($a->is_popular) Populer @endif
{{ $a->updated_at?->format('d/m/Y H:i') ?? '-' }}
Edit
@csrf @method('DELETE')
{{ $accommodations->links() }}
@endsection