From c6c9f6a9fc24427d447243a1472f6404b6a659a5 Mon Sep 17 00:00:00 2001 From: Punyapal Shah Date: Sat, 21 Sep 2024 20:44:55 +0530 Subject: [PATCH] Refactor feed.blade.php to include logic for displaying questions based on hashtags --- resources/views/livewire/feed.blade.php | 32 +++++++++++++------------ 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/resources/views/livewire/feed.blade.php b/resources/views/livewire/feed.blade.php index b963e6f53..88fa847ee 100644 --- a/resources/views/livewire/feed.blade.php +++ b/resources/views/livewire/feed.blade.php @@ -1,21 +1,23 @@
@forelse ($questions as $question) - @if($hashtag !== null) - - @else - - @endif +
+ @if($hashtag !== null && $hashtag !== '') + + @else + + @endif +
@empty
There are no questions to show.
@endforelse