@props(['title' => null, 'description' => null, 'canonical' => null, 'noindex' => false]) @php // Links appear as their pages are built; nothing points at a missing route. $links = collect([ ['Features', 'features'], ['Individual', 'cms.individual'], ['Organisation', 'cms.organisation'], ['Pricing', 'pricing'], ['Manual', 'manual'], ['FAQ', 'faq'], ])->filter(fn ($l) => Route::has($l[1])); $announcements = \App\Modules\CMS\Models\CmsAnnouncement::activeFor('public')->latest('starts_at')->limit(3)->get(); @endphp
@foreach ($announcements as $announcement)
$announcement->level === 'info', 'border-emerald-200 bg-emerald-50 text-emerald-900' => $announcement->level === 'success', 'border-amber-200 bg-amber-50 text-amber-900' => $announcement->level === 'warning', ])> {{ $announcement->title }} @if ($announcement->body) — {{ $announcement->body }} @endif @if ($announcement->link_url) {{ $announcement->link_text ?: 'Learn more' }} @endif
@endforeach
{{ mb_substr(config('app.name'), 0, 1) }} {{ config('app.name') }}
{{ $slot }}