@extends('layouts.app') @section('content')
{{ $news->category->name }} {{ $news->published_at->format('F j, Y') }} @if($news->read_time) {{ $news->read_time }} {{ __('news.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 }} @if($news->caption)
{{ $news->caption }}
@endif
@endif
{!! $news->content !!}
@if($news->gallery_images && is_array($news->gallery_images) && count($news->gallery_images) > 0)

{{ __('navigation.gallery') }}

@foreach($news->gallery_images as $image) @endforeach
@endif @if($news->tags) @endif
@if($prevArticle) @if(app()->getLocale() === 'ar') {{ __('navigation.previous_article') }} @else {{ __('navigation.previous_article') }} @endif @else @endif @if($nextArticle) @if(app()->getLocale() === 'ar') {{ __('navigation.next_article') }} @else {{ __('navigation.next_article') }} @endif @endif
@if($relatedNews->count() > 0) @endif
@include('frontend.news.partials.sidebar')
@endsection