{{-- DTHospital - prescription list. The drug filter is the query the legacy free text column made impossible, so it is on the screen rather than buried. 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

Prescriptions


@if ($prescriptions->total() === 0)

Nothing matches.

@else @foreach ($prescriptions as $prescription) @endforeach
Date Patient Doctor Medicines Actions
{{ $prescription->date }} {{ optional($patients->firstWhere('id', (int) $prescription->patient))->name ?? 'Unknown' }} {{ optional($doctors->firstWhere('id', (int) $prescription->doctor))->name ?? '-' }} @foreach ($prescription->items as $item) {{ $item->name }} @endforeach
{{ csrf_field() }}

{{ $prescriptions->total() }} prescription(s).

{!! $prescriptions->links() !!} @endif
@stop @section('script') @stop