@extends('layouts.admin-simple') @section('title', 'News Management') @section('page-title', 'News Management') @section('breadcrumb') @endsection @section('page-actions')
add Create Article
@endsection @section('content')
clear Clear

News Articles

Manage news articles and announcements
{{ $news->total() }} total articles
@forelse($news as $article) @empty @endforelse
Article Category Author Status Published Actions
{{ $article->title }}
{{ $article->title }}
{{ Str::limit($article->excerpt, 60) }}
@if($article->is_featured) Featured @endif
@if($article->categoryModel) @if($article->categoryModel->icon) {{ $article->categoryModel->icon }} @endif {{ $article->categoryModel->name }} @else {{ ucfirst($article->category ?? 'Uncategorized') }} @endif @if($article->author)
{{ $article->author->full_name }}
{{ $article->author->email }}
@else Unknown @endif
@if($article->is_published) Published @else Draft @endif @if($article->published_at)
{{ $article->published_at->format('M d, Y') }}
{{ $article->published_at->format('H:i') }}
@else - @endif
article
No news articles found

@if(request()->hasAny(['search', 'category', 'status'])) Try adjusting your search criteria or clear filters. @else Start by creating your first news article. @endif

add Create First Article
@if($news->hasPages()) @endif
@endsection @push('scripts') @endpush @section('modals') @foreach($news as $article) @endforeach @endsection