<?php echo $__env->make('invoicetemplates.itemhtml', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->startSection('content'); ?>
	<link rel="stylesheet" type="text/css" href="<?php echo URL::to('/'); ?>/assets/css/invoicetemplate/invoicestyle.css" />
<style type="text/css">
.invoice,
.invoice table,.invoice table td,.invoice table th,
.invoice ul li
{ font-size: 12px; }
.page_break{page-break-after: always;}
#pdf_header, #pdf_footer{
    /*position: fixed;*/
}
</style>
<div class="inovicebody" style="max-height: 100%;overflow-x: hidden;overflow-y: auto;">
    <header class="clearfix">
        <?php echo $__env->yieldContent('logo'); ?>
	</header>
	<main>
		<div id="details" class="clearfix">
			<div id="client">
				<div class="to"><b>Invoice To:</b></div>
                <div><?php echo nl2br(Invoice::getInvoiceTo($InvoiceTemplate->InvoiceTo)); ?></div>
			</div>
			<div id="invoice">
				<h1>Invoice No: <?php echo $InvoiceTemplate->InvoiceNumberPrefix.$InvoiceTemplate->InvoiceStartNumber; ?></h1>
				<div class="date">Invoice Date: <?php echo date('d-m-Y'); ?></div>
				<div class="date">Due Date: <?php echo date('d-m-Y',strtotime('+5 days')); ?></div>
				<?php if($InvoiceTemplate->ShowBillingPeriod == 1): ?>
					<div class="date">Invoice Period: <?php echo date('d-m-Y',strtotime('-7 days')); ?> - <?php echo date('d-m-Y'); ?></div>
				<?php endif; ?>
			</div>
		</div>		
		<!--<div id="Service">
			<h1>Item</h1>
		</div>-->
		<div class="clearfix"></div>
		<table border="0" cellspacing="0" cellpadding="0" id="frontinvoice">
			<thead>
			<tr>
				<th class="desc"><b>Title</b></th>
				<th class="desc"><b>Description</b></th>
				<th class="rightalign"><b>Quantity</b></th>
				<th class="rightalign"><b>Price</b></th>
				<th class="total"><b>Line Total</b></th>
			</tr>
			</thead>
			<tbody>
			<tr>
				<td class="desc">Item Testing 1</td>
				<td class="desc">Item Testing Description</td>
				<td class="rightalign">2</td>
				<td class="rightalign">25</td>
				<td class="total">50</td>
			</tr>
			<tr>
				<td class="desc">Item Testing 2</td>
				<td class="desc">Item Testing Description</td>
				<td class="rightalign">2</td>
				<td class="rightalign">25</td>
				<td class="total">50</td>
			</tr>
			</tbody>
			<tfoot>
			<tr>
				<td colspan="2"></td>
				<td colspan="2">Sub Total</td>
				<td class="subtotal">$5,200.00</td>
			</tr>
			<tr>
				<td colspan="2"></td>
				<td colspan="2">Tax 25%</td>
				<td class="subtotal">$1,300.00</td>
			</tr>
			<?php if($InvoiceTemplate->ShowPrevBal): ?>
                <tr>
                    <td colspan="2"></td>
                    <td colspan="2">Brought Forward</td>
                    <td class="subtotal">$0.00</td>
                </tr>
            <?php endif; ?>
			<tr>
				<td colspan="2"></td>
				<td colspan="2"><b>Grand Total</b></td>
				<td class="subtotal"><b>$6,500.00</b></td>
			</tr>
			</tfoot>
		</table>
	</main>
	<div id="thanksadevertise">
		<div class="invoice-left">
			<?php echo $__env->yieldContent('terms'); ?>
		</div>
	</div>
    <br/>
    <br/>
    <header class="clearfix">        
    </header>    
    <div class="row">
        <div class="col-sm-12 invoice-footer">
            <?php echo $__env->yieldContent('footerterms'); ?>
        </div>
    </div>

</div>
 <?php $__env->stopSection(); ?>
<?php echo $__env->make('layout.blank', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>