<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
	<?php
		$first = true;
		$numnewpage = 0;
		$idCus  = null;
		$row = 1;
		$rowpage = 20;
	?>
		<?php $__currentLoopData = $m; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $v): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
		<?php if($numnewpage%$rowpage == 0): ?>
		<?php if(!$first): ?>
<!-- 			<tr><td colspan="4">footer</td></tr> -->
			</table>
		<?php endif; ?>
		<table border="1" style="width:100%"> 
		<tr>
			<td>#</td>
			<td>xx</td>
			<td>ccc</td>
			<td>sdsd</td>
		</tr>
		<?php endif; ?>
		<?php if($idCus != $v->idCus): ?>
			<tr><td colspan="4"><?php echo e($v->idCus); ?></td></tr>
			<?php
				$numnewpage++;
			?>
		<?php endif; ?>
		<tr>
			<td><?php echo e($row++); ?></td>
			<td><?php echo e($v->idCus); ?></td>
			<td><?php echo e($v->LotNo); ?></td>
			<td><?php echo e($v->totalNet); ?></td>
		</tr>
		<?php
			$numnewpage++;
			$first = false;
		?>
		<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
		<tr><td colspan="4">footer</td></tr>
	</table>
</body>
</html><?php /**PATH C:\xampp7\htdocs\natureplus\resources\views/sale/test.blade.php ENDPATH**/ ?>