@extends('admin.layouts.app') @section('content')

{{ __('admin/news.news_detail') }}

@foreach(config('translatable.locales') as $index => $locale) @php $translation = $news->translations->where('locale', $locale)->first(); @endphp
@if($translation)

{{ $translation->title }}

@if($news->hasPreviewImage())
{{ $translation->title }}
@endif

{{ $translation->summary }}

@sanitized($translation->description)
@else
@if($news->hasPreviewImage())
{{ __('admin/news.news') }}
@endif
{{ __('admin/news.no_translation_available', ['locale' => strtoupper($locale)]) }}
@endif
@endforeach
{{ __('admin/news.publication_info') }}
@if($news->status) {{ __('admin/news.published') }} @else {{ __('admin/news.draft') }} @endif
@if($news->is_important) {{ __('admin/news.important_news') }} {{ __('admin/news.will_be_displayed_in_popup') }} @else {{ __('admin/news.normal_news') }} @endif
@if($news->published_at) {{ $news->published_at->format('d/m/Y à H:i') }} @if($news->published_at > now()) {{ __('admin/news.scheduled_publication') }} @endif @else {{ __('admin/news.not_scheduled') }} @endif
{{ $news->created_at->format('d/m/Y à H:i') }}
{{ $news->updated_at->format('d/m/Y à H:i') }}
@canany(['news.edit', 'news.delete'])
{{ __('admin/news.actions') }}
@can('news.edit') {{ __('admin/news.edit_this_news') }} @endcan @can('news.delete') @endcan
@endcanany
{{ __('admin/news.available_translations') }}
@foreach(config('translatable.locales') as $locale)
@if($news->translate($locale)) {{ strtoupper($locale) }} - {{ __('admin/news.translated') }} @else {{ strtoupper($locale) }} - {{ __('admin/news.not_translated') }} @endif
@endforeach
@endsection