startSection('content'); ?> PDF)) { /*if(is_amazon() == false){ $unsignPDFurl = URL::to('/invoice/display_invoice/'.$Invoice->InvoiceID); $PDFurl = URL::to('/invoice/download_invoice/'.$Invoice->InvoiceID); $cdownload_usage = URL::to('/invoice/'.$Invoice->AccountID.'-'.$Invoice->InvoiceID.'/cdownload_usage'); }else{ $PDFurl = AmazonS3::preSignedUrl($Invoice->PDF); $unsignPDFurl = AmazonS3::unSignedUrl($Invoice->PDF); if(!empty($Invoice->UsagePath)){ $cdownload_usage = AmazonS3::preSignedUrl($Invoice->UsagePath); } }*/ $unsignPDFurl = URL::to('/invoice/display_invoice/' . $Invoice->InvoiceID); $PDFurl = URL::to('/invoice/download_invoice/' . $Invoice->InvoiceID); $cdownload_usage = URL::to('/invoice/' . $Invoice->AccountID . '-' . $Invoice->InvoiceID . '/cdownload_usage'); } ?>
InvoiceStatus == Invoice::PAID): ?>
InvoiceStatus == Invoice::PAID) { echo $CurrencySymbol . number_format($payment_log['paid_amount'], get_round_decimal_places($Invoice->AccountID)); } elseif ($Invoice->InvoiceStatus != Invoice::PAID && $payment_log['paid_amount'] > 0) { echo $CurrencySymbol . number_format($payment_log['due_amount'], get_round_decimal_places($Invoice->AccountID)); } else { echo $CurrencySymbol . number_format($payment_log['total'], get_round_decimal_places($Invoice->AccountID)); } ?>
AccountID)); ?>

 
InvoiceStatus != Invoice::PAID && (getInvoicePayments($Invoice->CompanyID)) && $payment_log['final_payment'] > 0): ?>
 
 
 
 
 
ManagementReport)) && InvoiceDetail::where(["InvoiceID" => $Invoice->InvoiceID,'ProductType'=>Product::USAGE])->count() && InvoiceDetail::where(["InvoiceID" => $Invoice->InvoiceID,'ProductType'=>Product::USAGE])->sum('LineTotal') != 0): ?>
 
UsagePath)): ?>
 
InvoiceStatus != Invoice::PAID) && (is_paypal($Invoice->CompanyID) ) ): ?> InvoiceStatus != Invoice::PAID) && (is_sagepay($Invoice->CompanyID) ) ): ?>

stopSection(); ?> make('layout.blank', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>