XML 63 R49.htm IDEA: XBRL DOCUMENT v3.8.0.1
Loan Payable (Details Textual) - USD ($)
3 Months Ended 12 Months Ended
Oct. 02, 2017
Sep. 01, 2017
Aug. 01, 2017
Jul. 03, 2017
Feb. 06, 2017
Apr. 30, 2017
Jul. 31, 2017
Jul. 31, 2016
Debt Instrument [Line Items]                
Loans payable             $ 11,274,000
Class B common stock [Member]                
Debt Instrument [Line Items]                
Warrant issued to purchase common stock       6,899 252,161 147,682    
Warrants exercise price       $ 179.62 $ 34.70      
Warrants expire date         Dec. 31, 2018      
Proceeds from aggregate warrants         $ 7,500,000      
Subsequent Event [Member] | Class B common stock [Member]                
Debt Instrument [Line Items]                
Warrant issued to purchase common stock 5,152 5,188 6,911          
Warrants exercise price $ 180.48 $ 179.18 $ 179.26          
Loan Agreement [Member]                
Debt Instrument [Line Items]                
Borrowed from investors         $ 17,500,000      
Interest rate         5.00%      
Interest rate, increased         10.00%      
Loan maturity date         Dec. 29, 2017      
Payments of initial civil penalty         $ 15,000,000      
Payments of first installments             $ 5,125,000  
Warrant issued to purchase common stock             147,682  
Percentage of warrant description             The Lenders are entitled to receive additional warrants on a monthly basis with an aggregate value equal to 7.5% (the rate was 10% for July 2017 and August 2017) of the then outstanding Loan Amount.  
Cash costs             $ 80,000  
Amortization amount             2,286,000  
Interest expense, debt             402,000  
Loans payable             11,274,000  
Unamortized debt discounts             $ 1,101,000