@php $flags = \App\Helpers\EventButtonHelper::flags($event); $alreadyRegistered = $flags['alreadyRegistered']; $showParticipateButton = $flags['showParticipateButton']; $showParticipateToLandingPageButton = $flags['showParticipateToLandingPageButton']; $showInternalProgramButton = $flags['showInternalProgramButton']; $showExternalProgramButton = $flags['showExternalProgramButton']; $showHebergementButton = $flags['showHebergementButton']; // Inscription externe : le bouton pointe directement sur le site de la STGO. $isExternalRegistration = filled($event->link_inscription); @endphp @if ($showParticipateButton || $showParticipateToLandingPageButton)
@if ($isExternalRegistration) {{ $event->participation_button_label }} @elseif ($showParticipateButton) {{ $event->participation_button_label }} @else {{ $event->participation_button_label }} @endif
@endif @if ($alreadyRegistered)

Vous êtes déjà inscrit {{ $event->is_masculin ? 'au' : 'à la' }} « {!! \App\Helpers\TextHelper::addSup($event->title2) !!} »

@endif
Annonce
@if ($showInternalProgramButton)
{{ $event->label_program }}
@endif @if ($showExternalProgramButton)
{{ $event->label_program }}
@endif @if ($showHebergementButton)
Hébergement
@endif {{-- Boutons specifiques supplementaires : ajouter ici sur le meme modele.
Mot du Président
--}}