1205 followers
@php $user=Auth::user(); if($user->userTypeId==2){ $img1=$user->getBusinessDetail->profileImageUrl; $src=$user->getBusinessDetail->businessId; $name=$user->getBusinessDetail->businessName; $namm='Business'; }else{ $img1=$user->getUserDetail->profileImageUrl; $src=$user->getUserDetail->userId; $name=$user->getUserDetail->userName; $namm='User'; } @endphp