@php $active = false; $session = $user->session ?? null; if ($session) { $lastSeen = \Carbon\Carbon::createFromTimestamp($session->last_activity) ->timezone(company() ? company()->timezone : $user->company->timezone); $lastSeenDifference = now()->diffInSeconds($lastSeen); $active = ($lastSeenDifference > 0 && $lastSeenDifference <= 90); } @endphp
{{ !is_null($user->employeeDetail) && !is_null($user->employeeDetail->designation) ? $user->employeeDetail->designation->name : ' ' }}