@php $active = false; if (!is_null($user) && $user->session) { $lastSeen = \Carbon\Carbon::createFromTimestamp($user->session->last_activity)->timezone(company()?company()->timezone:$user->company->timezone); $lastSeenDifference = now()->diffInSeconds($lastSeen); if ($lastSeenDifference > 0 && $lastSeenDifference <= 90) { $active = true; } } @endphp
@if (!is_null($user)) @if(in_array('employee', user_roles()) && !in_array('admin', user_roles())) @if(user()->permission('view_clients') == 'all') @if ($active) @endif {{ $user->name }} @else @if ($active) @endif {{ $user->name }} @endif @else @if ($active) @endif {{ $user->name }} @endif
@if(in_array('employee', user_roles()) && !in_array('admin', user_roles())) @if(user()->permission('view_clients') == 'all') {{ $user->name_salutation }} @if($user->status != 'active') @endif @else {{ $user->name_salutation }} @if($user->status != 'active') @endif @endif @else {{ $user->name_salutation }} @if($user->status != 'active') @endif @endif @if (isset($user->admin_approval) && $user->admin_approval == 0) @elseif (user() && user()->id == $user->id) @lang('app.itsYou') @endif

{{ !is_null($user->clientDetails) && !is_null($user->clientDetails->company_name) ? $user->clientDetails->company_name : ' ' }}

@else -- @endif