@if($count>0)
{{ $count }}
@endif
@if($count>0)
{{ $count }} New Messages
@else
Nothing to show
@endif @isset($notifications) @foreach($notifications as $notification) @if(\App\Models\User::where('id',$notification->user_id)->exists())
@if($notification->senderName->pic)
@elseif(Sentinel::getUser()->gender === "male")
@elseif(Sentinel::getUser()->gender === "female")
@else
@endif
{{ $notification->senderName->first_name }} {{ $notification->senderName->last_name }}
{{ $notification->subject }}
{{ $notification->created_at->diffForHumans() }}
@endif @endforeach @endisset
View all