public static function PromotionCase() { $status = PromotionStatus::where('user_id', \Auth::user()->id)->where('global', 1)->first(); if ($status) { return true; } else { return false; } }
public function checkbloc2() { if (\Request::ajax()) { $global_status = PromotionStatus::where('user_id', \Auth::user()->id)->first(); if ($global_status->bloc2 == 1) { echo 'on'; } } }