Files
ladill-events/resources/views/events/programmes.blade.php
T
isaaccladandCursor f48865d437
Deploy Ladill Events / deploy (push) Successful in 27s
Unify primary buttons with gradient pill design across the app.
Add shared btn-primary components and plus icons on create/new actions for a consistent Ladill UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-08 22:49:28 +00:00

35 lines
2.0 KiB
PHP

<x-user-layout>
<x-slot name="title">Programmes</x-slot>
<div class="space-y-6">
<div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
<div>
<h1 class="text-xl font-semibold text-slate-900">Programmes</h1>
<p class="mt-1 text-sm text-slate-500">Itinerary and schedule outlines you can attach to events and share with attendees.</p>
</div>
<a href="{{ route('programmes.create') }}" class="btn-primary">
<svg class="h-4 w-4" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15"/></svg>
New programme
</a>
</div>
@if($programmes->isEmpty())
<div class="rounded-2xl border border-dashed border-slate-200 bg-white px-6 py-12 text-center">
<p class="text-sm text-slate-500">No programmes yet.</p>
<a href="{{ route('programmes.create') }}" class="mt-3 inline-block text-sm font-medium text-indigo-600 hover:text-indigo-800">Create a programme outline</a>
</div>
@else
<div class="divide-y divide-slate-100 rounded-2xl border border-slate-200 bg-white">
@foreach($programmes as $programme)
<a href="{{ route('events.show', $programme) }}" class="flex items-center justify-between px-6 py-4 hover:bg-slate-50">
<div>
<p class="font-medium text-slate-900">{{ $programme->content()['title'] ?? $programme->label }}</p>
<p class="text-xs text-slate-500">{{ $programme->content()['event_date'] ?? 'No date set' }}</p>
</div>
<span class="text-xs text-slate-400">{{ $programme->publicUrl() }}</span>
</a>
@endforeach
</div>
@endif
</div>
</x-user-layout>