@extends('admin.layout') @section('title', 'Artikel') @section('content')

Artikel

Tulis, jadwalkan, dan rapikan artikel situs.

@include('admin.icon', ['name' => 'plus'])Artikel baru
@if ($articles->isEmpty())
@include('admin.icon', ['name' => 'article'])

Tidak ada artikel yang cocok.

@if ($q !== '' || $status !== '')Hapus pencarian dan filter@endif
@else
@foreach ($articles as $a) @php [$tone, $label] = match (true) { (bool) $a->deleted_at => ['bad', 'Sampah'], $a->status !== 'published' => ['', 'Draf'], $a->published_at > $now => ['warn', 'Terjadwal'], default => ['ok', 'Tayang'], }; @endphp @endforeach
JudulStatusTanggal tayang (WIB)Aksi
@if ($a->featured_image)@else @include('admin.icon', ['name' => 'image']) @endif
@if ($a->deleted_at){{ $a->title }}@else{{ $a->title }}@endif /artikel/{{ $a->slug }}
{{ $label }} {{ $a->published_at ? \Carbon\Carbon::parse($a->published_at)->format('d/m/Y H:i') : '—' }} @if ($a->deleted_at)
@csrf
@else @include('admin.icon', ['name' => 'draft'])Ubah @endif
@endif @if ($articles->hasPages()) @endif
@endsection