Stories
-
@foreach($stories as $story)
@php
if($story->first()->isBusiness==1){
$user=Business::where('businessId',$story->first()->userId)->first();
$userName=$user->businessName??'';
$userPic='https://hapiverse.com/'.$user->logoImageUrl??'';
$userId=$user->businessId;
}else{
$img = $user->profileImageUrl??"";
$user=MstUser::where('userId',$story->first()->userId)->first();
$userName=$user->userName?? '';
$userPic='https://hapiverse.com/'.$img;
$userId=$story->first()->userId;
}
@endphp
-
{{$userName??''}}
10h ago
@endforeach
@foreach ($userStories as $story)
@php $class="";
$text=0;
if($story->content_type=='story' && $story->postType=='text'){
if($story->text_back_ground=='red' || $story->text_back_ground=='green' || $story->text_back_ground=='blue'){
$class="story-text-with-bg";
$text=1;
}
}
$user=Business::where('businessId',$userId_)->first();
if($user){
$user=Business::where('businessId',$userId_)->first();
$userName=$user->businessName?? '';
$userPic='https://hapiverse.com/'.$user->logoImageUrl;
}else{
$user=MstUser::where('userId',$userId_)->first();
$userName=$user->userName??'';
$userPic='https://hapiverse.com/';
}
@endphp
@foreach ($story->postImage as $image)
@php
$url='https://hapiverse.com/'.$image->postFileUrl;
@endphp
@if($text!=1)
@endif
@endforeach