@extends('layouts.front') @section('title', $announcement->seo_title) @section('styles') @if($announcement->meta_keywords) @endif @if($announcement->og_image_display_url) @endif @if($announcement->canonical_url) @endif @endsection @section('content')
{{-- Breadcrumb --}} {{-- Header --}}
@if($announcement->category) @if($announcement->category->icon) @endif {{ $announcement->category->name }} @endif

{{ $announcement->title }} @if($announcement->featured && setting('announcements_show_featured', true)) @endif

@if(setting('announcements_show_date', true)) {{ __('announcements::messages.front.published_on') }} {{ $announcement->published_at?->format('d/m/Y') }} @endif @if(setting('announcements_show_author', true)) {{ __('announcements::messages.front.by') }} {{ $announcement->author_name }} @endif @if(setting('announcements_show_views', true)) {{ trans_choice('announcements::messages.front.views', $announcement->views_count, ['count' => number_format($announcement->views_count)]) }} @endif
{{-- Cover image --}} @if($announcement->cover_image_display_url)
{{ $announcement->title }}
@endif {{-- Content --}}
@if($announcement->rendered_content) {!! $announcement->rendered_content !!} @elseif($announcement->content_html) {!! $announcement->content_html !!} @elseif($announcement->content_markdown) {!! \Illuminate\Support\Str::markdown($announcement->content_markdown) !!} @else

{{ __('announcements::messages.front.no_content') }}

@endif
{{-- Actions --}}
@if(setting('announcements_likes_enabled', true))
@csrf
@endif
← {{ __('announcements::messages.front.back_to_list') }}
{{-- Navigation --}} @if(isset($previous) || isset($next))
@if(isset($previous) && $previous) ← {{ __('announcements::messages.front.previous') }} {{ $previous->title }} @else
@endif @if(isset($next) && $next) {{ __('announcements::messages.front.next') }} → {{ $next->title }} @endif
@endif {{-- Related --}} @if(isset($related) && $related->count() > 0)

{{ __('announcements::messages.front.related') }}

@endif
@endsection @section('scripts') @endsection