@php($title = 'Penginapan') @extends('admin.layout', ['title' => $title]) @section('content')
| 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'))
@else
|
{{ $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') ?? '-' }} |