@php $unseenCounter = App\Models\ChMessage::where('to_id', Auth::user()->id) ->where('seen', 0) ->count(); $logo = \App\Models\Utility::get_file('avatars/'); @endphp @php $languages = \App\Models\Utility::languages(); if (Auth::user()->type == 'admin') { $setting = App\Models\Utility::getAdminPaymentSettings(); if ($setting['color']) { $color = $setting['color']; } else { $color = 'theme-3'; } $dark_mode = $setting['cust_darklayout']; $cust_theme_bg = $setting['cust_theme_bg']; $SITE_RTL = $setting['site_rtl']; } else { $adminSetting = App\Models\Utility::getAdminPaymentSettings(); $setting = App\Models\Utility::getcompanySettings($currentWorkspace->id); $color = $setting->theme_color; $dark_mode = $setting->cust_darklayout; $SITE_RTL = $setting->site_rtl; $cust_theme_bg = $setting->cust_theme_bg; } if ($color == '' || $color == null) { $settings = App\Models\Utility::getAdminPaymentSettings(); $color = $settings['color']; } if ($dark_mode == '' || $dark_mode == null) { $dark_mode = $settings['cust_darklayout']; } if ($cust_theme_bg == '' || $dark_mode == null) { $cust_theme_bg = $settings['cust_theme_bg']; } if ($SITE_RTL == '' || $SITE_RTL == null) { $SITE_RTL = env('SITE_RTL'); } $currantLang = basename(App::getLocale()); if ($currantLang == '') { $currantLang = 'en'; } @endphp
    @if (Auth::user()->getGuard() != 'client') @impersonating($guard = null) @endImpersonating @endif @if (\Auth::user()->type == 'user') @if ($adminSetting['enable_chat'] == 'on')
  • {{ $unseenCounter }}
  • @endif @endif @if (\Auth::user()->type == 'user') @endif
@if (\Auth::user()->type != 'admin' && $login_status == false) @endif