@extends('layouts.app') @section('title', 'Blog Posts - Admin Panel') @section('content')
@include('admin.partials.sidebar')

{{ __('Blog Posts') }}

{{ __('Add Post') }}
@if($posts->count() > 0)
@foreach($posts as $post) @endforeach
{{ __('Post') }} {{ __('Category') }} {{ __('Author') }} {{ __('Views') }} {{ __('Status') }} {{ __('Published') }} {{ __('Actions') }}
@if($post->featured_image) {{ $post->title }} @else
@endif
{{ Str::limit($post->title, 40) }} @if($post->title_mm)
{{ Str::limit($post->title_mm, 40) }} @endif @if($post->is_featured)
{{ __('Featured') }} @endif
{{ $post->category->name }} {{ $post->author->name }} {{ $post->views_count }} @if($post->is_published) {{ __('Published') }} @else {{ __('Draft') }} @endif @if($post->published_at) {{ $post->published_at->format('M d, Y') }} @else - @endif
@if($post->is_published) @endif
@csrf @method('DELETE')
{{ $posts->links() }}
@else

{{ __('No blog posts found') }}

{{ __('Create your first blog post to get started.') }}

{{ __('Add Post') }}
@endif
@push('styles') @endpush @endsection