diff --git a/src/Components/SmartAdComponent.php b/src/Components/SmartAdComponent.php index b2eb354..a73b052 100644 --- a/src/Components/SmartAdComponent.php +++ b/src/Components/SmartAdComponent.php @@ -31,7 +31,7 @@ public function __construct($slug) */ public function render() { - $smartAd = SmartAd::where('slug', $this->slug)->first(); + $smartAd = SmartAd::where('slug', $this->slug)->where('enabled', true)->first(); return view('smart-ads::components.smart-ad-component', compact('smartAd')); } }