@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
{{ !is_null($user->clientDetails) && !is_null($user->clientDetails->company_name) ? mb_ucwords($user->clientDetails->company_name) : ' ' }}