JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr@php use App\Models\Utility; $users = \Auth::user(); $currantLang = $users->currentLanguage(); $languages = \App\Models\Utility::languages(); $profile = \App\Models\Utility::get_file('uploads/avatar/'); $unseenCounter = App\Models\ChMessage::where('to_id', Auth::user()->id) ->where('seen', 0) ->count(); $unseen_count = DB::select('SELECT from_id, COUNT(*) AS totalmasseges FROM ch_messages WHERE seen = 0 GROUP BY from_id'); @endphp @if (isset($setting['cust_theme_bg']) && $setting['cust_theme_bg'] == 'on')
@else
@endif {{--
--}}
    @if (Auth::user()->type != 'super admin') @impersonating($guard = null) @endImpersonating
  • {{ $unseenCounter }}
  • @endif {{-- unread messages --}} @if (\Auth::user()->type != 'super admin') @endif @php // $currantLang = basename(\App::getLocale()); // $languages = \App\Models\Utility::languages(); // $lang = isset($users->lang) ? $users->lang : 'en'; // if ($lang == null) { // $lang = 'en'; // } // if (\Schema::hasTable('languages')) { // $LangName = \App\Models\Languages::where('code', $lang)->first()->fullName; // } else { // $LangName = 'english'; // } $lang = isset($users->lang) ? $users->lang : 'en'; if ($lang == null) { $lang = 'en'; } $LangName = \App\Models\Languages::where('code', $lang)->first()->fullName; if (empty($LangName)) { $LangName = new App\Models\Utility(); $LangName->fullName = 'English'; } @endphp
@push('scripts') {{-- @include('Chatify::layouts.modals') --}} @endpush