ID | Name | Last Update | Last View | @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->teams as $t => $team)@php $teamRelation = $user->teams->firstWhere('id', $t); $teamRole = $teamRelation?->pivot->role; @endphp @if ($teamRole) {{ $teamRole }} × @else add @endif | @endforeach