@php
$generalSetting = App\Models\GeneralSetting::first();
$unseenCount = \App\Models\ProfileVisit::where('user_id', Auth::id())
->where('is_seen', false)
->count();
$user = Auth::user();
$user_detail= \App\Models\UserPartnerExpectation::where('user_id', $user->id)->first();
$notificationData = checkNotifications();
$notificationStatus =$notificationData['notification'];
$chatUsers = \App\Models\Message::where('receiver_id', $user->id)
->where('read', false)
->select('receiver_id', \DB::raw('count(*) as countmessage'))
->groupBy('receiver_id')
->get();
$totalCountMessages = $chatUsers->sum('countmessage');
@endphp