{{-- Top dark marquee — runs above the nav on every public page. Admin-driven: it pulls the SAME active announcements the user shell's announcement-bar uses (managed at /admin/announcements, cached 60s). Whatever the operator publishes there drives this public ticker too. When nothing is published we fall back to the live-editable editorial copy (fc()) so the marketing strip is never empty. --}} @php $annRows = \Illuminate\Support\Facades\Cache::remember( 'announcements.active.v1', 60, fn () => \App\Models\Announcement::active()->get(), ); @endphp
@foreach (range(0, 1) as $__loop)
@if ($annRows->isNotEmpty()) {{-- Admin announcements drive the ticker. --}} @foreach ($annRows as $__i => $a) @if ($__i > 0) · @endif @if ($__i === 0) @endif @if ($a->link_url) {{ $a->text }}@if ($a->link_label) · {{ $a->link_label }} →@endif @else {{ $a->text }} @endif @endforeach @else {{-- No published announcements → editorial default (live-editable). --}} {{ fc('ticker.message1', '240,184,209 messages delivered this month') }} · {{ fc('ticker.message2', '4,218 active workspaces across 38 markets') }} · {{ fc('ticker.message3', 'Median template approval · 18m') }} · {{ fc('ticker.message4', '▲ +34% revenue lift · 90 days post-onboarding') }} · {{ fc('ticker.message5', 'Now live: AI Flow Generation') }} @endif
@endforeach