Users
{{-- --}}
{{-- @if(!$hideFilters)
@error('search') {{ $message }} @enderror
@endif --}}
@if (Session::get('message')) @endif @if($errors->all()) @endif
@foreach($this->teams as $team) @endforeach @foreach($this->users as $user) @foreach ($this->teams as $t => $team) @endforeach @endforeach
ID Name Email Last Update Last View{{ $team }}
{{ $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') }} @php $teamRelation = $user->teams->firstWhere('id', $t); $teamRole = $teamRelation?->pivot->role; @endphp @if ($teamRole) {{ $teamRole }} × @else add @endif
{{-- {{ $customers->links() }} --}}