@extends('layouts.admin') @section('title', __('blog.view') . ' ' . __('blog.blog_posts') . ' - ' . $blog->title_en) @section('content')

{{ __('blog.blog_post_details') }}

{{ __('blog.view_details_of') }} "{{ $blog->title_en }}"

{{ __('blog.edit_post') }} {{ __('blog.preview') }} {{ __('blog.back_to_posts') }}

{{ $blog->title_en }}

{{ $blog->title_ar }}
{{ __('blog.' . $blog->status) }} @if($blog->is_featured) ⭐ {{ __('blog.featured') }} @endif @if($blog->is_pinned) 📌 {{ __('blog.pinned') }} @endif
@if($blog->featured_image)
{{ $blog->title_en }}
@endif
{{ $blog->category ? $blog->category->name : __('blog.uncategorized') }} {{ $blog->author ? $blog->author->name : __('blog.unknown') }} {{ $blog->published_at ? $blog->published_at->format('M d, Y') : __('blog.not_set') }} {{ $blog->views_count ?? 0 }} {{ __('blog.views') }}
{{ __('blog.english_content') }}
{!! $blog->content_en !!}
{{ __('blog.arabic_content') }}
{!! $blog->content_ar !!}
@if($blog->gallery_images && count($blog->gallery_images) > 0)
{{ __('blog.gallery_images') }}
@foreach($blog->gallery_images as $image)
Gallery Image
@endforeach
@endif @if($blog->tags)
{{ __('blog.tags') }}
@foreach(explode(',', $blog->tags) as $tag) {{ trim($tag) }} @endforeach
@endif
{{ __('blog.comments') }} {{ $blog->comments()->count() }}
@if($blog->comments()->count() > 0)
@foreach($blog->comments()->with('user')->latest()->take(5)->get() as $comment) @endforeach
{{ __('blog.author') }} {{ __('blog.content') }} {{ __('general.active') }} {{ __('blog.date') }} {{ __('general.actions') }}
{{ $comment->user ? $comment->user->name : $comment->author_name }} @if($comment->user) {{ $comment->user->email }} @endif
{{ Str::limit(strip_tags($comment->content), 100) }}
{{ __('blog.' . $comment->status) }} {{ $comment->created_at->format('M d, Y H:i') }} @if($comment->status != 'approved')
@csrf
@endif
@csrf @method('DELETE')
@if($blog->comments()->count() > 5) @endif @else

{{ __('blog.no_comments_yet_for_this_post') }}

@endif
{{ __('blog.post_statistics') }}
{{ $blog->views_count ?? 0 }}
{{ __('blog.views') }}
{{ $blog->comments()->count() }}
{{ __('blog.comments') }}

{{ $blog->likes_count ?? 0 }}
{{ __('blog.likes') }}
{{ $blog->shares_count ?? 0 }}
{{ __('blog.shares') }}
{{ __('blog.quick_actions') }}
{{ __('blog.edit_post') }}
{{ __('blog.preview_post') }}
{{ __('blog.duplicate_post') }}
{{ __('blog.featured') }}
is_featured ? 'checked' : '' }} onchange="toggleFeatured({{ $blog->id }})">
{{ __('blog.pinned') }}
is_pinned ? 'checked' : '' }} onchange="togglePinned({{ $blog->id }})">
{{ __('blog.delete_post') }}
{{ __('blog.seo_preview') }}
{{ __('blog.meta_title_english') }}:
{{ $blog->meta_title_en ?: $blog->title_en }}
{{ __('blog.meta_title_arabic') }}:
{{ $blog->meta_title_ar ?: $blog->title_ar }}
{{ __('blog.meta_description_english') }}:
{{ Str::limit($blog->meta_description_en ?: $blog->summary_en ?: strip_tags($blog->content_en), 160) }}
{{ __('blog.meta_description_arabic') }}:
{{ Str::limit($blog->meta_description_ar ?: $blog->summary_ar ?: strip_tags($blog->content_ar), 160) }}
@endsection @push('styles') @endpush @push('scripts') @endpush