label(__('prescriptions.actions.print_prescription')) ->icon('heroicon-o-printer') ->color('info') ->visible(fn () => $this->getRecord()->prescriptions()->exists()) ->url(fn () => route('prescription.print', $this->getRecord()->prescriptions()->latest()->first())) ->openUrlInNewTab(), Action::make('printAdmission') ->label(__('prescriptions.actions.print_admission')) ->icon('heroicon-o-printer') ->color('warning') ->visible(fn () => $this->getRecord()->surgeryAppointment !== null) ->url(fn () => route('surgery-appointment.print.admission', $this->getRecord())) ->openUrlInNewTab(), Action::make('printLab') ->label(__('prescriptions.actions.print_lab')) ->icon('heroicon-o-beaker') ->color('gray') ->url(fn () => route('patient.print.lab', $this->getRecord())) ->openUrlInNewTab(), DeleteAction::make(), ]; } protected function getFormActions(): array { return []; } }