Fix programme attachment dropdown always appearing disabled on events.
Deploy Ladill Events / deploy (push) Successful in 31s

Load itinerary options in the event show controller and link to programme creation when none exist yet.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-02 00:10:58 +00:00
co-authored by Cursor
parent e9b51024d9
commit 93272f968a
3 changed files with 87 additions and 1 deletions
@@ -629,7 +629,12 @@
<label class="block text-[11px] font-medium text-slate-500">Programme outline <span class="text-slate-400">(optional)</span></label>
@if($itineraryOptions->isEmpty())
<p class="mt-1 rounded-xl border border-dashed border-slate-200 bg-slate-50 px-3.5 py-2.5 text-xs text-slate-400">
Create an Itinerary QR code first to attach it here as the event programme.
@if(Route::has('programmes.create'))
<a href="{{ route('programmes.create') }}" class="font-medium text-indigo-600 hover:text-indigo-800">Create a programme</a>
first to attach it here as the event outline.
@else
Create a programme first to attach it here as the event outline.
@endif
</p>
@else
<select name="programme_qr_id" class="mt-1 w-full rounded-xl border border-slate-200 px-3 py-2.5 text-sm text-slate-700 focus:border-indigo-400 focus:outline-none focus:ring-1 focus:ring-indigo-400/30">