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:
@@ -6,18 +6,6 @@
|
||||
<form method="POST" action="{{ route('meet.conferences.store') }}" class="mt-6 space-y-5 rounded-2xl border border-slate-200 bg-white p-6">
|
||||
@csrf
|
||||
|
||||
@if ($templates->isNotEmpty())
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-slate-700">Template</label>
|
||||
<select name="template_id" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
||||
<option value="">None</option>
|
||||
@foreach ($templates as $template)
|
||||
<option value="{{ $template->id }}" @selected(old('template_id') == $template->id)>{{ $template->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-slate-700">Title</label>
|
||||
<input type="text" name="title" value="{{ old('title') }}" required class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
||||
|
||||
@@ -4,6 +4,11 @@
|
||||
<p class="text-xs font-semibold uppercase tracking-wide text-violet-600">Conference</p>
|
||||
<h1 class="text-2xl font-semibold text-slate-900">{{ $room->title }}</h1>
|
||||
<p class="mt-1 text-sm text-slate-500">{{ config('meet.room_statuses')[$room->status] ?? $room->status }}</p>
|
||||
@if(! empty($eventsEventUrl))
|
||||
<a href="{{ $eventsEventUrl }}" target="_blank" rel="noopener" class="mt-2 inline-flex text-sm font-medium text-violet-600 hover:text-violet-800">
|
||||
View in Ladill Events →
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@if ($errors->any())
|
||||
@@ -130,6 +135,8 @@
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@include('meet.partials.programme-agenda', ['room' => $room])
|
||||
|
||||
@if ($room->sessions->isNotEmpty())
|
||||
<div class="mt-6 rounded-2xl border border-slate-200 bg-white p-6">
|
||||
<h2 class="text-sm font-medium text-slate-700">Sessions</h2>
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
@php
|
||||
$programme = $room->setting('programme_snapshot');
|
||||
$linkedItems = (array) $room->setting('linked_programme_items', []);
|
||||
@endphp
|
||||
|
||||
@if(is_array($programme) && ! empty($programme['days']))
|
||||
<div class="mt-6 rounded-2xl border border-slate-200 bg-white p-6">
|
||||
<h2 class="text-sm font-medium text-slate-700">Agenda</h2>
|
||||
@if(! empty($programme['title']))
|
||||
<p class="mt-1 text-xs text-slate-500">{{ $programme['title'] }}</p>
|
||||
@endif
|
||||
|
||||
@if($linkedItems !== [])
|
||||
<p class="mt-2 text-xs font-semibold uppercase tracking-wide text-violet-600">Linked to this session</p>
|
||||
<ul class="mt-2 space-y-2 text-sm text-slate-700">
|
||||
@foreach($linkedItems as $item)
|
||||
<li class="rounded-lg border border-violet-100 bg-violet-50/50 px-3 py-2">
|
||||
@if(! empty($item['time']))
|
||||
<span class="font-mono text-xs text-slate-500">{{ $item['time'] }}</span>
|
||||
@endif
|
||||
<span class="font-medium">{{ $item['title'] ?? 'Item' }}</span>
|
||||
@if(! empty($item['host']))
|
||||
<span class="text-slate-500"> · {{ $item['host'] }}</span>
|
||||
@endif
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
|
||||
<div class="mt-4 space-y-4">
|
||||
@foreach((array) ($programme['days'] ?? []) as $day)
|
||||
<div>
|
||||
@if(! empty($day['label']) || ! empty($day['date']))
|
||||
<h3 class="text-xs font-semibold uppercase tracking-wide text-slate-500">
|
||||
{{ trim(($day['label'] ?? '').' '.($day['date'] ?? '')) }}
|
||||
</h3>
|
||||
@endif
|
||||
<ul class="mt-2 divide-y divide-slate-100 text-sm">
|
||||
@foreach((array) ($day['items'] ?? []) as $item)
|
||||
<li class="py-2">
|
||||
<div class="flex gap-3">
|
||||
@if(! empty($item['time']))
|
||||
<span class="w-14 shrink-0 font-mono text-xs text-slate-400">{{ $item['time'] }}</span>
|
||||
@endif
|
||||
<div>
|
||||
<p class="font-medium text-slate-800">{{ $item['title'] ?? '' }}</p>
|
||||
@if(! empty($item['description']))
|
||||
<p class="mt-0.5 text-xs text-slate-500">{{ $item['description'] }}</p>
|
||||
@endif
|
||||
@if(! empty($item['location']) || ! empty($item['host']))
|
||||
<p class="mt-0.5 text-xs text-slate-400">
|
||||
@if(! empty($item['location'])){{ $item['location'] }}@endif
|
||||
@if(! empty($item['host'])) · {{ $item['host'] }}@endif
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@@ -5,18 +5,6 @@
|
||||
<form method="POST" action="{{ route('meet.rooms.store') }}" class="mt-6 space-y-5 rounded-2xl border border-slate-200 bg-white p-6">
|
||||
@csrf
|
||||
|
||||
@if ($templates->isNotEmpty())
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-slate-700">Template</label>
|
||||
<select name="template_id" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
||||
<option value="">None</option>
|
||||
@foreach ($templates as $template)
|
||||
<option value="{{ $template->id }}" @selected(old('template_id') == $template->id)>{{ $template->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-slate-700">Title</label>
|
||||
<input type="text" name="title" value="{{ old('title') }}" required class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
<x-app-layout title="New template">
|
||||
<div class="mx-auto max-w-lg">
|
||||
<h1 class="text-xl font-semibold text-slate-900">New meeting template</h1>
|
||||
<form method="POST" action="{{ route('meet.templates.store') }}" class="mt-6 space-y-4 rounded-2xl border border-slate-200 bg-white p-6">
|
||||
@csrf
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-slate-700">Name</label>
|
||||
<input type="text" name="name" required class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
||||
</div>
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-slate-700">Duration (minutes)</label>
|
||||
<input type="number" name="duration_minutes" value="60" min="15" max="480" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
||||
</div>
|
||||
<label class="flex items-center gap-2 text-sm"><input type="checkbox" name="is_default" value="1" class="rounded border-slate-300"> Default template</label>
|
||||
<label class="flex items-center gap-2 text-sm"><input type="checkbox" name="waiting_room" value="1" checked class="rounded border-slate-300"> Waiting room (host admits guests)</label>
|
||||
<label class="flex items-center gap-2 text-sm"><input type="checkbox" name="auto_record" value="1" class="rounded border-slate-300"> Auto-record</label>
|
||||
<label class="flex items-center gap-2 text-sm"><input type="checkbox" name="live_captions" value="1" class="rounded border-slate-300"> Live captions</label>
|
||||
<button type="submit" class="btn-primary w-full">Save template</button>
|
||||
</form>
|
||||
</div>
|
||||
</x-app-layout>
|
||||
@@ -1,17 +0,0 @@
|
||||
<x-app-layout title="Meeting templates">
|
||||
<div class="flex items-center justify-between">
|
||||
<h1 class="text-xl font-semibold text-slate-900">Meeting templates</h1>
|
||||
<a href="{{ route('meet.templates.create') }}" class="btn-primary">New template</a>
|
||||
</div>
|
||||
|
||||
<div class="mt-4 grid gap-3 sm:grid-cols-2">
|
||||
@forelse ($templates as $template)
|
||||
<div class="rounded-2xl border border-slate-200 bg-white p-4">
|
||||
<h3 class="font-medium text-slate-900">{{ $template->name }}</h3>
|
||||
<p class="mt-1 text-sm text-slate-500">{{ $template->duration_minutes }} min @if($template->is_default) · Default @endif</p>
|
||||
</div>
|
||||
@empty
|
||||
<p class="col-span-full rounded-2xl border border-dashed border-slate-200 bg-white p-8 text-center text-sm text-slate-500">No templates yet.</p>
|
||||
@endforelse
|
||||
</div>
|
||||
</x-app-layout>
|
||||
@@ -6,18 +6,6 @@
|
||||
<form method="POST" action="{{ route('meet.webinars.store') }}" class="mt-6 space-y-5 rounded-2xl border border-slate-200 bg-white p-6">
|
||||
@csrf
|
||||
|
||||
@if ($templates->isNotEmpty())
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-slate-700">Template</label>
|
||||
<select name="template_id" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
||||
<option value="">None</option>
|
||||
@foreach ($templates as $template)
|
||||
<option value="{{ $template->id }}" @selected(old('template_id') == $template->id)>{{ $template->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-slate-700">Title</label>
|
||||
<input type="text" name="title" value="{{ old('title') }}" required class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
||||
|
||||
@@ -5,6 +5,11 @@
|
||||
<p class="text-xs font-semibold uppercase tracking-wide text-indigo-600">Webinar</p>
|
||||
<h1 class="text-2xl font-semibold text-slate-900">{{ $room->title }}</h1>
|
||||
<p class="mt-1 text-sm text-slate-500">{{ config('meet.room_statuses')[$room->status] ?? $room->status }}</p>
|
||||
@if(! empty($eventsEventUrl))
|
||||
<a href="{{ $eventsEventUrl }}" target="_blank" rel="noopener" class="mt-2 inline-flex text-sm font-medium text-indigo-600 hover:text-indigo-800">
|
||||
View in Ladill Events →
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
@if ($room->canRestart())
|
||||
<form method="POST" action="{{ route('meet.webinars.start', $room) }}">
|
||||
@@ -84,6 +89,8 @@
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@include('meet.partials.programme-agenda', ['room' => $room])
|
||||
|
||||
@php
|
||||
$recordings = $room->sessions->flatMap->recordings->sortByDesc('created_at');
|
||||
$summaries = $room->sessions->flatMap->aiSummaries->where('status', 'ready')->sortByDesc('created_at');
|
||||
|
||||
@@ -31,11 +31,6 @@
|
||||
'icon' => '<path stroke-linecap="round" stroke-linejoin="round" d="M8.625 9.75a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 0 1 .778-.332 48.294 48.294 0 0 0 7.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 2.25a48.394 48.394 0 0 0-8.25 1.07C2.123 3.546 1 4.939 1 6.541v6.018Z" />'],
|
||||
];
|
||||
|
||||
if ($permissions->isAdmin($member)) {
|
||||
$nav[] = ['name' => 'Templates', 'route' => route('meet.templates.index'), 'active' => request()->routeIs('meet.templates.*'),
|
||||
'icon' => '<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z" />'];
|
||||
}
|
||||
|
||||
$adminNav = [];
|
||||
if ($permissions->isAdmin($member)) {
|
||||
$adminNav[] = ['name' => 'Usage', 'route' => route('meet.admin.usage'), 'active' => request()->routeIs('meet.admin.*'),
|
||||
|
||||
Reference in New Issue
Block a user