@extends('layouts.website.website') @section('content')
Prescription
@if (Auth::user()->role_id == 4)
@endif
@foreach ($prescription as $item) @if($item->patient) @endif @endforeach
Prescription Id Date Patient Patient Id Medicine Options
{{ $item->id }} {{ Carbon\Carbon::parse($item->date)->format('d,M Y h:i') }} {{ $item->patient->name }} {{ $item->patient_id }}

@foreach (App\DoctorPrescriptionMedicine::where('prescription_id',$item->id)->get() as $med) {{ $med->medicine }} - {{ $med->dosage }}mg | {{ $med->frequency }}
@endforeach

View Prescription {{-- Edit Prescription --}} @if (Auth::user()->role_id == 4) @endif {{-- Print --}}
@if (Auth::user()->role_id == 4) @endif @endsection