user()?->name; $data['issue_datetime'] = now(); return $data; } protected function getHeaderActions(): array { return [ Action::make('printPrescription') ->label(__('prescriptions.actions.print_prescription')) ->icon('heroicon-o-printer') ->color('info') ->url(fn () => route('prescription.print', $this->getRecord())) ->openUrlInNewTab(), Action::make('printAdmission') ->label(__('prescriptions.actions.print_admission')) ->icon('heroicon-o-printer') ->color('warning') ->visible(fn () => $this->getRecord()->patientRecord?->surgeryAppointment !== null) ->url(fn () => route('prescription.print.admission', $this->getRecord())) ->openUrlInNewTab(), Action::make('printLab') ->label(__('prescriptions.actions.print_lab')) ->icon('heroicon-o-beaker') ->color('gray') ->url(fn () => route('prescription.print', ['prescription' => $this->getRecord(), 'type' => 'lab'])) ->openUrlInNewTab(), DeleteAction::make(), ]; } protected function getFormActions(): array { return []; } }