@extends('layouts.app') @section('title', 'New Prescription') @section('styles') @endsection @section('content')

New Prescription

Write a prescription pad — one or more drugs in a single slip

@if($errors->any())

Please fix the following:

@endif
@csrf
{{-- LEFT: Patient + Drugs --}}
{{-- Patient + Pad Type --}} {{-- NOTE: no overflow-hidden on this card — the search dropdown needs to escape the card boundary when it expands below. --}}

Patient

{{-- Drugs Table --}} {{-- NOTE: no overflow-hidden — per-row drug dropdowns need to escape the card boundary, especially for the last row. --}}

Drugs

{{-- Rows added by JS — at least one always present --}}
# Drug Name * Dose Frequency Duration Route Qty *

Tip: when "External pad" is OFF, the drug name field searches your inventory. Turn it ON to type any drug freely (e.g. drugs we don't stock that the patient buys outside).

{{-- Shared instructions --}}

Additional Instructions (optional, applies to whole pad)

{{-- RIGHT: Summary + Submit --}}

Summary

Prescriber {{ auth()->user()->name }}
Date {{ now()->format('d M Y · H:i') }}
Type In-house
Drugs 0

Patient

— not selected —

Cancel
{{-- Hidden template row used by JS --}} @endsection @section('scripts') @endsection