{{-- Boutons d'actions de la landing page (inscription, abstract, programme, hébergement...). Affiché en haut ($position = 'top') et en bas ($position = 'bottom') de la page. Variables attendues : - $event - $position : 'top' | 'bottom' - $flags : tableau retourné par \App\Helpers\EventButtonHelper::flags() --}} @php $isTop = ($position ?? 'top') === 'top'; $alreadyRegistered = $flags['alreadyRegistered']; $alreadyReaRegistered = $flags['alreadyReaRegistered']; $showParticipateButton = $flags['showParticipateButton']; $showParticipateToLandingPageButton = $flags['showParticipateToLandingPageButton']; $showAbstractButton = $flags['showAbstractButton']; $showAbstractToLandingPageButton = $flags['showAbstractToLandingPageButton']; $showAbstractToParticipatePageButton = $flags['showAbstractToParticipatePageButton']; $showInternalProgramButton = $flags['showInternalProgramButton']; $showExternalProgramButton = $flags['showExternalProgramButton']; $showHebergementButton = $flags['showHebergementButton']; // Inscription externe : si l'evenement a un lien d'inscription, le bouton pointe // directement dessus (nouvel onglet) au lieu du formulaire interne. $isExternalRegistration = filled($event->link_inscription); @endphp @if ($isTop && $alreadyRegistered) @include('frontend.mediknode.landing-page.partials.already-registered', [ 'event' => $event, 'marginClass' => 'mb-3', ]) @endif