{{-- ICTHospital - patient registration and edit form. One form for both, because the fields are identical and two near-copies drift apart the moment a column is added. Copyright (c) DEVtrust Part of ICTHospital Licensed under the GNU General Public License v3.0. --}} @extends('layouts.master') @section('style') @stop @section('content') @php($editing = (bool) $patient->id)

{{ $editing ? 'Edit patient ' . $patient->patient_id : 'Register patient' }}

@if (count($errors) > 0)
Check the form.
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{ csrf_field() }} @if ($editing) @endif
@if ($errors->has('phone') || old('allow_same_phone'))
@endif
Age is worked out from this, so it never goes stale.
@if ($patient->img_url) A photo is already on file. A new one replaces it. @endif
Registration details
Decides which price list the patient's invoices use.
Cancel
@stop @section('script') @stop