@php $action = route('drugs.update', $drug); $method = 'PUT'; $submitLabel = 'Save changes'; $backRoute = route('drugs.show', $drug); $lineCount = $drug->prescriptionItems()->count(); @endphp {{ $drug->code }} @if ($lineCount > 0) · named on {{ $lineCount }} line(s) @endif @include('drugs._form')