@extends('layouts.app') @php($seoable = $article) @php($seoRoute = 'news.show') @php($seoRouteParameters = ['locale'=>$locale,'slug'=>$translation->slug]) @php($seoAlternateUrls = $localizedSlugs->mapWithKeys(fn($slug,$alternateLocale)=>[$alternateLocale=>route('news.show',['locale'=>$alternateLocale,'slug'=>$slug])])->all()) @php($localeSwitchUrls = $seoAlternateUrls) @php($primaryMedia = $article->featuredMedia) @section('content')

{{ $translation->title }}

{{ $translation->excerpt }}

@if($article->featuredMedia)
{{ $article->featuredMedia->translation($locale)?->alt_text ?? $translation->title }}
@endif
@foreach(preg_split('/\R{2,}/u', trim((string) $translation->body)) as $paragraph) @if($paragraph !== '')

{!! nl2br(e($paragraph)) !!}

@endif @endforeach
{{ __('news.back') }}
@if($article->relatedArticles->isNotEmpty())

{{ __('news.related') }}

{{ __('news.continue_reading') }}

@foreach($article->relatedArticles as $related) @php($relatedTranslation=$related->translation($locale))
@if($related->featuredMedia){{ $relatedTranslation->title }}@endif
{{ $related->category?->label() }}

{{ $relatedTranslation->title }}

{{ $relatedTranslation->excerpt }}

{{ __('news.read_more') }}
@endforeach
@endif
@endsection