@extends('web.layouts.app') @push('web.styles') @vite('resources/css/web/page/about.css') @endpush @php Carbon\Carbon::setLocale('fr'); function isYoutubeUrl($url) { return preg_match('/(youtube\.com|youtu\.be)/i', $url); } @endphp @section('content')
@foreach ($event->getMedia('event_gallery') as $media)
{{ $event->title }}
@endforeach

{{ $event->title }}

{{ $event->event_at->translatedFormat('l j F Y') }} - {{ $event->venue->name }}

{!! $event->description_html !!}
@if (count($event->videos))

les videos

@foreach ($event->videos as $video) @php $videoUrl = $video['link']; @endphp
@if (isYoutubeUrl($videoUrl)) @php preg_match( '/(youtu\.be\/|youtube\.com\/(watch\?v=|embed\/|shorts\/))([a-zA-Z0-9_-]+)/', $videoUrl, $matches, ); $videoId = $matches[3] ?? null; @endphp @if ($videoId) @endif @else @endif
@endforeach
@endif
@if ($events->count() > 0)
@endif

LE LIEU

{{ $event->venue->name }}

{{ $event->venue->name }}

{{ $event->venue->full_address }}

@if ($event->partners->isNotEmpty())
@endif
@endsection @push('web.scripts') @endpush