@extends('layouts.admin') @section('title', __('Preview News Article')) @section('content')

{{ __('Preview News Article') }}

{{ __('Preview how this article will appear to visitors') }}

{{ __('Edit Article') }} {{ __('Back to List') }}
{{ __('This is a preview of how the article will appear on the frontend. Some features may not be fully functional in preview mode.') }}
{{ __('Article Preview') }}
{{ $news->category->name }} {{ $news->published_at ? $news->published_at->format('F j, Y') : __('Not published') }} @if($news->read_time) {{ $news->read_time }} min read @endif

{{ $news->title }}

{{ optional($news->author)->full_name ?? 'Unknown' }}
{{ optional($news->author)->full_name ?? 'Unknown' }}
{{ optional($news->author)->position ?? '' }}
@if($news->featured_image)
{{ $news->title }}
@endif
{!! $news->content !!}
@if($news->gallery_images && count($news->gallery_images) > 0)

{{ __('Gallery') }}

@foreach($news->gallery_images as $image)
Gallery Image
@endforeach
@endif @if($news->tags) @endif
{{ __('Article Information') }}
{{ __('Status') }}: {{ ucfirst($news->status) }}
{{ __('Category') }}: {{ $news->category->name }}
{{ __('Author') }}: {{ optional($news->author)->full_name ?? 'Unknown' }}
{{ __('Created') }}: {{ $news->created_at->format('M j, Y H:i') }}
{{ __('Last Updated') }}: {{ $news->updated_at->format('M j, Y H:i') }}
@if($news->published_at)
{{ __('Published') }}: {{ $news->published_at->format('M j, Y H:i') }}
@endif
{{ __('Views') }}: {{ $news->views_count ?? 0 }}
{{ __('Featured') }}: {{ $news->is_featured ? __('Yes') : __('No') }}
{{ __('Pinned') }}: {{ $news->is_pinned ? __('Yes') : __('No') }}
{{ __('SEO Information') }}
{{ __('Meta Title') }}:
{{ $news->meta_title ?: __('Not set') }}
{{ strlen($news->meta_title ?? '') }}/60 characters
{{ __('Meta Description') }}:
{{ $news->meta_description ?: __('Not set') }}
{{ strlen($news->meta_description ?? '') }}/160 characters
{{ __('Slug') }}:
{{ $news->slug ?: __('Not set') }}
{{ __('Actions') }}
{{ __('Edit Article') }} @if($news->status === 'draft')
@csrf @method('PUT')
@endif {{ __('View on Frontend') }}
@endsection