{{-- Shared user invite/edit form partial. Expects: $formAction (string) — route URL the form posts to $formMethod ('POST'|'PUT') — HTTP verb $user (User|null) — null when creating $currentIps (string) — pre-filled allowed IPs textarea --}}
@csrf @if($formMethod === 'PUT') @method('PUT') @endif {{-- Name --}}
{{-- Email --}}
{{-- Administrator Toggle --}}

Enabling this allows the user to manage users, roles, permissions, and page access.

{{-- Roles --}} @php $roleOptions = collect($roles ?? []); $selectedRoles = old('roles', $userRoles ?? []); @endphp
@if($roleOptions->isEmpty())

No roles exist yet — create one under Roles first.

@else
@foreach($roleOptions as $role) @endforeach

The user's sidebar pages come from the permissions on these roles. A user with no role (and no page permissions) has nothing to land on after signing in.

@endif @error('roles')

{{ $message }}

@enderror @error('roles.*')

{{ $message }}

@enderror
{{-- Allowed Login IPs --}}

Enter one IP address or CIDR range per line (commas also accepted). Supports exact IPs (e.g. 203.0.113.10) and CIDR ranges (e.g. 203.0.113.0/24). @if(config('fortify.login_ip_check_enabled')) This field is required — a user with no allowed IPs cannot log in. @else This field is optional because login IP checking is currently disabled in the environment. @endif

Cancel