9. Long Term Debt, Related Parties (Details - Future maturities)  | 
 Jun. 30, 2018  
USD ($) 
 | 
|---|---|
| Debt Disclosure [Abstract] | |
| Future maturity 2019 | $ 391,949 | 
| Future maturity 2020 | 391,948 | 
| Future maturity 2021 | 391,948 | 
| Future maturity 2022 | 4,641,869 | 
| Future maturity 2023 | 0 | 
| Future maturity thereafter | 0 | 
| Total | $ 5,817,714 | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- References No definition available. 
  | 
| X | ||||||||||
- Definition Including the current and noncurrent portions, carrying value as of the balance sheet date of a written promise to pay a note, initially due after one year or beyond the operating cycle if longer, which can be exchanged for a specified amount of one or more securities (typically common stock), at the option of the issuer or the holder. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  | 
| X | ||||||||||
- References No definition available. 
  |