@php // Dynamically load active Announcement Popup from Super Admin or Custom VIP Popup $activePopup = null; try { if (\Illuminate\Support\Facades\Schema::hasTable('popups')) { $activePopup = \App\Models\Popup::where('status', 1)->orderBy('serial_number', 'ASC')->first(); } } catch (\Throwable $e) { $activePopup = null; } $popupSec = null; try { \App\Models\Admin\ImageText::ensureColumnsExist(); $popupSec = \App\Models\Admin\ImageText::first(); } catch (\Throwable $e) {} $isPopupActive = (!isset($popupSec->popup_status) || $popupSec->popup_status == 1); @endphp @if ($isPopupActive && ($activePopup || $popupSec)) {{-- Year-End Growth Deal Popup v2 - Pixel Perfect Match --}} {{-- .gd-overlay --}} {{-- ============================ STYLES ============================ --}} {{-- ============================ SCRIPT ============================ --}} @endif