{{ __('User Management') }}
@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

Users

Manage users for this dealer context. Roles and departments are dealer-scoped.

@can('settings.users.manage') Add User @endcan
@forelse ($users as $user) @empty @endforelse
Name Email Department Branch Roles Status Created Actions
{{ $user->full_name }} {{ $user->email }} @if ($user->is_builtin) Built-in @endif {{ optional($user->department)->name ?? '—' }} {{ optional($user->branch)->name ?? '—' }} {{ $user->roles->pluck('name')->join(', ') ?: '—' }} @if ($user->is_disabled) Disabled @else Active @endif {{ $user->created_at?->format('Y-m-d') ?? '—' }}
@can('settings.users.manage') Edit @endcan @can('settings.users.security') @if (auth()->id() !== $user->id)
@csrf @method('PATCH')
@csrf
@if (! $user->is_builtin)
@csrf @method('DELETE')
@endif @endif @endcan
No users found.
{{ $users->links() }}
@if ($deletedUsers->isNotEmpty())

Deleted Users

These users have been soft deleted and are not able to log in.

@foreach ($deletedUsers as $user) @endforeach
Name Email Department Roles Deleted At Actions
{{ $user->full_name }} {{ $user->email }} {{ optional($user->department)->name ?? '—' }} {{ $user->roles->pluck('name')->join(', ') ?: '—' }} {{ $user->deleted_at?->format('Y-m-d H:i') ?? '—' }}
@csrf @method('PATCH')
@endif