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

Wisata

Kelola semua destinasi wisata: foto, deskripsi, lokasi, maps, dan fasilitas.
Tambah Wisata
Menampilkan {{ $destinations->total() }} data
Reset
@foreach($destinations as $d) @endforeach
Gambar Nama Kategori Status Update Terakhir Aksi
@php($images = is_array($d->images) ? $d->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
{{ $d->name }}
{{ $d->slug }}
{{ $d->category?->name ?? '-' }}
@if($d->is_published) Published @else Draft @endif @if($d->is_featured) Unggulan @endif
{{ $d->updated_at?->format('d/m/Y H:i') ?? '-' }}
Edit
@csrf @method('DELETE')
{{ $destinations->links() }}
@endsection