company->review_status === CompanyReviewStatus::APPROVED->value && Auth::user()->status ===1 &&Carbon::parse(Auth::user()->company->exp_date)->gt(Carbon::now())) { return $next($request); } throw new HttpException(403, "Sorry, the account's authorization expires or is denied"); } }