@php use App\Models\MstUser; use App\Models\Business; use App\Models\Plan; $userDetail=\Auth::user() ?? ""; $profileImage=$userDetail->getBusinessDetail->logoImageUrl ?? ""; $profileUrl=env('APPLICATION_URL').$profileImage; if(Auth::User()->userTypeId==2){ $reviews=Auth::User()->getBusinessDetail->rating; } $businessPlans=Plan::where('planType',2)->get(); $userPlans=Plan::where('planType',1)->get(); @endphp