@extends('layouts.dashboard') @section('title', 'Create Staff Account') @section('content') @php $isSP = auth()->user()->role->slug === 'sp'; @endphp
@if ($errors->any())

Please fix the following errors:

@endif

Create Staff Account

Provision a new account with regional system permissions.

@csrf @if ($isSP) @endif {{-- PROFILE --}}

Profile & Account Credentials

@error('email')

{{ $message }}

@enderror

Leave empty or use OE followed by 3 digits, for example OE001.

@error('employee_code')

{{ $message }}

@enderror
{{-- ROLE & GEOGRAPHY --}}

System Access Hierarchy & Scope

{{-- Role --}}
{{-- SP/VP: Geography fields (shown/hidden by JS for SP) --}} @if (in_array(auth()->user()->role->slug, ['sp', 'vp'], true)) {{-- city_id field removed --}} @endif {{-- SD: District only --}} @if (auth()->user()->role->slug == 'sd')
@endif {{-- SP: Manager display badge --}} @if ($isSP) @endif {{-- RM: city removed, district inherited from SD scope --}}
{{-- Actions --}}
Cancel
@if ($isSP) {{-- MANAGER PICKER MODAL --}} @endif @endsection