@php $adminNotifications = unreadNotification($auth_user->id,true); $unreadCount = unreadNotification($auth_user->id); $bonusCredits = getBonusCredits($auth_user->id); $rewardPoint = getRewardPoints($auth_user->id); $userCredits = $auth_user->credits + $auth_user->free_credits; $multiProfileNumbers = getMutliProfileNumbers($auth_user->id, $auth_user->parent_id, $auth_user->phone); $getUserPhoneNumberList = getUserPhoneNumberList(); @endphp @push('styles') @endpush
{!! getIcon('abstract-14', 'fs-2 fs-md-1') !!}
@php $svg = "fas fa-2x fa-ban"; $tooltip = "Enterprise DNC is disabled. Click here to enable. We recommend to enable Enterprise DNC"; $color = "danger"; if($auth_user->ednc): $svg = "far fa-2x fa-dot-circle"; $tooltip = "Enterprise DNC is enabled. Click here to disable."; $color = "success"; endif; @endphp
@if($bonusCredits['actual'] > 0)
{{$bonusCredits['display']}}
@endif @if(($auth_user->canany(['carbon-list', 'reward-points-list'])) && $rewardPoint > 0) @else @endif @canany(['carbon-list', 'multi-profile-list']) @php $canShowDropdown = (isset($_SESSION['parent_profile_id']) && $_SESSION['parent_profile_id']) || (empty($auth_user->parent_id) && $auth_user->enable_multi_profile == 1); @endphp @if ($canShowDropdown)
@endif @endcanany
@if($auth_user->hasRole(1)) @else
@if($unreadCount > 0) {{$unreadCount}} @endif
@endif
@if(!empty($auth_user->avatar))
img
@else
{{ substr($auth_user->name, 0, 1) }}
@endif