{{-- DTHospital - doctor add and edit form. One form for both. The department box is free text with a datalist of the departments already in use, so spelling stays consistent without needing a lookup table that nobody can fill in yet. Copyright (c) ICT Innovations Part of DTHospital Licensed under the GNU General Public License v3.0. --}} @extends('layouts.master') @section('style') @stop @section('content') @php($editing = (bool) $doctor->id)

{{ $editing ? 'Edit ' . $doctor->name : 'Add doctor' }}

@if (count($errors) > 0)
Check the form.
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{ csrf_field() }} @if ($editing) @endif
@foreach ($departments as $department) @endforeach Pick an existing one where you can, so the list stays tidy.
Only needed if this doctor is reachable through the ICTCore integration.
@if ($doctor->img_url) A photo is already on file. Uploading replaces it. @endif
@include('app.partials._login_fields', ['person' => $doctor, 'roleLabel' => 'Doctor']) Cancel
@stop @section('script') @stop