all members see the same counts in the software. How can I make it count specifically for user_id?
@php $check_count = AppModelsSupport::where('status', 2)->get()
@endphp
<li class="header__menu-item"> <span>Support</span>
@if(count($check_count) == 0) @else <span class="notification
notranslate">{{count($check_count)}}</span> @endif </li>
I wanted to count notifications based on user_id, but I couldn’t manage to count them based on member.
2
Answers