@extends('layouts.portal') @section('title', 'Team & roles') @section('subtitle', 'Who can open which part of the back office. Every change is written to the audit log.') @section('content') @php $roleLabels = collect(config('rbac.roles'))->map(fn ($r) => $r[0]); @endphp
| Name | Role & status | 2FA | Last sign-in | Change |
|---|---|---|---|---|
| {{ $m->name }}@if($m->id === auth()->id()) you@endif {{ $m->email }} |
{{ $m->roleLabel() }} @if($m->isSuspended())Suspended@endif | @if($m->hasTwoFactor())On@elseNot set up@endif | {{ $m->last_login_at?->diffForHumans() ?? 'Never' }} | @if($m->id !== auth()->id() && (! $m->isSuperAdmin() || auth()->user()->isSuperAdmin())) @if($canEdit && $m->hasTwoFactor())@endif @endif |