Remove meeting templates and show Events programme on Meet rooms.
Deploy Ladill Meet / deploy (push) Successful in 42s
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>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?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';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user