@php $drug = $drug ?? null; $action = $action ?? route('drugs.store'); $method = $method ?? 'POST'; $submitLabel = $submitLabel ?? 'Add to formulary'; $backRoute = $backRoute ?? route('drugs.index'); // "Not controlled" is what the controller records when the flag is off, not // a schedule a prescriber could pick by mistake. $scheduleOptions = collect($schedules)->except('none')->all(); $pregnancyOptions = collect($pregnancyCategories) ->mapWithKeys(fn (string $category) => [$category => strtoupper($category)]) ->all(); @endphp
Retiring a drug keeps every past script readable — the lines hold the name as written. Existing prescriptions finish dispensing; only new lines stop naming it.