 
<?php $__env->startSection('content'); ?>
<?php 
	$pages = ceil(count($customers)/30); 
	$count = 0;
	$customerCount = count($customers);
?>


	<?php for($i=1;$i<=$pages;$i++): ?>
		<table class="page">
			<tr>
				<td class="page"> <!-- First Column -->
				<?php $start = $count;?>
				<?php foreach($customers as $key => $customer): ?>
					<?php if($count < $start + 10): ?>
						<table class="label">
							<tr class="label">
								<td class="label">
									<?php echo e($customer->first_name . ' ' . $customer->last_name); ?><br>
									<?php echo e($customer->baddress); ?><br>
									<?php echo e($customer->bcity . ', ' . $customer->bstate . ' ' . $customer->bzip); ?>

								</td>
							</tr>
						</table>
						<?php $count++; unset($customers[$key]); ?>	
					<?php endif; ?>
				<?php endforeach; ?>
				<?php if($count >= $customerCount): ?>
					<?php $remaining = ($start + 10) - $count; ?>
					<?php for($j=1;$j<=$remaining;$j++): ?>
						<table class="label">
							<tr class="label">
								<td class="label">
									&nbsp;<br>&nbsp;<br>&nbsp;
								</td>
							</tr>
						</table>
					<?php endfor; ?>
				<?php endif; ?>
				</td>
				<td class="page"> <!-- Second Column -->
				<?php $start = $count;?>
				<?php foreach($customers as $key => $customer): ?>
					<?php if($count < $start + 10): ?>
						<table class="label">
							<tr class="label">
								<td class="label">
									<?php echo e($customer->first_name . ' ' . $customer->last_name); ?><br>
									<?php echo e($customer->baddress); ?><br>
									<?php echo e($customer->bcity . ', ' . $customer->bstate . ' ' . $customer->bzip); ?>

								</td>
							</tr>
						</table>
						<?php $count++; unset($customers[$key]); ?>	
					<?php endif; ?>
				<?php endforeach; ?>
				<?php if($count >= $customerCount): ?>
					<?php $remaining = ($start + 10) - $count; ?>
					<?php for($j=1;$j<=$remaining;$j++): ?>
						<table class="label">
							<tr class="label">
								<td class="label">
									&nbsp;<br>&nbsp;<br>&nbsp;
								</td>
							</tr>
						</table>
					<?php endfor; ?>
				<?php endif; ?>
				</td>
				<td class="page"> <!-- Third Column -->
				<?php $start = $count;?>
				<?php foreach($customers as $key => $customer): ?>
					<?php if($count < $start + 10): ?>
						<table class="label">
							<tr class="label">
								<td class="label">
									<?php echo e($customer->first_name . ' ' . $customer->last_name); ?><br>
									<?php echo e($customer->baddress); ?><br>
									<?php echo e($customer->bcity . ', ' . $customer->bstate . ' ' . $customer->bzip); ?>

								</td>
							</tr>
						</table>
						<?php $count++; unset($customers[$key]); ?>	
					<?php endif; ?>
				<?php endforeach; ?>
				<?php if($count >= $customerCount): ?>
					<?php $remaining = ($start + 10) - $count; ?>
					<?php for($j=1;$j<=$remaining;$j++): ?>
						<table class="label">
							<tr class="label">
								<td class="label">
									&nbsp;<br>&nbsp;<br>&nbsp;
								</td>
							</tr>
						</table>
					<?php endfor; ?>
				<?php endif; ?>
				</td>
			</tr>
		</table>
	<?php endfor; ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('extras'); ?>
	<style type="text/css">
				td.page {
					width: 33%;
				}
        td.label
        {
            width: 100%;

            padding: 13mm 0 13mm 5mm;
            font-size: 12px;
            overflow: hidden;
            display: inline-block;
            white-space: nowrap;
            vertical-align: top;
        }

        tr.label
        {
          height: 10%;
        }

        table.page
        {
            page-break-before: always;
            height: 270mm;
            width: 215mm;
          		padding-top: 5mm;
        }
				table.label
				{
					height: 26mm;
					width: 69mm;
				}
        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'); ?>

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