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

Blog Articles

Write New Article
@if(session('success')) @endif
{{ $posts->total() }} Total Article(s)
@if($posts->isEmpty())
No Articles Published Yet

Write and publish your first article using the rich content editor.

Write First Article
@else
@foreach($posts as $post) @endforeach
ID Article Title Category Author SEO URL Slug Status Date Actions
#{{ $post->blogid }}
@if($post->blogimage) Thumbnail @else
@endif
{{ $post->title }}
@if($post->is_featured) Featured @endif
@if($post->metadesp) {{ $post->metadesp }} @endif
@if($post->category) {{ $post->category->catname }} @else Uncategorized @endif @if($post->author)
{{ $post->author->blogauthorname }}
@else Anonymous @endif
/blog/{{ $post->seourl }} @if($post->status === 'published') Published @else Draft @endif
{{ $post->publish_date ? $post->publish_date->format('M d, Y') : ($post->created_at ? $post->created_at->format('M d, Y') : 'N/A') }}
@csrf @method('DELETE')
@if($posts->hasPages())
{{ $posts->links() }}
@endif @endif
@endsection