@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
DashboardUsers{{ $user->exists ? 'Edit' : 'Add New' }}
{{ $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
@if($user->exists) @can('manageAccess', $user)
@endcan @endif
@push('scripts')
@endpush
@endsection