@extends("blogetc_admin::layouts.admin_layout") @section("content")
Admin - Manage Blog Posts
@forelse($posts as $post)
{{ $post->title }}
{{$post->subtitle}}

{{$post->html}}

{!! $post->imageTag('thumbnail', false, 'float-right') !!}
Author
{{$post->author_string()}}
Posted at
{{$post->posted_at}}
Is published?
{!!($post->is_published ? "Yes" : 'No')!!}
Categories
@if(count($post->categories)) @foreach($post->categories as $category) {{$category->category_name}} @endforeach @else No Categories @endif
@if($post->use_view_file)
Uses Custom Viewfile:
View file:
{{$post->use_view_file}} @php $viewfile = resource_path('views/custom_blog_posts/' . $post->use_view_file . '.blade.php'); @endphp
Full filename:
{{$viewfile}} @if(!file_exists($viewfile))
Warning! The custom view file does not exist. Create the file for this post to display correctly.
@endif
@endif View Post Edit Post
@csrf
@empty
No posts to show you. Why don't you add one?
@endforelse
{{$posts->appends( [] )->links()}}
@endsection