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

{{-- Catégorie --}} @if($programme->categorie)
{{ trans_field($programme->categorie, 'nom') ?? $programme->categorie->nom_ar }}
@endif {{-- title --}}

{{ $shareTitle }}

{{-- Contenu principal --}}
{{-- Image ou vidéo --}}
@if(!empty($programme->imageSrc)) {{ $shareTitle }} @elseif(!empty($programme->youtube_url)) @php preg_match('/(youtu\.be\/|v=)([A-Za-z0-9_\-]+)/', $programme->youtube_url, $matches); $youtubeId = $matches[2] ?? null; @endphp @if($youtubeId)
@endif @else {{ $shareTitle }} @endif
{{-- Texte du contenu --}}
{!! nl2br(e(trans_field($programme, 'desc') ?? $programme->desc_ar ?? $programme->description)) !!}
{{-- Section de partage social --}} {{-- Bouton retour --}}
{{-- Popup de notification personnalisée --}}
{{ __('site.lien_copie') }}
@endsection