| INCOME TAXES (Details Narrative) - USD ($) | Jul. 31, 2022 | Aug. 31, 2021 | Jul. 31, 2021 | 
|---|---|---|---|
| Operating Loss Carryforwards [Line Items] | |||
| Net operating loss carryforwards | $ 53,885,000 | $ 40,838,000 | |
| State net operating loss carryforwards | 50,122,000 | ||
| Accrued interest | 0 | $ 0 | |
| Federal [Member] | |||
| Operating Loss Carryforwards [Line Items] | |||
| Net operating loss carryforwards | $ 16,802,000 | $ 37,083,000 | 
| X | ||||||||||
| 
- Definition Amount before allocation of valuation allowances of deferred tax asset attributable to deductible domestic operating loss carryforwards. Excludes state and local operating loss carryforwards. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Amount of operating loss carryforward, before tax effects, available to reduce future taxable income under enacted tax laws. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
 | 
| X | ||||||||||
| 
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount accrued for interest on an underpayment of income taxes and penalties related to a tax position claimed or expected to be claimed in the tax return. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
 | 
| X | ||||||||||
| 
- Details 
 |