Debt (Details - Interest expense) - USD ($) $ in Thousands |
12 Months Ended | ||||
|---|---|---|---|---|---|
Apr. 30, 2023 |
Apr. 30, 2022 |
Apr. 30, 2021 |
|||
| Debt Instrument [Line Items] | |||||
| Amortization of debt discount | $ 1,046 | $ 1,030 | $ 916 | ||
| Convertible Notes [Member] | |||||
| Debt Instrument [Line Items] | |||||
| Contractual interest expense | 1,395 | 1,603 | 245 | ||
| Amortization of issuance costs | 1,046 | 1,030 | 54 | ||
| Amortization of debt discount | [1] | 0 | 0 | 862 | |
| Total interest expense associated with Convertible Notes | $ 2,441 | $ 2,633 | $ 1,161 | ||
| |||||