@extends('layouts.app') @section('heading','User Accounts') @section('content') @if(session('generated_password'))
Temporary password for {{ session('generated_user','the account') }}: {{ session('generated_password') }}
Copy it now and deliver it securely. The user will be forced to change it after signing in.
@endif

Archive accounts instead of permanently deleting operational history. Archived users cannot sign in.

Create Account
@forelse($users as $u) @empty @endforelse
NameUsernameEmailRoleStatusActions
{{ $u->name }} {{ $u->username }} {{ $u->email }} {{ $u->getRoleNames()->join(', ') }} @if($u->trashed())Archived @else{{ $u->is_active?'Active':'Inactive' }}@endif
@if($u->trashed())
@csrf
@else Edit @unless($u->hasRole('Superadmin'))
@csrf
@if(!$u->is(auth()->user()))
@csrf @method('delete')
@endif @endunless @endif
No user accounts found.
{{ $users->links() }}
@endsection