@php use App\Support\EventsSourceLink; $eventsUrls = EventsSourceLink::urls($room); $isLinked = EventsSourceLink::isLinked($room); $eventTitle = EventsSourceLink::eventTitle($room); $eventsConfigured = EventsSourceLink::isApiConfigured(); $createEventUrl = EventsSourceLink::createEventUrl($room); $kind = $room->isConference() ? 'conference' : 'webinar'; $expectedType = $room->isConference() ? 'town_hall' : 'webinar'; $linkableEvents = $linkableEvents ?? []; $canManageEvents = $canManageEvents ?? false; $unlinkModalName = 'events-unlink-'.$room->uuid; $linkModalName = 'events-link-'.$room->uuid; @endphp

Ladill Events

@if ($isLinked && $eventTitle)

Linked to {{ $eventTitle }}

@elseif ($isLinked)

Linked to event #{{ EventsSourceLink::eventId($room) }}

@else

Registration, invitations, speakers, and QR codes for this {{ $kind }} are managed in Ladill Events. Link a virtual or hybrid event to enable attendee registration.

@endif
@if ($isLinked && $canManageEvents) @endif
@if (! $isLinked && ! $eventsConfigured)

Events linking is not configured on this Meet instance.

Set MEET_API_KEY_EVENTS in Meet and the matching EVENTS_API_KEY_MEET in Events so Meet can list and link your events. You can still create an event in Events using the button below.

@endif @if ($isLinked)
@if ($eventsUrls['registration'])

Registration page

@endif @if ($eventsUrls['admin']) Attendees & check-in → @endif @if ($eventsUrls['edit']) Event settings (tickets, branding) → @endif @if ($eventsUrls['comms']) Bulk invitations & comms → @endif @if ($eventsUrls['qr']) Event QR code → @endif @if ($eventsUrls['badges']) Badges & printing → @endif

Programme speakers and panelists are configured on the event programme in Events and sync to this session when linked.

@else
@if ($eventsConfigured && $canManageEvents) @elseif ($eventsConfigured) Link to Ladill Events @else Link to Ladill Events @endif Create event in Events
@endif
@if (! $isLinked && $eventsConfigured && $canManageEvents) @php $openLinkModal = session('open_events_link_modal') || $errors->hasAny(['events', 'event_id', 'virtual_session_id']); @endphp

Link to Ladill Events

Choose a virtual or hybrid event. Registration, bulk invitations, speakers, and QR codes will be managed in Events.

@if ($errors->has('events'))
{{ $errors->first('events') }}
@endif
@include('meet.partials.events-link-form', [ 'room' => $room, 'events' => $linkableEvents, 'expectedType' => $expectedType, 'submitLabel' => 'Link event', 'submitClass' => 'btn-primary btn-primary-sm', ])
@endif