@php $editId = (int) request('edit'); $row = $editId ? $articles->firstWhere('id', $editId) : null; $open = $row || request()->has('new') || $errors->any(); $live = $articles->where('status', 'published')->count(); $cats = $articles->pluck('category')->filter()->unique()->sort()->values(); @endphp @if($open)
@endif| Article | Category | Status | Date | Actions |
|---|---|---|---|---|
| {{ $a->title }}/blog/{{ $a->slug }} | {{ $a->category ?: '—' }} | {{ $a->publishedOn()?->format('d M Y') }}{{ $a->readingMinutes() }} min read |