@extends('layouts.admin') @section('title', 'Berita') @section('content')

Kegiatan

Berita

Tulis berita
@include('partials.search', ['action' => route('admin.berita.index'), 'placeholder' => 'Cari judul berita', 'searchClass' => 'crud-search'])
@forelse ($posts as $post) @empty @endforelse
JudulTerbit
{{ $post->title }} @if(! $post->is_published)Draf@endif {{ $post->published_at?->translatedFormat('d M Y') }} Ubah
@csrf @method('DELETE')
{{ $search !== '' ? 'Tidak ada berita yang cocok.' : 'Belum ada berita.' }}
{{ $posts->links() }}
@endsection