<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">
				@if(!empty($receipt_details->header_text))
					{!! $receipt_details->header_text !!}
				@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]));
				@endphp

				@if(!empty($sub_headings))
					<span>{!! $sub_headings !!}</span>
				@endif

				
			</td>
		</center></tr>

		</table>


<div style="width:100%;height:150px; margin:0 0px; float:left;border-top: 1px solid black;border-left: 1px solid black;border-right: 1px solid black;">
<div style="border:0px solid black; width:30%;height:170px; margin:0 1px; float:left;">	
	<!-- Logo -->
	@if(!empty($receipt_details->tax_info1))
					{{ $receipt_details->tax_label1 }} {{ $receipt_details->tax_info1 }}
				@endif
	<br>
			@if(!empty($receipt_details->logo))
		<img style="max-height: 120px; width: auto;" src="{{$receipt_details->logo}}" class="img img-responsive center-block">
	@endif
		</div>



	<div style="border:0px solid black; width:39%;height:100px;height:170px; margin:0 1px; float:left;">
	@if(!empty($receipt_details->invoice_heading))
						<span style="font-size: 15px;font-weight: bold;">{!! $receipt_details->invoice_heading !!}</span>
				@endif	<br>
	@if(!empty($receipt_details->display_name))
			 
				<font color="red"><span style="font-size: 22px;font-weight:bold;">{{$receipt_details->display_name}}</span></font>
			
			<br>
				@if(!empty($receipt_details->address))
					{!! $receipt_details->address !!}
				@endif

				

				@if(!empty($receipt_details->website))
					<br/>{{ $receipt_details->website }}
				@endif
				<br>
				@if(!empty($receipt_details->contact))
					
					{!! $receipt_details->contact !!}@endif
					<br>
							
				

				@if(!empty($receipt_details->location_custom_fields))
					<br/>{{ $receipt_details->location_custom_fields }}
				@endif
			</p>
		@endif
		</div>
		

<div style="border:0px solid black; width:30%;height:150px; margin:0px; float:right;">	
	<!-- Logo -->
			
					<br>
					<img src="http://localhost/neopos/neowep/public/uploads/img/img/rr.png" style="width: 150px; height: 120px;" class="img img-responsive center-block" alt="alt text">
		</div>


</div>
<table style="width:100%;border:1px solid black;margin-top: 150px;">
	
<center>
	
		<tr style="width:100%;border:1px solid black;">
			
			<td class="" style="line-height: 15px !important;border:1px solid black; padding-bottom: 10px !important">
				
&nbsp;&nbsp;<center>State:Tamilnadu</center>
			</td>
			<td class="" style="line-height: 15px !important;border:1px solid black; padding-bottom: 10px !important">
			

				@if(!empty($receipt_details->invoice_no_prefix))
				<span class="pull-left"><center>&nbsp;&nbsp;{!! $receipt_details->invoice_no_prefix !!}</center></span>
			@endif

			{{$receipt_details->invoice_no}}
			</td>
		</tr>
		<tr>
			
			<td class="" style="line-height: 15px !important;border:1px solid black; padding-bottom: 10px !important">
				

				&nbsp;&nbsp;<center>Code:33</center>
			</td>
			<td class="" style="line-height: 15px !important;border:1px solid black; padding-bottom: 10px !important">
				
&nbsp;&nbsp;@if(!empty($receipt_details->date_label))
			
					{{$receipt_details->date_label}}:
				

				{{$receipt_details->invoice_date}}
			
		@endif
				
			</td>
		</tr>
</center>
		</table>
<div style="width:50%;height:150px; margin:0 -1px; float:left;border-left: 1px solid black;">
	<!-- Logo -->
		@if(!empty($receipt_details->customer_label))
				<b>&nbsp;{{ $receipt_details->customer_label }}</b><br/>
			@endif

			<!-- customer info -->
			@if(!empty($receipt_details->customer_info))
				&nbsp;{!! $receipt_details->customer_info !!}
			@endif
			@if(!empty($receipt_details->client_id_label))
				<br/>
				<strong>&nbsp;{{ $receipt_details->client_id_label }}</strong> {{ $receipt_details->client_id }}
			@endif
		
			
				<strong>{{$receipt_details->customer_tax_label}}</strong> {{$receipt_details->customer_tax_number}}
			
			@if(!empty($receipt_details->customer_custom_fields))
				<br/>&nbsp;{!! $receipt_details->customer_custom_fields !!}
			@endif
			@if(!empty($receipt_details->sales_person_label))
				<br/>
				<strong>&nbsp;{{ $receipt_details->sales_person_label }}</strong> {{ $receipt_details->sales_person }}
			@endif
			@if(!empty($receipt_details->commission_agent_label))
				<br/>
				<strong>&nbsp;{{ $receipt_details->commission_agent_label }}</strong> {{ $receipt_details->commission_agent }}
			@endif

			@if(!empty($receipt_details->customer_rp_label))
				<br/>
				<strong>{{ $receipt_details->customer_rp_label }}</strong> {{ $receipt_details->customer_total_rp }}
			@endif
			<br>

			@foreach($receipt_details->lines as $line)@if(!empty($line['brand'])), 
			Brand:{{$line['brand']}} @endif
			@endforeach
		</div>





		
	
	
<div style="border:0px solid black; width:50%;height:150px; margin:0 0px; float:right;">		<!-- Logo -->
	<div style="border-bottom:1px solid black;border-left:1px solid black;border-right: 1px solid black;width:100%;height:50px; margin:0 0px; float:right;">		<!-- Logo -->
	
		@if(!empty($receipt_details->shipping_custom_field_2_label))
				
					{!!$receipt_details->shipping_custom_field_2_label!!}<br>
				
<br>
			{!!$receipt_details->shipping_custom_field_2_value ?? ''!!}</td></tr>
			
		@endif
		</div>
		<br>
		<div style="border-bottom:1px solid black;border-left:1px solid black;border-right: 1px solid black;  width:100%;height:50px; margin:0 0px; float:right;">		<!-- Logo -->
	
		
				@if(!empty($receipt_details->shipping_custom_field_1_label))
				<tr style="border:1px solid black;"><td style="border:1px solid black;">{!!$receipt_details->shipping_custom_field_1_label!!}
			
<br>
			<br> {!!$receipt_details->shipping_custom_field_1_value ?? ''!!}</td>
		

@endif
		</div>
		<div style="border-left:1px solid black;border-right: 1px solid black; width:100%;height:50px; margin:0 0px; float:right;">		<!-- Logo -->
	
		
		</div>
		</div>





		
	
<!-----costmedetials------------->




<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;border: 1px solid black; font-size: 15px !important" class="table-no-side-cell-border table-no-top-cell-border text-center">
					<td style="background-color: #357ca5 !important; color: black !important;border: 1px solid black;width: 5% !important">S.No</td>
					
					@php
						$p_width = 37;
					@endphp
					@if($receipt_details->show_cat_code != 1)
						@php
							$p_width = 35;
						@endphp
					@endif
					
					<td style="background-color:  !important; color: black !important;border: 1px solid black; width: {{$p_width}}% !important">
						{{$receipt_details->table_product_label}}
					</td>
<td style="background-color: #357ca5 !important; color: black !important;border: 1px solid black; width: 10% !important;">{{$receipt_details->cat_code_label}}</td>
					
						
					
					
					<td style="background-color: #357ca5 !important; color: black !important;border: 1px solid black;width: 10% !important;">
						{{$receipt_details->table_qty_label}}
					</td>
					@if(!empty($receipt_details->item_discount_label))
					<td style="background-color: #357ca5 !important; color: white !important;">
						{!! $receipt_details->item_discount_label !!}
					</td>
					@endif
					<td style="background-color: #357ca5 !important; color: black !important;border: 1px solid black;width: 10% !important;">
						{{$receipt_details->table_unit_price_label}}
					</td>
					<td style="background-color: #357ca5 !important; color: black !important;border: 1px solid black;width: 10% !important;">
						{{$receipt_details->line_tax_label}}
					</td>
					
					
					<td style="background-color: #357ca5 !important; color: black !important;border: 1px solid black;width: 16% !important;">
						{{$receipt_details->table_subtotal_label}}
					</td>
				</tr>
			</thead>
			<tbody>
				@foreach($receipt_details->lines as $line)
					<tr>
						<td class="text-center">
							{{$loop->iteration}}
						</td>

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

                            @if(!empty($line['warranty_name'])) <br><small>{{$line['warranty_name']}} </small>@endif @if(!empty($line['warranty_exp_date'])) <small>- {{@format_date($line['warranty_exp_date'])}} </small>@endif
                            @if(!empty($line['warranty_description'])) <small> {{$line['warranty_description'] ?? ''}}</small>@endif
                        </td>

						@if($receipt_details->show_cat_code == 1)
	                        <td class="text-right">
	                        	@if(!empty($line['cat_code']))
	                        		{{$line['cat_code']}}
	                        	@endif
	                        </td>
	                    @endif
	                   
						<td class="text-right">
							{{$line['quantity']}} {{$line['units']}}
						</td>
						<td class="text-right">
							{{$line['unit_price_before_discount']}}
						</td>
													
						
						@if(!empty($receipt_details->item_discount_label))
									<td class="text-right">0.00</td>
								@endif
						<td class="text-right">
							{{$line['tax']}} {{$line['tax_name']}}
						</td>
						<td class="text-right">
							{{$line['line_total']}}
						</td>
					</tr>
					@if(!empty($line['modifiers']))
						
					@endif
				@endforeach

				@php
					$lines = count($receipt_details->lines);
				@endphp

				@for ($i = $lines; $i < 8; $i++)
    				<tr>
    					<td  style="color: solid black;">&nbsp;</td>
    					<td style="color: solid black;">&nbsp;</td>
    					<td style="color: solid black;">&nbsp;</td>
    					<td style="color: solid black;">&nbsp;</td>
    					<td>&nbsp;</td>
    					<td>&nbsp;</td>
    					<td>&nbsp;</td>
    					
    					
    					
    				</tr>
				@endfor

			</tbody>
		</table>
	</div>
</div>
<div style="width:100%;height:50px; margin:0 -1px; float:left;margin-top: -17px;">
<div style="border-left:1px solid black;border-top: 1px solid black; width:50%;height:300px; margin:0 1px; float:left;">	
	<!-- Logo -->
			@if(!empty($receipt_details->total_in_words))
								
								<b> &nbsp;&nbsp;&nbsp;Amount In Words:({{$receipt_details->total_in_words}})</b>
							@endif
		</div>

		<div style="border:0px; width:50%;height:100%; margin:0 -1px; float:right;">
		<!-- Shop & Location Name  -->
		<table style="border:1px solid black;width: 100%;">
	
			@if(!empty($receipt_details->total_quantity_label))
				<tr style="border:1px solid black;" class="color-555"><td  class="text-right"  colspan="6" style="border:1px solid black;">
{!! $receipt_details->subtotal_label !!}
			</td>
		
	@endif

			
		<td style="border:1px solid black;"  class="text-right">{{$receipt_details->subtotal_exc_tax}}</td></tr>
			
		@if(empty($receipt_details->hide_price))
	            <!-- tax -->
	            @if(!empty($receipt_details->taxes))
	            
	            		@foreach($receipt_details->taxes as $key => $val)
	            			<tr style="border:1px solid black;" class="color-555">
	            				<td class="text-right" colspan="6" style="border:1px solid black;">{{$key}}</td>
	            				<td class="text-right" colspan="6" style="border:1px solid black;">{{$val}}</td>
	            			</tr>
	            		@endforeach
	            	
	            @endif
            @endif
		
				
				


			
		
						@if(!empty($receipt_details->total_quantity_label))
				<tr style="border:1px solid black;" class="color-555"><td class="text-right" colspan="6" style="border:1px solid black;">Grand Total:
			

			</td>
		
	@endif

			
		<td  class="text-right"style="border:1px solid black;">{{$receipt_details->total}}</td></tr>

				
</table>
</div>


		
	</div>
<div style="width:100%;height:77px; margin:0 -1px; float:left;">
<div style="border-left:1px solid black;border-top:1px solid black;border-right: 1px solid black; width:50%;height:77px; margin:0 1px; float:left;">		<!-- Logo -->
	
		 &nbsp;&nbsp;&nbsp;Note:<br>
1.Goods Once Sold Cannot Be Taken Back Or Exchanged<br> 
 
		</div>



		<div style="border:0px double #56B5E5; width:50%;height:100%; margin:0 -1px; float:right;">
		<!-- Shop & Location Name  -->
		
<table style="border:1px solid black;width: 100%;">

		
	
</table>


</div>
	
</div>


		
	</div>



<div style="border:1px solid black; width:100%;height:10%; margin:30 px; float:right;">
<div style="width:40%;height:20%; margin:0 -1px; float:left;border-right:1px solid black;">	
	<!-- Logo -->
	
		 &nbsp;&nbsp;&nbsp;Bank Details<br>
	 &nbsp;&nbsp;&nbsp;Bank Name:State Bank Of India<br>
	 &nbsp;&nbsp;&nbsp;ACC:40810489740<br>
	 &nbsp;&nbsp;&nbsp;Ifsc Code:SBIN0000832
		
		</div>



		<div style="width:50%;height:15%; margin:0 -1px; float:left;">
		<!-- Shop & Location Name  -->
		 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For VIGNESH AUTOMOBLIES

		 <br>
	<br>
	<br>
	
	
	
		 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Authorised Singature
</div>
</div>


<div class="row color-555">
	
		@if($receipt_details->show_barcode || $receipt_details->show_qr_code)
			<div class="@if(!empty($receipt_details->footer_text)) col-xs-4 @else col-xs-12 @endif text-center">
				{{-- Barcode --}}
				@if($receipt_details->show_barcode)
					<img class="center-block" src="data:image/png;base64,{{DNS1D::getBarcodePNG($receipt_details->invoice_no, 'C128', 2,30,array(39, 48, 54), true)}}">
				@endif
				
				@if($receipt_details->show_qr_code && !empty($receipt_details->qr_code_details))
					@php
						$qr_code_text = implode(',    ', $receipt_details->qr_code_details);
					@endphp
					<img class="center-block mt-5" src="data:image/png;base64,{{DNS2D::getBarcodePNG($qr_code_text, 'QRCODE', 3, 3, [39, 48, 54])}}">
				@endif
			</div>
		@endif
	</div>

			</td>
		</tr>
	</tbody>
</table>