@extends('layouts.admin') @section('title', $user->exists ? 'Edit Account' : 'Add New Doctor / Staff') @section('page', 'staff') @section('content') @php $isDoctor = old('role', $user->role) === 'doctor'; @endphp

{{ $user->exists ? 'Edit Account' : 'Add New Doctor / Staff' }}

Create a new user account and assign appropriate role and permissions.

@if($errors->any())
@foreach($errors->all() as $e)
{{ $e }}
@endforeach
@endif
@csrf @if($user->exists) @method('PUT') @endif
Basic Information
Enter the personal and professional details.
exists) required @endunless placeholder="{{ $user->exists ? 'Leave blank to keep' : 'Min 8, mixed case + number' }}">
{{-- Staff team --}}
{{-- Doctor-only fields --}}
{{ config('clinic.currency.symbol') }}
@if($user->doctorProfile?->signature_path)A signature is on file.@endif
Role Permissions
Set the appropriate role to control access.

Doctor Role

  • Manage own appointments
  • View assigned patients
  • Add prescriptions
  • Access patient records

Staff Role

  • Manage appointments
  • Patient registration
  • Billing & payments
  • Communication (SMS/Email)
  • No clinical access
@if($user->exists) @can('manageAccess', $user)
Module Access Overrides
Tick modules this user may access.
@foreach(config('clinic.modules') as $key=>$label) @endforeach
@endcan @endif
@if($user->exists) @can('manageAccess', $user)
@csrf @method('PUT')
@endcan @endif
@push('scripts') @endpush @endsection