@extends('layouts.app') @section('title', $user->exists ? 'Edit user: '.$user->name : 'New user') @section('content')
@csrf @if ($user->exists) @method('PUT') @endif
@error('status')
{{ $message }}
@enderror @if (session('deactivation_held')) @endif
@if (auth('web')->user()->is_super_admin && ! $user->is_super_admin) @endif
@forelse ($roles as $role) @empty

No roles you can give yet. Create one under Roles.

@endforelse @error('roles.*')
{{ $message }}
@enderror
@foreach ($branches as $branch)
id, $selectedBranches, true) || ($branches->count() === 1))> id || ($branches->count() === 1))>
@endforeach @error('branches')
{{ $message }}
@enderror @error('default_branch')
{{ $message }}
@enderror
@if ($user->exists)
@csrf

Reset password

Leave empty to generate one. The user must change it at next login.

@if ($user->two_factor_confirmed_at)
@csrf @method('DELETE')

Two-factor authentication is on

Turn it off if the user lost their phone. They can turn it on again from My profile.

@endif @endif @endsection