@extends('layouts.app') @section('content') @php $locale = app()->getLocale(); $dir = $locale === 'ar' ? 'rtl' : 'ltr'; @endphp
{{-- En-tête --}}
{{ \Carbon\Carbon::parse($trophee->date)->format('d/m/Y') }}

{{ function_exists('trans_field') ? (trans_field($trophee, 'title') ?? $trophee->title) : ($trophee->title ?? '') }}

{{-- pour équilibrer le centrage --}}
{{-- Contenu principal --}}
{{-- Image ou vidéo --}}
@if(!empty($trophee->image)) {{ function_exists('trans_field') ? (trans_field($trophee,'title') ?? __('site.no_image_alt')) : ($trophee->title ?? __('site.no_image_alt')) }} @elseif(!empty($trophee->youtube_url)) @php preg_match('/(youtu\.be\/|v=)([A-Za-z0-9_\-]+)/', $trophee->youtube_url, $matches); $youtubeId = $matches[2] ?? null; @endphp @if($youtubeId)
@endif @endif
{{-- Texte du contenu --}}
@if(function_exists('trans_field')) {!! trans_field($trophee, 'content') ?? $trophee->content !!} @else {!! $trophee->content !!} @endif
@endsection