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