{{-- 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
@if ($showParticipateButton)
@if ($isExternalRegistration) {{ $event->participation_button_label }} @else {{ $event->participation_button_label }} @endif
@endif @if ($showParticipateToLandingPageButton)
@if ($isExternalRegistration) {{ $event->participation_button_label }} @else {{ $event->participation_button_label }} @endif
@endif @if ($showAbstractButton)
Déposer votre Abstract
@endif @if ($showAbstractToLandingPageButton)
Déposer votre Abstract
@endif @if ($showAbstractToParticipatePageButton)
Déposer votre Abstract
@endif @if ($showInternalProgramButton)
{{ $event->label_program }}
@endif @if ($showExternalProgramButton)
{{ $event->label_program }}
@endif @if ($showHebergementButton)
Hébergement
@endif @if ($event->id == 40 && $alreadyReaRegistered)
Choisir vos ateliers
@endif @if ($isTop) {{-- Formulaires : on affiche aussi les formulaires clôturés (la page affiche le message de clôture sans les champs) --}} @foreach ($event->forms as $eventForm)
{{ $eventForm->name }}
@endforeach @endif
@if (!$isTop && $alreadyRegistered) @include('frontend.mediknode.landing-page.partials.already-registered', [ 'event' => $event, 'marginClass' => 'mt-3', ]) @endif