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

	
	
	<table class="page">
		<tr>
		<td class="page">
			<?php foreach($orders as &$order): ?>
						
				<?php foreach($order->boxes as &$box): ?>
				
				
					<?php if($count < 5): ?>
					<?php $count++;?>
					<table class="label">
						<tr class="label">
							<td class="label">
								|&nbsp;
								<?php echo e($order->fname); ?>&nbsp;<?php echo e($order->lname); ?> <br>|&nbsp;
								<?php if($order->address != ''): ?>
								<?php echo e($order->address); ?>

								<?php endif; ?>
								&nbsp; <br>|&nbsp;
								<?php if($order->city != ''): ?>
								<?php echo e($order->city); ?>,&nbsp;
								<?php endif; ?>
								<?php echo e($order->state); ?>&nbsp;<?php echo e($order->zip); ?> <br>
								<br>|&nbsp;
								Type:&nbsp; <?php echo e($box->type); ?> <br>|&nbsp;
								U/A:&nbsp; <?php echo e($box->ua); ?> <br>|&nbsp;
								GI-M:&nbsp; <?php echo e($box->gl); ?> 	
							</td>
						</tr>
					</table>
					<?php $box->mark = true; ?>
					<?php endif; ?>
				<?php endforeach; ?>
				
			<?php endforeach; ?>
			<?php if($count < 5): ?>
				<?php for($i = $count; $i <=5; $i++): ?>
					<table class="label">
						<tr class="label">
							<td class="label">
								&nbsp;
							</td>
						</tr>
					</table>
				<?php endfor; ?>
			<?php endif; ?>
		</td>
		
		<td class="page">
			<?php if($count < 5): ?>
				<?php for($i = 1; $i <=5; $i++): ?>
					<table class="label">
						<tr class="label">
							<td class="label">
								&nbsp;
							</td>
						</tr>
					</table>
				<?php endfor; ?>
			<?php else: ?>
			
				<?php foreach($orders as &$order): ?>
							
					<?php foreach($order->boxes as &$box): ?>
					
					
						<?php if(!$box->mark): ?>
						<?php $count++;?>
						<table class="label">
							<tr class="label">
								<td class="label">
									|&nbsp;
									<?php echo e($order->fname); ?>&nbsp;<?php echo e($order->lname); ?> <br>|&nbsp;
									<?php if($order->address != ''): ?>
									<?php echo e($order->address); ?>

									<?php endif; ?>
									&nbsp; <br>|&nbsp;
									<?php if($order->city != ''): ?>
									<?php echo e($order->city); ?>,&nbsp;
									<?php endif; ?>
									<?php echo e($order->state); ?>&nbsp;<?php echo e($order->zip); ?> <br>
									<br>|&nbsp;
									Type:&nbsp; <?php echo e($box->type); ?> <br>|&nbsp;
									U/A:&nbsp; <?php echo e($box->ua); ?> <br>|&nbsp;
									GI-M:&nbsp; <?php echo e($box->gl); ?> 	
								</td>
							</tr>
						</table>
						
						<?php endif; ?>
					<?php $box->mark = true; ?>
					<?php endforeach; ?>
					
				<?php endforeach; ?>
				
				<?php if($count < 10): ?>
					<?php for($j = $count; $j <=10; $j++): ?>
						<table class="label">
							<tr class="label">
								<td class="label">
									&nbsp;
								</td>
							</tr>
						</table>
					<?php endfor; ?>
				<?php endif; ?>
			
			<?php endif; ?>
		</td>
		</tr>
	</table>
	
<?php $__env->stopSection(); ?>

<?php $__env->startSection('extras'); ?>
	
	<style type="text/css">
		td.page {
		width: 50%;
		vertical-align: top;
		}
		td.label
		{
		width: 100%;
		padding-left: 10mm;
		padding-top: 10mm;
		font-size: 16px;
		overflow: hidden;
		display: inline-block;
		white-space: nowrap;
		vertical-align: top;
		}
		
		tr.label
		{
		height: 20%;
		}
		
		table.page
		{
		page-break-before: always;
		height: 270mm;
		width: 215mm;
		padding-top: 5mm;
		}
		table.label
		{
		height: 52mm;
		width: 102mm;
		}
		p
		{
		margin-top: 0mm;
		margin-bottom: 0mm;
		}
		
		body
		{
		margin: 0mm;
		}
	</style>
	
	<style type="text/css" media="print">
		@page
		{
		size: letter;
		margin: 0mm;
		}
	</style>
	
<?php $__env->stopSection(); ?>

<?php $__env->startSection('bottom'); ?>
	<script>
		window.print();
	</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('pdfs.pdf_template', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>