@extends('layouts.admin') @section('content')

Prescription Data

@if(count($viewData['prescriptions']) > 0) @foreach($viewData['prescriptions'] as $prescription) @endforeach
User ID Medication Instructions Dosage Frequency Edit Delete
{{ optional($prescription->user)->name }} {{ $prescription->medication }} {{ $prescription->instructions }} {{ $prescription->dosage }} {{ $prescription->frequency }}
@csrf @method('DELETE')
@else

No prescriptions found.

@endif
@endsection