Stockholders' Equity (Tables)
   | 
3 Months Ended | 
Jul. 31, 2022  | 
| Stockholders' Equity Note [Abstract] | 
 
 | 
| Schedule of Restricted Stock Unit Activity | 
 A summary of the Company’s RSU activity, granted under the 2012 and 2018 Equity Incentive Plans, during the three months ended July 31, 2022 is presented below: 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
| Restricted Stock Units | 
 | 
Number of Shares | 
 | 
Weighted Average Grant Date Fair Value | 
 
| Unvested balance outstanding, April 30, 2022 | 
 | 
929,928  | 
 | 
 | 
$ | 
6.12  | 
 | 
 
| Granted | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 
| Forfeits | 
 | 
(172,828) | 
 | 
 | 
7.65  | 
 | 
 
| Vested | 
 | 
(14,345) | 
 | 
 | 
0.97  | 
 | 
 
| Expired | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 
| Unvested balance outstanding, July 31, 2022 | 
 | 
742,755  | 
 | 
 | 
$ | 
5.86  | 
 | 
 
  
 | 
| Summary of Warrant Activity | 
A summary of the Company’s warrant activity during the three months ended July 31, 2022 is presented below:
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
| Warrants | 
 | 
Number of Shares | 
 | 
Weighted Average Exercise Price | 
 | 
Weighted Average Remaining Contractual Term | 
 | 
Aggregate Intrinsic Value | 
 
| Balance Outstanding, April 30, 2022 | 
 | 
649,174  | 
 | 
 | 
$ | 
4.70  | 
 | 
 | 
1.96 | 
 | 
$ | 
—  | 
 | 
 
| Granted | 
 | 
—  | 
 | 
 | 
$ | 
—  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 
| Exercised | 
 | 
—  | 
 | 
 | 
$ | 
—  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 
| Surrendered | 
 | 
—  | 
 | 
 | 
$ | 
—  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 
| Expired | 
 | 
(224,174) | 
 | 
 | 
$ | 
6.87  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 
| Balance Outstanding, July 31, 2022 | 
 | 
425,000  | 
 | 
 | 
$ | 
4.70  | 
 | 
 | 
1.96 | 
 | 
$ | 
—  | 
 | 
 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
| Exercisable, July 31, 2022 | 
 | 
400,000  | 
 | 
 | 
$ | 
4.89  | 
 | 
 | 
1.80 | 
 | 
$ | 
—  | 
 | 
 
 
 | 
| Share-based Payment Arrangement, Option, Exercise Price Range | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
| OUTSTANDING WARRANTS | 
 | 
EXERCISABLE WARRANTS | 
 
Exercise Price | 
 | 
Weighted Average Exercise Price | 
 | 
Outstanding Number of Warrants | 
 | 
Weighted Average Exercise Price | 
 | 
Weighted Average Remaining Life In Years | 
 | 
Exercisable Number of Warrants | 
 
| $ | 
1.00  | 
 | 
 | 
1.00  | 
 | 
 | 
200,000  | 
 | 
 | 
$ | 
1.00  | 
 | 
 | 
4.74 | 
 | 
200,000  | 
 | 
 
| $ | 
4.89  | 
 | 
 | 
$ | 
4.89  | 
 | 
 | 
50,000  | 
 | 
 | 
$ | 
4.89  | 
 | 
 | 
1.70 | 
 | 
50,000  | 
 | 
 
| $ | 
5.85  | 
 | 
 | 
$ | 
5.85  | 
 | 
 | 
50,000  | 
 | 
 | 
$ | 
5.85  | 
 | 
 | 
4.09 | 
 | 
50,000  | 
 | 
 
| $ | 
6.00  | 
 | 
 | 
$ | 
6.00  | 
 | 
 | 
100,000  | 
 | 
 | 
$ | 
6.00  | 
 | 
 | 
1.60 | 
 | 
100,000  | 
 | 
 
| $ | 
6.99  | 
 | 
 | 
$ | 
6.99  | 
 | 
 | 
25,000  | 
 | 
 | 
$ | 
0.00  | 
 | 
 | 
0.00 | 
 | 
—  | 
 | 
 
|   | 
 | 
 | 
 | 
425,000  | 
 | 
 | 
  | 
 | 
  | 
 | 
400,000  | 
 | 
 
 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
| OUTSTANDING OPTIONS | 
 | 
EXERCISABLE OPTIONS | 
 
Exercise Price | 
 | 
Weighted Average Exercise Price | 
 | 
Outstanding Number of Options | 
 | 
Weighted Average Exercise Price | 
 | 
Weighted Average Remaining Life In Years | 
 | 
Exercisable Number of Options | 
 
$3.24 to $4.38  | 
 | 
$ | 
3.82  | 
 | 
 | 
36,331  | 
 | 
 | 
$ | 
4.00  | 
 | 
 | 
2.00 | 
 | 
36,331  | 
 | 
 
$4.50 to $5.20  | 
 | 
$ | 
4.94  | 
 | 
 | 
135,510  | 
 | 
 | 
$ | 
4.99  | 
 | 
 | 
1.52 | 
 | 
134,877  | 
 | 
 
$5.95 to $6.28  | 
 | 
$ | 
5.95  | 
 | 
 | 
28,000  | 
 | 
 | 
$ | 
5.95  | 
 | 
 | 
0.06 | 
 | 
28,000  | 
 | 
 
$7.17 to $7.55  | 
 | 
$ | 
7.45  | 
 | 
 | 
472,592  | 
 | 
 | 
$ | 
7.46  | 
 | 
 | 
1.07 | 
 | 
464,592  | 
 | 
 
$8.57 to $9.07  | 
 | 
$ | 
8.98  | 
 | 
 | 
122,749  | 
 | 
 | 
$ | 
8.96  | 
 | 
 | 
0.44 | 
 | 
122,749  | 
 | 
 
 | 
 | 
 | 
 | 
795,182  | 
 | 
 | 
 | 
 | 
 | 
 | 
786,549  | 
 | 
 
 
 | 
| Summary of Stock Option Activity | 
A summary of the Company’s stock option activity for employees and directors during the three months ended July 31, 2022, is presented below:
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
| Options | 
 | 
Number of Shares | 
 | 
Weighted Average Exercise Price | 
 | 
Weighted Average Remaining Contractual Term | 
 | 
Aggregate Intrinsic Value | 
 
Balance Outstanding, April 30, 2022  | 
 | 
860,182  | 
 | 
 | 
$ | 
7.03  | 
 | 
 | 
1.25 | 
 | 
$ | 
—  | 
 | 
 
| Granted | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 
| Exercised | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 
| Forfeited | 
 | 
(36,000) | 
 | 
 | 
8.98  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 
| Expired | 
 | 
(29,000) | 
 | 
 | 
4.19  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 
Balance Outstanding, July 31, 2022  | 
 | 
795,182  | 
 | 
 | 
$ | 
7.05  | 
 | 
 | 
1.07 | 
 | 
$ | 
—  | 
 | 
 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
Exercisable, July 31, 2022  | 
 | 
786,549  | 
 | 
 | 
$ | 
7.05  | 
 | 
 | 
1.06 | 
 | 
$ | 
—  | 
 | 
 
 
 | 
| Schedule of Share-Based Compensation | 
 A summary of the Company’s stock-based compensation expense, which is included in "general and administrative" expense in the consolidated statement of operations is presented below:  
  
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
 | 
 | 
Three Months Ended July 31, | 
 
 | 
 | 
2022 | 
 | 
2021 | 
 
| RSUs | 
 | 
$ | 
41,053  | 
 | 
 | 
$ | 
446,777  | 
 | 
 
| Restricted Stock | 
 | 
—  | 
 | 
 | 
10,527  | 
 | 
 
| Stock options | 
 | 
5,277  | 
 | 
 | 
85,408  | 
 | 
 
| Total stock-based compensation expense | 
 | 
$ | 
46,330  | 
 | 
 | 
$ | 
542,712  | 
 | 
 
  
 |