@extends('layouts.admin') @section('title', 'Blog Posts - Admin Panel') @section('page-title', 'Blog Posts') @section('content')

Manage Blog Posts

Create New Post
@if($posts->count() > 0)
@foreach($posts as $post) @endforeach
Title Author Status Created At Actions
{{ $post->title }}
{{ Str::limit($post->body, 80) }}
{{ $post->author->name }} @if($post->published_at) Published
{{ $post->published_at->format('M d, Y') }} @else Draft @endif
{{ $post->created_at->format('M d, Y') }}
@if($post->published_at) @endif
@csrf @method('DELETE')
{{ $posts->links() }}
@else

No blog posts yet

Start creating amazing content for your visitors.

Create Your First Post
@endif
@endsection @push('scripts') @endpush