Deploy Ladill Meet / deploy (push) Successful in 42s
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>
27 lines
562 B
PHP
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';
|
|
}
|
|
}
|