{{-- Platform-wide announcements pushed by the super admin (e.g. "صيانة الأحد 2 صباحاً"). Renders every active announcement at the top of the tenant page. Hidden silently when the announcements table doesn't exist yet (e.g. a fresh checkout that hasn't run migrations) — Schema::hasTable keeps the layout from crashing during initial setup. --}} @php $platformAnnouncements = collect(); if (\Illuminate\Support\Facades\Schema::connection('landlord')->hasTable('announcements')) { $platformAnnouncements = \App\Models\Landlord\Announcement::active()->latest()->get(); } @endphp @foreach($platformAnnouncements as $ann) @php $iconFor = [ 'info' => 'info-circle', 'success' => 'circle-check', 'warning' => 'alert-triangle', 'danger' => 'alert-octagon', ][$ann->level] ?? 'info-circle'; @endphp