| ID | Name | Last Update | Last View | @foreach($this->functionalRoles as $roleId => $roleLabel){{ $roleLabel }} | @endforeach @foreach($this->teams as $team){{ $team }} | @endforeach||
|---|---|---|---|---|---|---|---|
| {{ $user->id }} | {{ $user->name }} | {{ $user->email }} | {{ $user->latestAudit?->created_at->format('Y-m-d | h:m') }} | {{ cache()->get("user-last-seen-{$user->id}")?->format('Y-m-d | H:i') }} | @foreach ($this->functionalRoles as $roleId => $roleLabel)@php $hasRole = $user->functionalRoles->contains('id', $roleId); @endphp @if($hasRole) @else @endif | @endforeach @foreach ($this->teams as $t => $team)@php $teamRelation = $user->teams->firstWhere('id', $t); $teamRole = $teamRelation?->pivot->role; @endphp @if ($teamRole) {{ $teamRole }} × @else add @endif | @endforeach