{{-- grants-celebration-modal.blade.php ───────────────────────────────── Contains THREE modals that open in sequence: 1. Grants Celebration Modal — user must close manually 2. Zoom Announcement Modal — user must close manually → triggers social modal 3. Social modal — already included separately, just triggered here Drop this ABOVE @include('components.social-modal') in home.blade.php: @include('components.grants-celebration-modal') @include('components.social-modal') Chain: Grants → Zoom → Social --}} @php $recentGrants = \App\Models\Grant::where('status', 1) ->whereNotNull('amount') ->whereNotNull('approved_at') ->orderByDesc('approved_at') ->with('user:id,username,first_name') ->take(6) ->get(); $showCelebration = $recentGrants->isNotEmpty(); @endphp {{-- ══════════════════════════════════════════════════════════════ MODAL 1 — GRANTS CELEBRATION ══════════════════════════════════════════════════════════════ --}} @if($showCelebration)
@endif {{-- ══════════════════════════════════════════════════════════════ MODAL 2 — ZOOM ANNOUNCEMENT ══════════════════════════════════════════════════════════════ --}} {{-- ══════════════════════════════════════════════════════════════ STYLES — both modals ══════════════════════════════════════════════════════════════ --}} {{-- ══════════════════════════════════════════════════════════════ SCRIPTS — both modals + chain logic ══════════════════════════════════════════════════════════════ --}}