@php use App\Models\Business; $userDetail=\Auth::user() ?? ""; if(Auth::User()->userTypeId==1){ $profileImage=$userDetail->getUserDetail->profileImageUrl ?? ""; }else{ $profileImage=$userDetail->getBusinessDetail->logoImageUrl ?? ""; } $profileUrl='https://hapiverse.com/'.$profileImage; @endphp