{{-- DTHospital - lab request and result entry. Results are entered on the same screen that displays them, because a technician filling one test at a time should not have to move between a view and an edit form for every line. Copyright (c) ICT Innovations Part of DTHospital Licensed under the GNU General Public License v3.0. --}} @extends('layouts.master') @section('style') @stop @section('content') @if (Session::get('success'))
{{ Session::get('success') }}
@endif

{{ $patient ? $patient->name : 'Unknown patient' }} {{ $request->date }}

Patient: @if ($patient) {{ $patient->name }} ({{ $patient->patient_id }}) @else {{ $request->patient_name ?: 'Unknown' }} @endif

Requested by: {{ $doctor ? $doctor->name : ($request->doctor_name ?: '-') }}

Status: {{ ucfirst($request->status) }}

{{ csrf_field() }} @foreach ($request->tests as $test) @endforeach
Test Reference range Result Reported
{{ $test->name }} {{ $test->reference_value ?: '-' }} {{ $test->result ?: 'pending' }} {{ $test->reported_at ?: '-' }}

Leaving a box blank does not clear a result that is already recorded, so submitting from a stale page cannot wipe someone else's entry.

@stop @section('script') @stop