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

Budaya

Kelola budaya Cilacap: adat, kesenian, upacara, pakaian adat, sejarah budaya.
Tambah Budaya
Menampilkan {{ $cultures->total() }} data
Reset
@foreach($cultures as $c) @endforeach
Gambar Nama Tipe Status Update Terakhir Aksi
@php($images = is_array($c->images) ? $c->images : []) @php($imagePath = $c->image ?? (count($images) ? $images[0] : null)) @if($imagePath)
@if(Str::startsWith($imagePath, 'http')) Foto @elseif(Str::startsWith($imagePath, 'img/')) Foto @else Foto @endif @if(count($images) > 0) +{{ count($images) }} @endif
@else
@endif
{{ $c->name }}
{{ $c->slug }}
{{ $cultureTypes[$c->type] ?? $c->type }}
@if($c->is_published) Published @else Draft @endif @if($c->is_featured) Unggulan @endif
{{ $c->updated_at?->format('d/m/Y H:i') ?? '-' }}
Edit
@csrf @method('DELETE')
{{ $cultures->links() }}
@endsection