<table style="width:100%;" style="border: 1px solid black;">
	

	
		<tr><center>
			<br>
			<td class="text-center" style="line-height: 15px !important; padding-bottom: 10px !important">
				<?php if(!empty($receipt_details->header_text)): ?>
					<?php echo $receipt_details->header_text; ?>

				<?php endif; ?>

				<?php
					$sub_headings = implode('<br/>', array_filter([$receipt_details->sub_heading_line1, $receipt_details->sub_heading_line2, $receipt_details->sub_heading_line3, $receipt_details->sub_heading_line4, $receipt_details->sub_heading_line5]));
				?>

				<?php if(!empty($sub_headings)): ?>
					<span><?php echo $sub_headings; ?></span>
				<?php endif; ?>

				<?php if(!empty($receipt_details->invoice_heading)): ?>
					<p class="" style="font-weight: bold; font-size: 35px !important"><?php echo $receipt_details->invoice_heading; ?></p>
				<?php endif; ?>
			</td>
		</center></tr>

		</table>


<div style="border:2px double #56B5E5; width:100%;height:15%; margin:0 -1px; float:left;">




		<div style="width:100%;height:15%; margin:0 -1px; float:right;font-size: 20px;text-align: center;">
		<!-- Shop & Location Name  -->
		<?php if(!empty($receipt_details->display_name)): ?>
			<p>
				<?php echo e($receipt_details->display_name, false); ?>

				<?php if(!empty($receipt_details->address)): ?>
					<br/><?php echo $receipt_details->address; ?>

				<?php endif; ?>

				

				<?php if(!empty($receipt_details->website)): ?>
					<br/><?php echo e($receipt_details->website, false); ?>

				<?php endif; ?>

				

				<?php if(!empty($receipt_details->location_custom_fields)): ?>
					<br/><?php echo e($receipt_details->location_custom_fields, false); ?>

				<?php endif; ?>
			</p>
		<?php endif; ?>
</div>
<div style="width:100%;height:15%; margin:0 -1px; float:left;">
<table style="width: 1000px;">
	<tr><td colspan="6"><?php if(!empty($receipt_details->tax_info1)): ?>
					<?php echo e($receipt_details->tax_label1, false); ?> <?php echo e($receipt_details->tax_info1, false); ?>

				<?php endif; ?>

					
</td><td colspan="5"><?php if(!empty($receipt_details->contact)): ?>
					
					<?php echo $receipt_details->contact; ?><?php endif; ?>
				</td></tr>

			<tr><td colspan="6" >	<?php if(!empty($receipt_details->tax_info2)): ?>
					<?php echo e($receipt_details->tax_label2, false); ?> <?php echo e($receipt_details->tax_info2, false); ?>

				<?php endif; ?></td><td colspan="4">MAIL ID: lakshminetwork2012@gmail.com</td></tr>
</table >

</div>
<!-----costmedetials------------->
<div style="width:100%;height:161px; margin:0 -1px; float:left;">
<div style="border:2px double #56B5E5; width:50%;height:161px; margin:0 -1px; float:left;">		<!-- Logo -->
		<?php if(!empty($receipt_details->customer_label)): ?>
				<b><?php echo e($receipt_details->customer_label, false); ?></b><br/>
			<?php endif; ?>

			<!-- customer info -->
			<?php if(!empty($receipt_details->customer_info)): ?>
				<?php echo $receipt_details->customer_info; ?>

			<?php endif; ?>
			<?php if(!empty($receipt_details->client_id_label)): ?>
				<br/>
				<strong><?php echo e($receipt_details->client_id_label, false); ?></strong> <?php echo e($receipt_details->client_id, false); ?>

			<?php endif; ?>
			<?php if(!empty($receipt_details->customer_tax_label)): ?>
				<br/>
				<strong><?php echo e($receipt_details->customer_tax_label, false); ?></strong> <?php echo e($receipt_details->customer_tax_number, false); ?>

			<?php endif; ?>
			<?php if(!empty($receipt_details->customer_custom_fields)): ?>
				<br/><?php echo $receipt_details->customer_custom_fields; ?>

			<?php endif; ?>
			<?php if(!empty($receipt_details->sales_person_label)): ?>
				<br/>
				<strong><?php echo e($receipt_details->sales_person_label, false); ?></strong> <?php echo e($receipt_details->sales_person, false); ?>

			<?php endif; ?>
			<?php if(!empty($receipt_details->commission_agent_label)): ?>
				<br/>
				<strong><?php echo e($receipt_details->commission_agent_label, false); ?></strong> <?php echo e($receipt_details->commission_agent, false); ?>

			<?php endif; ?>

			<?php if(!empty($receipt_details->customer_rp_label)): ?>
				<br/>
				<strong><?php echo e($receipt_details->customer_rp_label, false); ?></strong> <?php echo e($receipt_details->customer_total_rp, false); ?>

			<?php endif; ?>
			<br>

			<?php $__currentLoopData = $receipt_details->lines; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $line): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(!empty($line['brand'])): ?>, 
			Brand:<?php echo e($line['brand'], false); ?> <?php endif; ?>
			<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
		</div>



		<div style="border:2px double #56B5E5; width:50%;height:100%; margin:0 -1px; float:right;">
		<!-- Shop & Location Name  -->
		<div class="col-xs-6">
		

	
			<?php if(!empty($receipt_details->invoice_no_prefix)): ?>
				<span class="pull-left"><?php echo $receipt_details->invoice_no_prefix; ?></span>
			<?php endif; ?>

			<?php echo e($receipt_details->invoice_no, false); ?>

		
	
</div>
	<div class="col-xs-6">
			
		<?php if(!empty($receipt_details->date_label)): ?>
			
				<span class="pull-left">
					<?php echo e($receipt_details->date_label, false); ?>

				</span>

				<?php echo e($receipt_details->invoice_date, false); ?>

			
		<?php endif; ?>
	
</div>
<br>
<br>
<br>
<br>
<div class="col-xs-6">
		

	
			<?php if(!empty($receipt_details->payments)): ?>
				<?php $__currentLoopData = $receipt_details->payments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $payment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
					<tr>
						<td>SALE TYPE:</td></tr>

						<tr><td><?php echo e($payment['method'], false); ?></td>

						<p><?php echo nl2br($receipt_details->additional_notes); ?></p>
						
					</tr>
				<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			<?php endif; ?>
		
	
</div>
	<div class="col-xs-6">
			
		<?php if(!empty($receipt_details->shipping_custom_field_1_label)): ?>
				<strong><?php echo $receipt_details->shipping_custom_field_1_label; ?> :</strong> <?php echo $receipt_details->shipping_custom_field_1_value ?? ''; ?>

			<?php endif; ?>
	
</div>
</div>


		
	</div>

		<!-- Table information-->
     

        
	

		
		
		



<?php if(!empty($receipt_details->shipping_custom_field_3_label) || !empty($receipt_details->shipping_custom_field_4_label)): ?>
	<div class="row">
		<div class="col-xs-6">
			<?php if(!empty($receipt_details->shipping_custom_field_3_label)): ?>
				<strong><?php echo $receipt_details->shipping_custom_field_3_label; ?> :</strong> <?php echo $receipt_details->shipping_custom_field_3_value ?? ''; ?>

			<?php endif; ?>
		</div>
		<div class="col-xs-6">
			<?php if(!empty($receipt_details->shipping_custom_field_4_label)): ?>
				<strong><?php echo $receipt_details->shipping_custom_field_4_label; ?>:</strong> <?php echo $receipt_details->shipping_custom_field_4_value ?? ''; ?>

			<?php endif; ?>
		</div>
	</div>
<?php endif; ?>
<?php if(!empty($receipt_details->shipping_custom_field_5_label)): ?>
	<div class="row">
		<div class="col-xs-6">
			<?php if(!empty($receipt_details->shipping_custom_field_5_label)): ?>
				<strong><?php echo $receipt_details->shipping_custom_field_5_label; ?> :</strong> <?php echo $receipt_details->shipping_custom_field_5_value ?? ''; ?>

			<?php endif; ?>
		</div>
	</div>
<?php endif; ?>


<div class="row color-555">
	<div class="col-xs-12">
		
		<table class="table table-bordered table-no-top-cell-border table-slim">
			<thead>
				<tr style="background-color: #357ca5 !important; color: white !important; font-size: 15px !important" class="table-no-side-cell-border table-no-top-cell-border text-center">
					<td style="background-color: #357ca5 !important; color: white !important;width: 5% !important">#</td>
					
					<?php
						$p_width = 37;
					?>
					<?php if($receipt_details->show_cat_code != 1): ?>
						<?php
							$p_width = 35;
						?>
					<?php endif; ?>
					<td style="background-color: #357ca5 !important; color: white !important; width: <?php echo e($p_width, false); ?>% !important">
						<?php echo e($receipt_details->table_product_label, false); ?>

					</td>

					<?php if($receipt_details->show_cat_code == 1): ?>
						<td style="background-color: #357ca5 !important; color: white !important; width: 10% !important;"><?php echo e($receipt_details->cat_code_label, false); ?></td>
					<?php endif; ?>
					<td style="background-color: #357ca5 !important; color: white !important;width: 10% !important;">
						IMEI
					</td>
					<td style="background-color: #357ca5 !important; color: white !important;width: 10% !important;">
						<?php echo e($receipt_details->table_qty_label, false); ?>

					</td>
					<td style="background-color: #357ca5 !important; color: white !important;width: 10% !important;">
						<?php echo e($receipt_details->table_unit_price_label, false); ?>

					</td>
					
					<!-- <td style="background-color: #357ca5 !important; color: white !important;width: 10% !important;">
						<?php echo e($receipt_details->line_tax_label, false); ?>

					</td> -->
					
					<td style="background-color: #357ca5 !important; color: white !important;width: 16% !important;">
						<?php echo e($receipt_details->table_subtotal_label, false); ?>

					</td>
				</tr>
			</thead>
			<tbody>
				<?php $__currentLoopData = $receipt_details->lines; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $line): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
					<tr>
						<td class="text-center">
							<?php echo e($loop->iteration, false); ?>

						</td>
						<td>
							<?php if(!empty($line['image'])): ?>
								<img src="<?php echo e($line['image'], false); ?>" alt="Image" width="50" style="float: left; margin-right: 8px;">
							<?php endif; ?>
                            <?php echo e($line['name'], false); ?> <?php echo e($line['product_variation'], false); ?> <?php echo e($line['variation'], false); ?> 
                             <?php if(!empty($line['sub_sku'])): ?>, <?php echo e($line['sub_sku'], false); ?> <?php endif; ?> <!--<?php if(!empty($line['brand'])): ?>, <?php echo e($line['brand'], false); ?> <?php endif; ?>
                            <?php if(!empty($line['product_custom_fields'])): ?>, <?php echo e($line['product_custom_fields'], false); ?> <?php endif; ?>
 -->                           
                            <?php if(!empty($line['lot_number'])): ?><br> <?php echo e($line['lot_number_label'], false); ?>:  <?php echo e($line['lot_number'], false); ?> <?php endif; ?> 
                            <?php if(!empty($line['product_expiry'])): ?>, <?php echo e($line['product_expiry_label'], false); ?>:  <?php echo e($line['product_expiry'], false); ?> <?php endif; ?> 

                            <?php if(!empty($line['warranty_name'])): ?> <br><small><?php echo e($line['warranty_name'], false); ?> </small><?php endif; ?> <?php if(!empty($line['warranty_exp_date'])): ?> <small>- <?php echo e(\Carbon::createFromTimestamp(strtotime($line['warranty_exp_date']))->format(session('business.date_format')), false); ?> </small><?php endif; ?>
                            <?php if(!empty($line['warranty_description'])): ?> <small> <?php echo e($line['warranty_description'] ?? '', false); ?></small><?php endif; ?>
                        </td>

						<?php if($receipt_details->show_cat_code == 1): ?>
	                        <td>
	                        	<?php if(!empty($line['cat_code'])): ?>
	                        		<?php echo e($line['cat_code'], false); ?>

	                        	<?php endif; ?>
	                        </td>
	                    <?php endif; ?>
	                    <td class="text-right">

 <?php if(!empty($line['sell_line_note'])): ?>
                            	
                             <small class="text-muted"><?php echo e($line['sell_line_note'], false); ?></small>
                             <?php endif; ?>
                             </td>
						<td class="text-right">
							<?php echo e($line['quantity'], false); ?> <?php echo e($line['units'], false); ?>

						</td>
						<td class="text-right">
							<?php echo e($line['unit_price_before_discount'], false); ?>

						</td>
													
						
						<!-- <td class="text-right">
							<?php echo e($line['tax'], false); ?> <?php echo e($line['tax_name'], false); ?>

						</td> -->
						
						<td class="text-right">
							<?php echo e($line['line_total'], false); ?>

						</td>
					</tr>
					<?php if(!empty($line['modifiers'])): ?>
						
					<?php endif; ?>
				<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

				<?php
					$lines = count($receipt_details->lines);
				?>

				<?php for($i = $lines; $i < 9; $i++): ?>
    				<tr>
    					<td>&nbsp;</td>
    					<td>&nbsp;</td>
    					<td>&nbsp;</td>
    					<td>&nbsp;</td>
    					<td>&nbsp;</td>
    					<td>&nbsp;</td>
    					<td>&nbsp;</td>
    					<td>&nbsp;</td>
    					
    				</tr>
				<?php endfor; ?>

			</tbody>
		</table>
	</div>
</div>

<div class="row invoice-info color-555" style="margin-top: -20px;">
	<div class="col-md-8 invoice-col width-50">
		<table class="table table-slim" style="border: 1px solid black;width: 370px;padding: 5px;">
			<tr style="border: 1px solid black;padding: 10px;"><td>
				<strong></strong>Service Center:<?php if(!empty($line['brand'])): ?>, <?php echo e($line['brand'], false); ?> <?php endif; ?></td></tr>
			<?php if(!empty($receipt_details->total_in_words)): ?>
				<tr style="border: 1px solid black;padding: 10px;">
<td colspan="2" class="text-left" style="border: 1px solid black;padding: 10px;">
						<small>Amount In Words:</small>
					</td>
				</tr>
					<tr>
					<td colspan="2" class="text-left">
						<small>(<?php echo e($receipt_details->total_in_words, false); ?>)</small>
					</td>
				</tr>
				<?php endif; ?>
				<?php if(!empty($receipt_details->payments)): ?>
				<?php $__currentLoopData = $receipt_details->payments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $payment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
					<tr>
						<td>Payment Mode:</td>
						<td><?php echo e($payment['method'], false); ?></td>
						
						
					</tr>
				<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			<?php endif; ?>
		</table>
									
	</div>

	<div class="col-md-3 invoice-col width-50" style="margin-top: -20px;">
		<table class=" width-100 table-slim" style="border: 1px solid black;">
			<tbody>
				<?php if(!empty($receipt_details->total_quantity_label)): ?>
					<tr class="color-555" style="border: 1px solid black;">
						<td style="width:50%" style="border: 1px solid black;">
							<?php echo $receipt_details->total_quantity_label; ?>

						</td>
						<td class="text-right" style="border: 1px solid black;">
							<?php echo e($receipt_details->total_quantity, false); ?>

						</td>
					</tr>
				<?php endif; ?>
				<tr class="color-555" style="border: 1px solid black;">
					<td style="width:50%" style="border: 1px solid black;">
						<?php echo $receipt_details->subtotal_label; ?>

					</td>
					<td class="text-right" style="border: 1px solid black;">
						<?php echo e($receipt_details->subtotal, false); ?>

					</td>
				</tr>
				
				<!-- Shipping Charges -->
				<?php if(!empty($receipt_details->shipping_charges)): ?>
					<tr class="color-555">
						<td style="width:50%">
							<?php echo $receipt_details->shipping_charges_label; ?>

						</td>
						<td class="text-right">
							<?php echo e($receipt_details->shipping_charges, false); ?>

						</td>
					</tr>
				<?php endif; ?>

				<?php if(!empty($receipt_details->packing_charge)): ?>
					<tr class="color-555">
						<td style="width:50%">
							<?php echo $receipt_details->packing_charge_label; ?>

						</td>
						<td class="text-right">
							<?php echo e($receipt_details->packing_charge, false); ?>

						</td>
					</tr>
				<?php endif; ?>

				<!-- Discount -->
				<?php if( !empty($receipt_details->discount) ): ?>
					<tr class="color-555">
						<td>
							<?php echo $receipt_details->discount_label; ?>

						</td>

						<td class="text-right">
							(-) <?php echo e($receipt_details->discount, false); ?>

						</td>
					</tr>
				<?php endif; ?>

				<?php if( !empty($receipt_details->total_line_discount) ): ?>
					<tr class="color-555">
						<td>
							<?php echo $receipt_details->line_discount_label; ?>

						</td>

						<td class="text-right">
							(-) <?php echo e($receipt_details->total_line_discount, false); ?>

						</td>
					</tr>
				<?php endif; ?>

				<?php if( !empty($receipt_details->reward_point_label) ): ?>
					<tr class="color-555">
						<td>
							<?php echo $receipt_details->reward_point_label; ?>

						</td>

						<td class="text-right">
							(-) <?php echo e($receipt_details->reward_point_amount, false); ?>

						</td>
					</tr>
				<?php endif; ?>

				<?php if(!empty($receipt_details->group_tax_details)): ?>
					<?php $__currentLoopData = $receipt_details->group_tax_details; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
						<tr class="color-555">
							<td>
								<?php echo $key; ?>

							</td>
							<td class="text-right">
								(+) <?php echo e($value, false); ?>

							</td>
						</tr>
					<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
				<?php else: ?>
					<!-- <?php if( !empty($receipt_details->tax) ): ?>
						<tr class="color-555">
							<td>
								<?php echo $receipt_details->tax_label; ?>

							</td>
							<td class="text-right">
								(+) <?php echo e($receipt_details->tax, false); ?>

							</td>
						</tr>
					<?php endif; ?> -->
				<?php endif; ?>

				<?php if( $receipt_details->round_off_amount > 0): ?>
					<tr class="color-555">
						<td>
							<?php echo $receipt_details->round_off_label; ?>

						</td>
						<td class="text-right">
							<?php echo e($receipt_details->round_off, false); ?>

						</td>
					</tr>
				<?php endif; ?>
				
				<!-- Total -->
				<tr>
					<th style="background-color: #357ca5 !important; color: white !important" class="font-23 padding-10">
						<?php echo $receipt_details->total_label; ?>

					</th>
					<td class="text-right font-23 padding-10" style="background-color: #357ca5 !important; color: white !important">
						<?php echo e($receipt_details->total, false); ?>

					</td>
				</tr>
				
			</tbody>
        </table>
        <div class="row color-555" style="margin-top: 10px;border: 0px solid black;">
	<div class="col-xs-12" >
		
		
	</div>
</div>
	</div>

</div>




<div class="row color-555">
		<?php if(!empty($receipt_details->footer_text)): ?>
		<div class="<?php if($receipt_details->show_barcode || $receipt_details->show_qr_code): ?> col-xs-8 <?php else: ?> col-xs-12 <?php endif; ?>">
			<?php echo $receipt_details->footer_text; ?>

		</div>
		<?php endif; ?>
		<?php if($receipt_details->show_barcode || $receipt_details->show_qr_code): ?>
			<div class="<?php if(!empty($receipt_details->footer_text)): ?> col-xs-4 <?php else: ?> col-xs-12 <?php endif; ?> text-center">
				
				<?php if($receipt_details->show_barcode): ?>
					<img class="center-block" src="data:image/png;base64,<?php echo e(DNS1D::getBarcodePNG($receipt_details->invoice_no, 'C128', 2,30,array(39, 48, 54), true), false); ?>">
				<?php endif; ?>
				
				<?php if($receipt_details->show_qr_code && !empty($receipt_details->qr_code_details)): ?>
					<?php
						$qr_code_text = implode(',    ', $receipt_details->qr_code_details);
					?>
					<img class="center-block mt-5" src="data:image/png;base64,<?php echo e(DNS2D::getBarcodePNG($qr_code_text, 'QRCODE', 3, 3, [39, 48, 54]), false); ?>">
				<?php endif; ?>
			</div>
		<?php endif; ?>
	</div>
<div style="border:2px double #56B5E5; width:100%;height:15%; margin:0 -1px; float:left;">
<div style="width:50%;height:15%; margin:0 -1px; float:left;">	
	<!-- Logo -->
	<br>
	<br>
	<br>
	<br>
	
	
		 RECEIVERS SIGNATURE
		</div>



		<div style="width:50%;height:15%; margin:0 -1px; float:right;">
		<!-- Shop & Location Name  -->
		 for MM CELL WORLD Private Limited

		 <br>
	<br>
	<br>
	<br>
	
	
		 AUTHORISED SIGNATORY
</div>
</div>
			</td>
		</tr>
	</tbody>
</table><?php /**PATH /home1/webapps1/ultimatepos/resources/views/sale_pos/receipts/detailed.blade.php ENDPATH**/ ?>