user()?->name; $data['issue_datetime'] = now(); return $data; } protected function getFormActions(): array { return []; } protected function getRedirectUrl(): string { $record = $this->getRecord(); if ($this->printType === 'prescription') { return route('prescription.print', $record); } if ($this->printType === 'lab') { return route('prescription.print', ['prescription' => $record, 'type' => 'lab']); } if ($this->printType === 'admission') { return route('prescription.print.admission', $record); } return static::getResource()::getUrl('index'); } }