@php if (!isset($plans)) { $plans = App\Models\Admin\Plan::select('priority','slug','title','status')->where('status', '1')->oldest('priority')->get(); } if (!isset($website_data)) { $website_data = App\Models\Admin\WebsiteSetting::where(function ($query) { $query ->where('type', 'logo') ->orWhere('type', 'email') ->orWhere('type', 'support_phone') ->orWhere('type', 'whatsapp') ->orWhere('type', 'trainers') ->orWhere('type', 'students') ->orWhere('type', 'live_training') ->orWhere('type', 'community_earning') ->orWhere('type', 'address'); })->pluck('content', 'type'); } if (!isset($social_media_link)) { $social_media_link = App\Models\Admin\WebsiteSetting::where('type', 'social') ->where(function ($query) { $query ->where('content', 'facebook') ->orWhere('content', 'youtube') ->orWhere('content', 'instagram') ->orWhere('content', 'linkedin'); }) ->pluck('url', 'content'); } if (!isset($notifications)) { $notifications = App\Models\Notification::select('link','description','created_at')->get(); } @endphp