{{ __('Users') }}

{{ __('Users') }}

{{ __('People who can sign in to your company\'s Flamnix account.') }}

{{ __('Add User') }}
@if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif @if (session('newUserCredentials')) @php $credentials = session('newUserCredentials'); @endphp

{{ __('New user created — save this password now') }}

{{ __('There\'s no email delivery set up yet, so this temporary password is shown only once. Copy it and share it with :name directly — they should change it after logging in.', ['name' => $credentials['name']]) }}

{{ __('Email:') }}
{{ $credentials['email'] }}
{{ __('Temporary password:') }}
{{ $credentials['password'] }}
@endif
@if ($users->isEmpty())

{{ __('No users yet.') }}

@else @foreach ($users as $listedUser) @endforeach
{{ __('Name') }} {{ __('Email') }} {{ __('Role') }} {{ __('Status') }}
{{ $listedUser->name }} @if ($listedUser->id === auth()->id()) {{ __('(you)') }} @endif {{ $listedUser->email }} {{ $listedUser->roles->pluck('name')->join(', ') ?: '—' }} @if ($listedUser->trashed()) {{ __('Deactivated') }} @else {{ __('Active') }} @endif
@unless ($listedUser->trashed()) {{ __('Edit') }} @if ($listedUser->id !== auth()->id())
@csrf @method('DELETE')
@endif @else
@csrf
@endunless
{{ $users->links() }}
@endif