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