XML 39 R28.htm IDEA: XBRL DOCUMENT v3.7.0.1
Loan Payable (Details) - USD ($)
3 Months Ended 9 Months Ended
Feb. 06, 2017
Apr. 30, 2017
Apr. 30, 2017
Jul. 31, 2016
Debt Instrument [Line Items]        
Borrowed from investors   $ 10,256,000 $ 10,256,000
Class B common stock [Member]        
Debt Instrument [Line Items]        
Warrant issued to purchase common stock 252,161   147,682  
Warrants exercise price $ 34.70      
Warrants expire date Dec. 31, 2018      
Proceeds from aggregate warrants $ 7,500,000      
Loan Agreement [Member]        
Debt Instrument [Line Items]        
Borrowed from investors $ 17,500,000      
Interest rate 5.00%      
Interest rate, Increase (Decrease) 10.00%      
Loan maturity date Dec. 29, 2017      
Payments of initial civil penalty $ 15,000,000      
Payments of first installment     $ 5,125,000  
Warrant issued to purchase common stock     147,682  
Percentage of warrant description The Lenders will receive additional warrants on a monthly basis with an aggregate exercise price equal to 10% (dropping to 7.5% in September 2017) of the then outstanding Loan Amount.      
Fair value of warrants     $ 4,040,000  
Risk-free rate     1.16%  
Dividend yield     0.00%  
Volatility     96.68%  
Expected term     1 year 11 months 1 day  
Paid in cash for loan     $ 80,000  
Amortization amount   2,001,000 2,001,000  
Interest expense, debt   194,000 194,000  
Loans payable   10,256,000 10,256,000  
Unamortized debt discounts   $ 2,119,000 $ 2,119,000