@extends('admin.layouts.app') @section('title', 'New User') @section('content')
{{-- Header --}}
← Back to Users

New User

@if($errors->any())
@endif
@csrf {{-- 1. ACCOUNT --}}
Account
The user logs in with this email + password. On first login they get a trusted-device / optional PIN choice.
{{-- 2. CENTRAL PROFILE — mobile/location + status + purpose & interests (§20) --}}
Profile — Purpose & Interests
@foreach($interests as $key => $label) @php $checked = in_array($key, old('interests', []), true); @endphp @endforeach
All answers will be saved to the same User ID — no separate account (One Person → One Account).
{{-- 3. ACCESS: role + teams --}}
Access — Role + Teams
Role = what they can do (capability, from the Roles matrix), Teams = where it applies (place scope). Without a team, the user cannot see any workspace / place rows.
@foreach($roles as $role)
{{ $role->label }}: {{ $role->description }}
@endforeach
@if($teams->isEmpty())
No teams yet — create them first under Administration → Teams.
@else
@foreach($teams as $team) @php $checked = in_array($team->id, old('teams', []), true); @endphp @endforeach
The team's place is the user's scope — work only in that workspace / place.
@endif
Cancel
{{-- Contract note --}}
Contract: Place → Team → User → Role → Permission → Content — here you assign the Team + Role; enforcement combines both (403 + scope).
@endsection