@php use App\Models\MstUser; use App\Models\Business; $userDetail=\Auth::user() ?? ""; if(Auth::User()->userTypeId==1){ $userId=\Auth::user()->getUserDetail->userId; $profileImage=$userDetail->getUserDetail->profileImageUrl ?? ""; }else{ $userId=\Auth::user()->getBusinessDetail->businessId; $profileImage= ''; if(isset($userDetail->getBusinessDetail->logoImageUrl)){ $profileImage=$userDetail->getBusinessDetail->logoImageUrl ?? ""; } $businessDetail=$userDetail->getBusinessDetail??""; $workingHours=$businessDetail->workingHours ??""; $products=$businessDetail->businessProduct ??""; } $profileUrl=env('APPLICATION_URL').$profileImage; @endphp @if(Auth::User()->userTypeId==1) @include('user-web.layouts.head') @include('user-web.layouts.header') @else @include('business.layouts.head') @include('business.layouts.header') @endif
{{$comment->user->userName ?? ""}} {{ $comment->comment}}