 
<?php $__env->startSection('content'); ?>

	<h2>
	<?php if($project->done == null): ?>
	Unofficial 
	<?php endif; ?>
	Accounting Report: <?php echo e($project->company_name); ?></h2>
	<hr>
	<table>


		<tr class="odd">
			<td class="title">Company Name</td>
			<td class="data"><?php echo e($project->company_name); ?></td>
		</tr>
		<tr class="even">
			<td class="title">Customer Type</td>
			<td class="data"><?php echo e($project->customer_type); ?></td>
		</tr>
		<tr class="odd">
			<td class="title">Ready To Bill Date</td>
			<td class="data highlight"><?php echo e($project->ready_to_bill != '' ? date('Y-m-d', strtotime($project->ready_to_bill)) : ''); ?></td>
		</tr>
		<tr class="even">
			<td class="title">Account #</td>
			<td class="data highlight"><?php echo e($project->account_num); ?></td>
		</tr>
		<tr class="odd">
			<td class="title">Circuit #</td>
			<td class="data <?php echo e($project->circuit_num ? 'highlight' : ''); ?>"><?php echo e($project->circuit_num); ?></td>
		</tr>
		<tr><td>&nbsp;<td></tr>
		<tr class="even">
			<td class="title">Service Address</td>
			<td class="data"><?php echo e($project->service_address); ?></td>
		</tr>
		<tr class="odd">
			<td class="title">Service City</td>
			<td class="data"><?php echo e($project->service_city); ?></td>
		</tr>
		<tr class="even">
			<td class="title">Service State</td>
			<td class="data"><?php echo e($project->service_state); ?></td>
		</tr>
		<tr class="odd">
			<td class="title">Service Zip</td>
			<td class="data"><?php echo e($project->service_zip); ?></td>
		</tr>
		<tr><td>&nbsp;<td></tr>

	</table>
	
	<h3>Products</h3>
	<hr>
	<table style="width: 700px;" >
		<tr>
				<td class="table-heading">Name</td>
         		<td class="table-heading">USP</td>
         		<td class="table-heading">GL</td>
         		<td class="table-heading">Quantity</td>
         		<td class="table-heading">Unit Price</td>
         		<td class="table-heading">MRC</td>
         		<td class="table-heading">NRC</td>
		</tr>
	<?php $count = 1; $nrc_total = 0; $mrc_total = 0;?>
	<?php foreach($products as $product): ?>
	<?php $count++; ?>
			
		 <?php if($count % 2 == 1): ?>
              <tr class="odd">
         <?php else: ?>
              <tr class="even">
         <?php endif; ?>
         		<td class="highlight"><?php echo e($product->name); ?></td>
         		<td class="highlight"><?php echo e($product->usp); ?></td>
         		<td class="highlight"><?php echo e($product->gl); ?></td>
         		<td><?php echo e($product->quantity); ?></td>
         		<td>$<?php echo e($product->unit_price); ?></td>
         		<td class="highlight">$<?php echo e($product->mrc); ?></td>
         		<td>$<?php echo e($product->nrc); ?></td>
		
		<?php 
		$mrc_total += $product->mrc;
		$nrc_total += $product->nrc; 
		?>
		
	<?php endforeach; ?>
	<?php $count++; ?>
	<?php if($count % 2 == 1): ?>
              <tr class="odd">
    <?php else: ?>
              <tr class="even">
    <?php endif; ?>
				<td class="table-heading">Totals</td>
         		<td class="table-heading"></td>
         		<td class="table-heading"></td>
         		<td class="table-heading"></td>
         		<td class="table-heading"></td>
         		<td class="table-heading">$<?php echo e($mrc_total); ?></td>
         		<td class="table-heading">$<?php echo e($nrc_total); ?></td>
			  </tr>
	</table>

	
	
<?php $__env->stopSection(); ?>

<?php $__env->startSection('extras'); ?>
	
	<style>
		tr {
			
		}
		td {
			
			
		}
		.even {
			background-color: #eee;
		}
		.odd {
		
		}
		.title {
			font-weight: 600;
			width: 239px;
		}
		.data {
			width: 455px;
		}
		.page-break {
    		page-break-after: always;
		}
		.table-heading {
			font-weight: 600;
			
		}
		.highlight{
			background-color: yellow;
			border: 1px solid orange;
		}
	</style>
	
<?php $__env->stopSection(); ?>



<?php echo $__env->make('pdfs.pdf_template', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>