XML 64 R49.htm IDEA: XBRL DOCUMENT v3.8.0.1
8. NOTES PAYABLE, REVOLVING CREDIT FACILITY AND CAPITAL LEASES (Details - Schedule of debt) - USD ($)
$ in Thousands
Dec. 31, 2017
Dec. 31, 2016
Discounts on term loan and notes $ (18,470) $ (16,783)
Promissory notes payable 592 980
Equipment notes payable 195 341
Obligations under capital leases 6,538 7,256
Total notes payable, line of credit and capital lease obligations 609,127 638,732
Less: current portion (34,090) (26,557)
Total notes payable, line of credit and capital lease obligations, long-term 575,037 612,175
First Lien Term Loan [Member]    
Term loans 620,272 478,938
Second Lien Term Loans [Member]    
Term loans $ 0 $ 168,000