<!-- business information here -->	
<div class="row" style="color: #000000 !important;">	
							<!-- Logo -->	
							<!-- Header text -->	
							@if(!empty($receipt_details->header_text))	
								<div class="col-xs-12">	
									{!! $receipt_details->header_text !!}	
								</div>	
							@endif	
	<!-- business information here -->	
<div class="col-xs-12 text-center">	
	    <div class="col-xs-2 align:left">
	   @if(!empty($receipt_details->logo))	
		<img style="float:left;max-height: 60px; width: auto; margin-top:8px" src="{{$receipt_details->logo}}">
	   @endif
		</div>	
				    <div class="col-xs-8">	
							<!-- Shop & Location Name  -->	
						<p align="center" style="margin-right:82px"><b>@if(!empty($receipt_details->display_name))	
								{{$receipt_details->display_name}}	
							@endif</b></br>	
						<!-- Address -->	
						@if(!empty($receipt_details->address))	
								<small class="text-center">	
								{!! $receipt_details->address !!}	
								</small>	
						@endif	
						@if(!empty($receipt_details->contact))	
							<br/>{!! $receipt_details->contact !!}	
						@endif		
						@if(!empty($receipt_details->contact) && !empty($receipt_details->website))	
							, 	
						@endif	
						@if(!empty($receipt_details->website))	
							{{ $receipt_details->website }}	
						@endif	
						@if(!empty($receipt_details->location_custom_fields))	
							<br>{{ $receipt_details->location_custom_fields }}	
						@endif	
						</p>	
						<p align="left">		
						@if(!empty($receipt_details->sub_heading_line1))	
							{{ $receipt_details->sub_heading_line1 }}	
						@endif	
						@if(!empty($receipt_details->sub_heading_line2))	
							<br>{{ $receipt_details->sub_heading_line2 }}	
						@endif	
						@if(!empty($receipt_details->sub_heading_line3))	
							<br>{{ $receipt_details->sub_heading_line3 }}	
						@endif	
						@if(!empty($receipt_details->sub_heading_line4))	
							<br>{{ $receipt_details->sub_heading_line4 }}	
						@endif			
						@if(!empty($receipt_details->sub_heading_line5))	
							<br>{{ $receipt_details->sub_heading_line5 }}	
						@endif	
						</p>	
							
						<p>	
						@if(!empty($receipt_details->tax_info1))	
							<b>{{ $receipt_details->tax_label1 }}</b> {{ $receipt_details->tax_info1 }}	
						@endif	
						@if(!empty($receipt_details->tax_info2))	
							<b>{{ $receipt_details->tax_label2 }}</b> {{ $receipt_details->tax_info2 }}	
						@endif	
						</p>	
					</div>
					
		<div class="col-xs-2">
			@if(!empty($receipt_details->repair_status_label))
				<img class="center-block mt-5" src="data:image/png;base64,{{DNS2D::getBarcodePNG($receipt_details->qr_code_text, 'QRCODE', 2.2, 2.2, [39, 48, 54])}}" >
			@endif
			@if(empty($receipt_details->repair_status_label))
			@if($receipt_details->show_qr_code && !empty($receipt_details->qr_code_text))	
				<img class="center-block mt-5" src="data:image/png;base64,{{DNS2D::getBarcodePNG($receipt_details->qr_code_text, 'QRCODE', 2.2, 2.2, [39, 48, 54])}}">	
			@endif
			@endif
        </div>
	</div>	

<!-- Invoice  number, Date  -->
		@if(!empty($receipt_details->invoice_heading))	
        <div class="col-xs-12">
						<!-- Title of receipt -->	
							<h4 class="text-left"><b>
								{!! $receipt_details->invoice_heading !!}</b>	
							</h4>
		</div>
		@endif
        @if(!empty($receipt_details->repair_status_label))
	    <div class="col-xs-4">
	    @endif
	    @if(empty($receipt_details->repair_status_label))
	    <div class="col-xs-5">
	    @endif
            <span class="pull-left text-left">
			   @if(!empty($receipt_details->repair_status_label))
			   <b>Tanggal Masuk: </b>
			   @endif
			   @if(empty($receipt_details->repair_status_label))
				<b>{{$receipt_details->date_label}}</b>
			   @endif
				{{$receipt_details->invoice_date}}
				@if(!empty($receipt_details->invoice_no_prefix))
					<br><b>{!! $receipt_details->invoice_no_prefix !!}</b>
				@endif
				@if(empty($receipt_details->invoice_no_prefix))
					<br><b>No. Penawaran:</b>
				@endif
				{{$receipt_details->invoice_no}}
			</span>
		</div>
        @if(!empty($receipt_details->repair_status_label))
	    <div class="col-xs-3">
	    @endif
	    @if(empty($receipt_details->repair_status_label))
	    <div class="col-xs-4">
	    @endif
            <span class="pull-center text-left">
				@if(!empty($receipt_details->types_of_service))
					<br/>
						<strong>{!! $receipt_details->types_of_service_label !!}:</strong>
						{{$receipt_details->types_of_service}}
						<!-- Waiter info -->
						@if(!empty($receipt_details->types_of_service_custom_fields))
							@foreach($receipt_details->types_of_service_custom_fields as $key => $value)
								<br><strong>{{$key}}: </strong> {{$value}}
							@endforeach
						@endif
					</span>
				@endif

				<!-- Table information-->
		        @if(!empty($receipt_details->table_label) || !empty($receipt_details->table))
		        	<br/>
					<span class="pull-center text-left">
						@if(!empty($receipt_details->table_label))
							<b>{!! $receipt_details->table_label !!}</b>
						@endif
						{{$receipt_details->table}}

						<!-- Waiter info -->
					</span>
		        @endif

				<!-- customer info -->
				@if(!empty($receipt_details->customer_info))
					<b>{{ $receipt_details->customer_label }}</b> {{ $receipt_details->customer_name }}<br>
					<b>No. Kontak:</b>
					{{ $receipt_details->customer_mobile }}
				@endif
				@if(!empty($receipt_details->client_id_label))
					<br/>
					<b>{{ $receipt_details->client_id_label }}</b> {{ $receipt_details->client_id }}
				@endif
				@if(!empty($receipt_details->customer_tax_label))
					<br/>
					<b>{{ $receipt_details->customer_tax_label }}</b> {{ $receipt_details->customer_tax_number }}
				@endif
				@if(!empty($receipt_details->customer_custom_fields))
					<br/>{!! $receipt_details->customer_custom_fields !!}
				@endif
				@if(!empty($receipt_details->commission_agent_label))
					<br/>
					<strong>{{ $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
			</div>
			
        @if(!empty($receipt_details->repair_status_label))
	    <div class="col-xs-3">
	    @endif
	    @if(empty($receipt_details->repair_status_label))
	    <div class="col-xs-0">
	    @endif
    	@if(!empty($receipt_details->serial_no_label) || !empty($receipt_details->repair_serial_no))
					
				@if(!empty($receipt_details->serial_no_label))
				<b>{!! $receipt_details->serial_no_label !!}</b>
					@endif
					{{$receipt_details->repair_serial_no}}<br>
		        @endif
		        @if(!empty($receipt_details->repair_status_label) || !empty($receipt_details->repair_status))
					@if(!empty($receipt_details->repair_status_label))
					<b>{!! $receipt_details->repair_status_label !!}</b>
					@endif
					{{$receipt_details->repair_status}}
		        @endif
    </div>
	    @if(!empty($receipt_details->repair_status_label))
	    <div class="col-xs-2">
	    @endif
	    @if(empty($receipt_details->repair_status_label))
	    <div class="col-xs-3">
	    @endif
            <span class="pull-right text-left">				
            @if(!empty($receipt_details->due_date_label))
				<br><b>{{$receipt_details->due_date_label}}</b> {{$receipt_details->due_date ?? ''}}
				@endif

				<!--@if(!empty($receipt_details->brand_label) || !empty($receipt_details->repair_brand))-->
				<!--	<br>-->
				<!--	@if(!empty($receipt_details->brand_label))-->
				<!--		<b>{!! $receipt_details->brand_label !!}</b>-->
				<!--	@endif-->
				<!--	{{$receipt_details->repair_brand}}-->
		  <!--      @endif-->


		  <!--      @if(!empty($receipt_details->device_label) || !empty($receipt_details->repair_device))-->
				<!--	<br>-->
				<!--	@if(!empty($receipt_details->device_label))-->
				<!--		<b>{!! $receipt_details->device_label !!}</b>-->
				<!--	@endif-->
				<!--	{{$receipt_details->repair_device}}-->
		  <!--      @endif-->

				<!--@if(!empty($receipt_details->model_no_label) || !empty($receipt_details->repair_model_no))-->
				<!--	<br>-->
				<!--	@if(!empty($receipt_details->model_no_label))-->
				<!--		<b>{!! $receipt_details->model_no_label !!}</b>-->
				<!--	@endif-->
				<!--	{{$receipt_details->repair_model_no}}-->
		  <!--      @endif-->


		        
				<!-- Waiter info -->
				@if(!empty($receipt_details->sales_person_label))
					<b>{{ $receipt_details->sales_person_label}}</b> {{ $receipt_details->sales_person }}
				@endif
		        	
				@if(!empty($receipt_details->repair_status_label))
						<br/>
						<b>IT Support:</b>
		        @endif
		        @if(empty($receipt_details->invoice_heading))
		        @if(empty($receipt_details->repair_status_label))
						<br/>
						<b>{{$receipt_details->service_staff_label}}</b>
		        @endif
		                {{$receipt_details->service_staff}}
		        @endif
		        @if(!empty($receipt_details->shipping_custom_field_1_label))
					<br><strong>{!!$receipt_details->shipping_custom_field_1_label!!} :</strong> {!!$receipt_details->shipping_custom_field_1_value ?? ''!!}
				@endif

				@if(!empty($receipt_details->shipping_custom_field_2_label))
					<br><strong>{!!$receipt_details->shipping_custom_field_2_label!!}:</strong> {!!$receipt_details->shipping_custom_field_2_value ?? ''!!}
				@endif

				@if(!empty($receipt_details->shipping_custom_field_3_label))
					<br><strong>{!!$receipt_details->shipping_custom_field_3_label!!}:</strong> {!!$receipt_details->shipping_custom_field_3_value ?? ''!!}
				@endif

				@if(!empty($receipt_details->shipping_custom_field_4_label))
					<br><strong>{!!$receipt_details->shipping_custom_field_4_label!!}:</strong> {!!$receipt_details->shipping_custom_field_4_value ?? ''!!}
				@endif

				@if(!empty($receipt_details->shipping_custom_field_5_label))
					<br><strong>{!!$receipt_details->shipping_custom_field_2_label!!}:</strong> {!!$receipt_details->shipping_custom_field_5_value ?? ''!!}
				@endif
				{{-- sale order --}}
				@if(!empty($receipt_details->sale_orders_invoice_no))
					<br>
					<strong>@lang('restaurant.order_no'):</strong> {!!$receipt_details->sale_orders_invoice_no ?? ''!!}
				@endif

				@if(!empty($receipt_details->sale_orders_invoice_date))
					<br>
					<strong>@lang('lang_v1.order_dates'):</strong> {!!$receipt_details->sale_orders_invoice_date ?? ''!!}
				@endif
			</span>

	</div>
</div>

<div class="row" style="color: #000000 !important;">
	@includeIf('sale_pos.receipts.partial.common_repair_invoice')
	@if(!empty($receipt_details->total_due))
		@if(!empty($receipt_details->additional_notes))
	    <div class="col-xs-12">
	    	<p>	        <b>Keterangan Status : </b>{!! nl2br($receipt_details->additional_notes) !!}</p>
	    </div>
    @endif
    @endif
</div>

<div class="row" style="color: #000000 !important;">
	<div class="col-xs-12">
	    @if(empty($receipt_details->repair_status_label))
		<br/>
		@endif
		@php
			$p_width = 45;
		@endphp
		@if(!empty($receipt_details->item_discount_label))
			@php
				$p_width -= 10;
			@endphp
		@endif
		@if(!empty($receipt_details->discounted_unit_price_label))
			@php
				$p_width -= 10;
			@endphp
		@endif
		<table class="table table-responsive table-slim">
			<thead>
					<tr>	
				@if(!empty($receipt_details->repair_status_label))	
					<th width="{{$p_width}}%">Layanan Perbaikan</th>	
		        @endif	
		        	
		        @if(empty($receipt_details->repair_status_label))	
					<th width="{{$p_width}}%">{{$receipt_details->table_product_label}}</th>	
		        @endif	
				@if(empty($receipt_details->repair_status_label))	
					<th class="text-right" width="15%">Garansi</th>	
		        @endif	
		        @if(!empty($receipt_details->repair_status_label))	
					<th class="text-right" width="15%">Garansi</th>	
		        @endif	
		        @if(empty($receipt_details->repair_status_label))	
					<th class="text-right" width="15%">{{$receipt_details->table_qty_label}}</th>	
		        @endif	
				@if(!empty($receipt_details->repair_status_label))	
					<th class="text-right" width="15%">Biaya Services</th>	
		        @endif	
		        @if(empty($receipt_details->repair_status_label))	
					<th class="text-right" width="15%">{{$receipt_details->table_unit_price_label}}</th>	
		        @endif	
						
						
					@if(!empty($receipt_details->discounted_unit_price_label))	
						<th class="text-right" width="10%">{{$receipt_details->discounted_unit_price_label}}</th>	
					@endif	
					@if(!empty($receipt_details->item_discount_label))	
						<th class="text-right" width="10%">{{$receipt_details->item_discount_label}}</th>	
					@endif	
					<th class="text-right" width="15%">{{$receipt_details->table_subtotal_label}}</th>	
				</tr>	
			</thead>	
			<tbody>	
				@forelse($receipt_details->lines as $line)	
					<tr>	
						<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['cat_code'])), {{$line['cat_code']}}@endif	
                            @if(!empty($line['product_custom_fields'])), {{$line['product_custom_fields']}} @endif	
                            @if(!empty($line['product_description']))	
                            	<small>	
                            		{!!$line['product_description']!!}	
                            	</small>	
                            @endif 	
                            @if(!empty($line['sell_line_note']))	
                            <br>	
                            <small>	
                            	{!!$line['sell_line_note']!!}	
                            </small>	
                            @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_exp_date'])) <small>- {{@format_date($line['warranty_exp_date'])}} </small>@endif	
                            @if(!empty($line['warranty_description'])) <small> {{$line['warranty_description'] ?? ''}}</small>@endif	
                            @if($receipt_details->show_base_unit_details && $line['quantity'] && $line['base_unit_multiplier'] !== 1)	
                            <br><small>	
                            	1 {{$line['units']}} = {{$line['base_unit_multiplier']}} {{$line['base_unit_name']}} <br>	
                            	{{$line['base_unit_price']}} x {{$line['orig_quantity']}} = {{$line['line_total']}}	
                            </small>	
                            @endif	
                        </td>	
                        <td class="text-right">	
                        @if(!empty($line['warranty_name'])){{$line['warranty_name']}}@endif	
                        </td>	
                        @if(empty($receipt_details->repair_status_label))	
						<td class="text-right">	
							{{$line['quantity']}} {{$line['units']}} 	
							@if($receipt_details->show_base_unit_details && $line['quantity'] && $line['base_unit_multiplier'] !== 1)	
                            <br><small>	
                            	{{$line['quantity']}} x {{$line['base_unit_multiplier']}} = {{$line['orig_quantity']}} {{$line['base_unit_name']}}	
                            </small>	
                            @endif	
						</td>	
						@endif
						<td class="text-right">{{$line['unit_price_before_discount']}}</td>
						@if(!empty($receipt_details->discounted_unit_price_label))
							<td class="text-right">
								{{$line['unit_price_inc_tax']}} 
							</td>
						@endif
						@if(!empty($receipt_details->item_discount_label))
							<td class="text-right">
								{{$line['total_line_discount'] ?? '0.00'}}

								@if(!empty($line['line_discount_percent']))
								 	({{$line['line_discount_percent']}}%)
								@endif
							</td>
						@endif
						<td class="text-right">{{$line['line_total']}}</td>
					</tr>
					@if(!empty($line['modifiers']))
						@foreach($line['modifiers'] as $modifier)
							<tr>
								<td>
		                            {{$modifier['name']}} {{$modifier['variation']}} 
		                            @if(!empty($modifier['sub_sku'])), {{$modifier['sub_sku']}} @endif @if(!empty($modifier['cat_code'])), {{$modifier['cat_code']}}@endif
		                            @if(!empty($modifier['sell_line_note']))({!!$modifier['sell_line_note']!!}) @endif 
		                        </td>
								<td class="text-right">{{$modifier['quantity']}} {{$modifier['units']}} </td>
								<td class="text-right">{{$modifier['unit_price_inc_tax']}}</td>
								@if(!empty($receipt_details->discounted_unit_price_label))
									<td class="text-right">{{$modifier['unit_price_exc_tax']}}</td>
								@endif
								@if(!empty($receipt_details->item_discount_label))
									<td class="text-right">0.00</td>
								@endif
								<td class="text-right">{{$modifier['line_total']}}</td>
							</tr>
						@endforeach
					@endif
				@empty
					<tr>
						<td colspan="4">&nbsp;</td>
						@if(!empty($receipt_details->discounted_unit_price_label))
    					<td></td>
    					@endif
    					@if(!empty($receipt_details->item_discount_label))
    					<td></td>
    					@endif
					</tr>
				@endforelse
			</tbody>
		</table>
	</div>
</div>

<div class="row" style="color: #000000 !important;">
	<div class="col-md-12"><hr/></div>
	<div class="col-xs-7">
		    @if(!empty($receipt_details->invoice_heading))
		    		<small>*Harga Dalam Penawaran Ini Dapat Berubah Sewaktu-Waktu</br>*Dalam Kategori Jasa, Customer Wajib DP 50% Sebelum Pengerjaan</br>*Kami Menerima Pembayaran Cash Atau Melalui Transfer</b></br>*Besar Harapan Kami Penawaran Ini Berlanjut Menjadi Kerjasama Dengan Pilihan Yang Tepat Untuk Anda</small>
		    @endif
    @if(empty($receipt_details->invoice_heading))
	@if(!empty($receipt_details->repair_status_label))	
	{!! $receipt_details->footer_text !!}
                <b>Tanda Tangan Persetujuan :</b><br><br><br><br>
		<div class="col-xs-12">
		    <div class="col-xs-4">
		        {{$receipt_details->customer_name}}
		    </div>
		    <div class="col-xs-4">
		        {{$receipt_details->sales_person}}
		    </div>
		    <div class="col-xs-4">
		        {{$receipt_details->service_staff}}
		    </div>
		</div>
	 @endif
	@if(!empty($receipt_details->footer_text))	
	@if(empty($receipt_details->repair_status_label))
	<small>- GARANSI BATAL apabila : segel rusak, faktur / kartu garansi hilang, kerusakan karena terbakar, kelembaban, bencana alam, serangga dan barang tidak utuh / tidak lengkap <br>
- Barang yang sudah dibeli / disetujui tidak dapat dikembalikan kecuali dengan perjanjian tertentu</small><br><b>Tanda Tangan Persetujuan :</b><br><br><br><br>
		<div class="col-xs-12">
		    <div class="col-xs-4">
		        {{$receipt_details->customer_name}}
		    </div>
		    <div class="col-xs-4">
		        {{$receipt_details->sales_person}}
		    </div>
		    <div class="col-xs-4">
		        {{$receipt_details->service_staff}}
		    </div>
		</div>
	 @endif	
	@endif	
@endif
	</div>

	<div class="col-xs-5">
        <div class="table-responsive">
          	<table class="table table-slim">
				<tbody>

				    @if(empty($receipt_details->repair_status_label))
					@if(!empty($receipt_details->total_quantity_label))
						<tr>
							<th style="width:70%">
								{!! $receipt_details->total_quantity_label !!}
							</th>
							<td class="text-right">
								{{$receipt_details->total_quantity}}
							</td>
						</tr>
					@endif

					@if(!empty($receipt_details->total_items_label))
						<tr>
							<th style="width:70%">
								{!! $receipt_details->total_items_label !!}
							</th>
							<td class="text-right">
								{{$receipt_details->total_items}}
							</td>
						</tr>
					@endif
					<tr>
					    @endif
					    @if(!empty($receipt_details->subtotal))
						<th style="width:70%">
							{!! $receipt_details->subtotal_label !!}
						</th>
						<td class="text-right">
							{{$receipt_details->subtotal}}
						</td>
						@endif
					</tr>
					@if(!empty($receipt_details->total_exempt_uf))
					<tr>
						<th style="width:70%">
							@lang('lang_v1.exempt')
						</th>
						<td class="text-right">
							{{$receipt_details->total_exempt}}
						</td>
					</tr>
					@endif
					<!-- Shipping Charges -->
					@if(!empty($receipt_details->shipping_charges))
						<tr>
							<th style="width:70%">
								{!! $receipt_details->shipping_charges_label !!}
							</th>
							<td class="text-right">
								{{$receipt_details->shipping_charges}}
							</td>
						</tr>
					@endif

					@if(!empty($receipt_details->packing_charge))
						<tr>
							<th style="width:70%">
								{!! $receipt_details->packing_charge_label !!}
							</th>
							<td class="text-right">
								{{$receipt_details->packing_charge}}
							</td>
						</tr>
					@endif

					<!-- Discount -->
					@if( !empty($receipt_details->discount) )
						<tr>
							<th>
								{!! $receipt_details->discount_label !!}
							</th>

							<td class="text-right">
								(-) {{$receipt_details->discount}}
							</td>
						</tr>
					@endif

					@if( !empty($receipt_details->total_line_discount) )
						<tr>
							<th>
								{!! $receipt_details->line_discount_label !!}
							</th>

							<td class="text-right">
								(-) {{$receipt_details->total_line_discount}}
							</td>
						</tr>
					@endif

					@if( !empty($receipt_details->additional_expenses) )
						@foreach($receipt_details->additional_expenses as $key => $val)
							<tr>
								<td>
									{{$key}}:
								</td>

								<td class="text-right">
									(+) {{$val}}
								</td>
							</tr>
						@endforeach
					@endif

					@if( !empty($receipt_details->reward_point_label) )
						<tr>
							<th>
								{!! $receipt_details->reward_point_label !!}
							</th>

							<td class="text-right">
								(-) {{$receipt_details->reward_point_amount}}
							</td>
						</tr>
					@endif

					<!-- Tax -->
					@if( !empty($receipt_details->tax) )
						<tr>
							<th>
								{!! $receipt_details->tax_label !!}
							</th>
							<td class="text-right">
								(+) {{$receipt_details->tax}}
							</td>
						</tr>
					@endif

					@if( $receipt_details->round_off_amount > 0)
						<tr>
							<th>
								{!! $receipt_details->round_off_label !!}
							</th>
							<td class="text-right">
								{{$receipt_details->round_off}}
							</td>
						</tr>
					@endif
					
					

					<!-- Total -->
					<tr>
						<th>
							{!! $receipt_details->total_label !!}
						</th>
						<td class="text-right">
							{{$receipt_details->total}}
							@if(!empty($receipt_details->total_in_words))
								<br>
								<small>({{$receipt_details->total_in_words}})</small>
							@endif
						</td>
					</tr>
			@if(!empty($receipt_details->repair_status_label))
			@if(!empty($receipt_details->total_paid))
				<tr>
					<th>
						{!! $receipt_details->total_paid_label !!}
						@if(!empty($receipt_details->total_due) && !empty($receipt_details->total_due_label))
					<b>(Uang Muka)</b>
					@endif
					</th>
					<td class="text-right">
						{{$receipt_details->total_paid}}
					</td>

				</tr>
			@endif
			@endif
				</tbody>
        	</table>
    	<table class="table table-slim">
        	@if(!empty($receipt_details->payments))
				@foreach($receipt_details->payments as $payment)
					<tr>
						<td>{{$payment['method']}}</td>
						<td class="text-right" >{{$payment['amount']}}</td>
						<td class="text-right">{{$payment['date']}}</td>
					</tr>
				@endforeach
			@endif

			<!-- Total Paid-->
            @if(empty($receipt_details->repair_status_label))
			@if(!empty($receipt_details->total_paid))
				<tr>
					<th>
						{!! $receipt_details->total_paid_label !!}
						@if(!empty($receipt_details->total_due) && !empty($receipt_details->total_due_label))
					<b>(Uang Muka)</b>
					@endif
					</th>
					<td class="text-right">
						{{$receipt_details->total_paid}}
					</td>
					
				</tr>
			@endif
			@endif

			<!-- Total Due-->
			@if(!empty($receipt_details->total_due) && !empty($receipt_details->total_due_label))
			<tr>
				<th>
					{!! $receipt_details->total_due_label !!}
				</th>
				<td class="text-right">
					{{$receipt_details->total_due}}
				</td>
			</tr>
			@endif

			@if(!empty($receipt_details->all_due))
			<tr>
				<th>
					{!! $receipt_details->all_bal_label !!}
				</th>
				<td class="text-right">
					{{$receipt_details->all_due}}
				</td>
			</tr>
			@endif
		</table>
        	@if(!empty($receipt_details->invoice_heading))
        	<small>Hormat Kami, Admin Project</small><br><br><br><small>{{$receipt_details->sales_person}}</small>
        	@endif
        </div>
    </div>

    <div class="border-bottom col-md-12">
	    @if(empty($receipt_details->hide_price) && !empty($receipt_details->tax_summary_label) )
	        <!-- tax -->
	        @if(!empty($receipt_details->taxes))
	        	<table class="table table-slim table-bordered">
	        		<tr>
	        			<th colspan="2" class="text-center">{{$receipt_details->tax_summary_label}}</th>
	        		</tr>
	        		@foreach($receipt_details->taxes as $key => $val)
	        			<tr>
	        				<td class="text-center"><b>{{$key}}</b></td>
	        				<td class="text-center">{{$val}}</td>
	        			</tr>
	        		@endforeach
	        	</table>
	        @endif
	    @endif
	</div>
    
</div>
</div>