@php $userDetail=\Auth::user() ?? ""; $profileImage=$userDetail->getUserDetail->profileImageUrl ?? $userDetail->getBusinessDetail->featureImageUrl; $profileUrl=env('APPLICATION_URL').$profileImage; @endphp
@if(\Illuminate\Support\Facades\File::exists(public_path($profileImage))) @else @endif
@if(count($stories) > 0) @foreach($stories as $story) @foreach($story as $value) @php // Initialize the story image variable $storyImage = ''; // Check if there are any post images and get the first one if(isset($value['profileImageUrl'])){ $storyImage = $value['profileImageUrl']; } @endphp {{-- if(isset($story->postImage[0])){ $storyImage = $story->postImage[0]->postFileUrl ?? ""; } --}}

1 Hour ago

@endforeach @endforeach @endif