Files
ladill-meet/app/Support/EventsSourceLink.php
T
isaaccladandCursor aed7094fed
Deploy Ladill Meet / deploy (push) Successful in 42s
Remove meeting templates and show Events programme on Meet rooms.
Templates duplicated create-form settings without edit/delete flows; drop the feature and table. Conference and webinar pages render synced programme snapshots and link back to Ladill Events.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-01 22:31:03 +00:00

27 lines
562 B
PHP

<?php
namespace App\Support;
use App\Models\Room;
class EventsSourceLink
{
public static function eventAdminUrl(Room $room): ?string
{
$source = (array) ($room->source ?? []);
if (($source['app'] ?? '') !== 'events') {
return null;
}
$eventId = (int) ($source['event_id'] ?? 0);
if ($eventId <= 0) {
return null;
}
$base = rtrim((string) config('meet.events_app_url', 'https://events.ladill.com'), '/');
return $base.'/events/'.$eventId.'/attendees';
}
}