<table align="center" style="border-spacing: <?php echo e($barcode_details->col_distance * 1, false); ?>in <?php echo e($barcode_details->row_distance * 1, false); ?>in; overflow: hidden !important;">
<?php $__currentLoopData = $page_products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page_product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

	<?php if($loop->index % $barcode_details->stickers_in_one_row == 0): ?>
		<!-- create a new row -->
		<tr>
		<!-- <columns column-count="<?php echo e($barcode_details->stickers_in_one_row, false); ?>" column-gap="<?php echo e($barcode_details->col_distance*1, false); ?>"> -->
	<?php endif; ?>
		<td align="left" valign="center">
		    
			<div style="overflow: hidden !important;display: flex; flex-wrap: wrap;align-content: left;min-width: 35mm !important; height: <?php echo e($barcode_details->height * 1, false); ?>in;justify-content: left; ">
				<b style="font-weight:bold;writing-mode: vertical-lr;font-size:10px;font-weight:900;text-align:center;">
				    
				    <?php $page_product->last_purchased_price=str_replace(",","",$page_product->last_purchased_price);
				    
				    
				//  $page_product->last_purchased_price=935;

    $array  = array_map('intval', str_split((int)$page_product->last_purchased_price));
    
    $s=1;
    
    /*$cs=count($array);
    $cs=$cs-1;*/
    $cs=1;
    foreach($array as $a){
        echo $a;
        
        if($s==$cs){ echo "".rand(10,100).""; }
        
        $s++;
    }
    /*if(count($array)>0){
        $temp='';$digits=2;
        for ($i = 0; $i < $digits; $i++) {
            $temp .= rand(0, 9);
        }
        echo "<u>".$temp."</u>";
    }*/
    
   
				    
			//	print_r($page_product);    
				    ?>
				    <!--<?php echo e((int)$page_product->last_purchased_price, false); ?>--></b>
				    
				    
				    <?php $rd='0';
				    if($barcode_details->stickers_in_one_row==2){
				        $rd=45;
				    }else{
				        $rd=30;
				    }
				    ?>

				<div style="width:<?=$rd?>mm;">

					
					<?php if(!empty($print['business_name'])): ?>
						<b style="padding-top:7px  !important;display: block !important;font-weight:700; font-size: <?php echo e($print['business_name_size'], false); ?>px"><?php echo e(strtoupper($business_name), false); ?></b>
						<span style="font-size:9px;font-weight:700;">Mob.No : 7550073406</span>
					<?php endif; ?>

					
					<?php if(!empty($print['name'])): ?>
						<span style="display: block !important; font-size: <?php echo e($print['name_size'], false); ?>px;text-align:left;font-weight:900;">
						
						<?php 
						$li=16;
						
						if($barcode_details->stickers_in_one_row==2){
						    $li=22;
						}
						
						if(strlen($page_product->product_actual_name)<$li){
						    echo $page_product->product_actual_name;
						}else{
						    echo substr($page_product->product_actual_name, 0, $li);
						}
						
						?>
						
						
						
					<?php if(!empty($page_product['product_custom_field3'])): ?>		&nbsp;&nbsp;&nbsp;&nbsp;<b style="font-weight:bold;;font-size:8px;font-weight:900;">D: <?php echo e($page_product['product_custom_field3'], false); ?></b> <?php endif; ?>

							<?php if(!empty($print['lot_number']) && !empty($page_product->lot_number)): ?>
								<span style="font-size: <?php echo e(12*$factor, false); ?>px">
									 (<?php echo e($page_product->lot_number, false); ?>)
								</span>
							<?php endif; ?>
						</span>
					<?php endif; ?>

					

					
					<?php if(!empty($print['price'])): ?>
					
					
				<!--	<span style="font-size: <?php echo e($print['price_size'], false); ?>px;">
						<b>
						<?php if($print['price_type'] == 'inclusive'): ?>
							<?php echo e(session('currency')['symbol'] ?? '', false); ?>

							
							
						<?php 	$price=str_replace(",","",$page_product->sell_price_inc_tax); 
						$prices=0;
						if(isset($page_product->product_custom_field1) && $page_product->product_custom_field1!=0){
           $prices =($price*$page_product->product_custom_field1)/100;
        }    	
						?>
						<?php echo e(number_format($price-$prices, session('business.currency_precision', 2), session('currency')['decimal_separator'], session('currency')['thousand_separator']), false); ?>

						<?php else: ?>
							<?php echo e(session('currency')['symbol'] ?? '', false); ?>

							
						<?php	$price=str_replace(",","",$page_product->default_sell_price);
						$prices=0;
        if(isset($page_product->product_custom_field1) && $page_product->product_custom_field1!=0){
           $prices =($price*$page_product->product_custom_field1)/100;
        }
        
        
        
						?>
						<?php echo e(number_format($price-$prices, session('business.currency_precision', 2), session('currency')['decimal_separator'], session('currency')['thousand_separator']), false); ?>

						<?php endif; ?></b>
					</span>-->
					<?php endif; ?>
					<?php if(!empty($print['exp_date']) && !empty($page_product->exp_date)): ?>
						<br>
						<span style="font-size: <?php echo e($print['exp_date_size'], false); ?>px;font-weight:900;">
							<b><?php echo app('translator')->getFromJson('product.exp_date'); ?>:</b>
							<?php echo e($page_product->exp_date, false); ?>

						</span>
						<?php if($barcode_details->is_continuous): ?>
						<br>
						<?php endif; ?>
					<?php endif; ?>

					<?php if(!empty($print['packing_date']) && !empty($page_product->packing_date)): ?>
						<span style="font-size: <?php echo e($print['packing_date_size'], false); ?>px">
							<b><?php echo app('translator')->getFromJson('lang_v1.packing_date'); ?>:</b>
							<?php echo e($page_product->packing_date, false); ?>

						</span>
					<?php endif; ?>

					
					<img style="font-weight:900;max-width:90% !important;height: <?php echo e($barcode_details->height*0.24, false); ?>in !important; display: block;" src="data:image/png;base64,<?php echo e(DNS1D::getBarcodePNG($page_product->sub_sku, $page_product->barcode_type, 3,30, array(0, 0, 0), false), false); ?>">
					<span style="font-size: 8px !important;font-weight:900;">
						<?php echo e($page_product->sub_sku, false); ?>

					</span>
			<br><span style="font-size: 12px;font-weight:900;"><!--<?php echo e($print['price_size'], false); ?>-->
						<!--<?php echo app('translator')->getFromJson('lang_v1.price'); ?>:-->
						<b>	
						<?php 
						if($page_product->weight=='fixed'){
            $prices=$page_product->product_custom_field1;
        }
						?>



						
						<?php if($print['price_type'] == 'inclusive'): ?>
						    <!--<?php echo e(session('currency')['symbol'] ?? '', false); ?>-->
						    <?php if($page_product->sell_price_inc_tax!=($price-$prices)): ?>
						    <del style="font-size:10px;">MRP.<?php echo e(@number_format($page_product->sell_price_inc_tax,0), false); ?></del>
						    <?php endif; ?>
						    
						   <span style="font-size:10px;"> 
						   
						   
						<?php if($page_product->sell_price_inc_tax!=($price-$prices)): ?>   Price. <?php else: ?> MRP. <?php endif; ?>
						   
						   
						   <?php echo e(number_format(round($price-$prices), session('business.currency_precision', 2), session('currency')['decimal_separator'], session('currency')['thousand_separator']), false); ?></span>
						<?php else: ?>
							<!--<?php echo e(session('currency')['symbol'] ?? '', false); ?>-->MRP.<?php echo e(number_format($page_product->default_sell_price, session('business.currency_precision', 2), session('currency')['decimal_separator'], session('currency')['thousand_separator']), false); ?>

						<?php endif; ?></b>
					</span>
					
				</div>
				<b style="font-weight:bold;writing-mode: vertical-rl;font-size:12px;">
				    
					<?php if(!empty($print['variations']) && $page_product->is_dummy != 1): ?>
						<span style="display: block !important; font-size: <?php echo e($print['variations_size'], false); ?>px">
							<!--<?php echo e($page_product->product_variation_name, false); ?>:<b><?php echo e($page_product->variation_name, false); ?></b>-->
						</span>
					<?php endif; ?>
				    </b>
				    <?php if(!empty($page_product['product_custom_field2'])): ?>
	                    <b style="font-weight:bold;font-size:8px;font-weight:900;writing-mode: vertical-lr;text-align:center;">Size : <?php echo e($page_product['product_custom_field2'], false); ?></b>
                    <?php endif; ?>
			</div>
<div>
    
</div>
	    
		
		
		</td>
	<?php if($loop->iteration % $barcode_details->stickers_in_one_row == 0): ?>
		</tr>
	<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</table>

<style type="text/css">
body{
    margin:0px !important;
    font-family: sans-serif !important;
}
	td{
	/*	border: 1px dotted lightgray;*/
	}
	@media  print{
		
		table{
			page-break-after: always;
		}

		
		@page  {
		/*size: <?php echo e($paper_width, false); ?>in <?php echo e($paper_height, false); ?>in;*/
	size: <?php echo e($paper_width, false); ?>in 25mm;
		margin-top: <?php echo e($margin_top, false); ?>in !important;
		margin-bottom: <?php echo e($margin_top, false); ?>in !important;
		margin-left: <?php echo e($margin_left, false); ?>in !important;
		margin-right: <?php echo e($margin_left, false); ?>in !important;
	}
	}
</style><?php /**PATH /home/firstma1/public_html/s-mart/resources/views/labels/partials/preview_2.blade.php ENDPATH**/ ?>