<style>
    @page  {
  size: auto; 
  /* Chrome sets own margins, we change these printer settings */
  margin: 2mm 3mm -2mm 5mm; 
}
</style>

<?php //print_r($receipt_details); ?>

	<?php if(!empty($receipt_details->logo)): ?>
        	<center>	<div class="text-box centered">
        			<img style="max-height: 100px; width: auto;" src="<?php echo e($receipt_details->logo, false); ?>" alt="Logo">
        		</div></center>
    <?php endif; ?> 
    
    
    <table style="width:100%" class="border-bottom-dotted border-top-dotted">
			<?php if(!empty($receipt_details->invoice_heading)): ?>
			    <tr>
			        <td colspan="2" class="text-center"><strong>Sales Bill Details</strong></td>
			    </tr>
			<?php endif; ?>
			<?php if(!empty($receipt_details->parent_invoice_no_prefix)): ?>
			    <tr>
			        <td colspan="2" class="f-left"><?php echo $receipt_details->parent_invoice_no_prefix; ?>

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

                    </td>
			    </tr>
			    <tr>
			        <td colspan="2" class="f-left"><?php echo e($receipt_details->date_label, false); ?>

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

                    </td>
			    </tr>
			    <tr>
			        <td colspan="2"><img class="center-block" src="data:image/png;base64,<?php echo e(DNS1D::getBarcodePNG($receipt_details->parent_invoice_no, 'C128', 2,30,array(39, 48, 54), true), false); ?>"> </td>
			    </tr>
			<?php endif; ?>
	</table>
    
	
	<table style="width:100%" class="border-bottom-dotted">
			<?php if(!empty($receipt_details->invoice_heading)): ?>
			    <tr>
			        <td colspan="2" class="text-center"><strong><?php echo $receipt_details->invoice_heading; ?></strong></td>
			    </tr>
			<?php endif; ?>
			<?php if(!empty($receipt_details->invoice_heading)): ?>
			    <tr>
			        <td colspan="2" class="f-left"><?php if(!empty($receipt_details->invoice_no_prefix)): ?>
					<?php echo $receipt_details->invoice_no_prefix; ?>

				<?php endif; ?>

				<?php echo e($receipt_details->invoice_no, false); ?></td>
			    </tr>
			<?php endif; ?>
	</table>
	
	 <table style="margin-top: 5px !important" style="font-size:10px;" class="width-100 table-f-7">
                <thead class="">
                    <tr>
                        <th >
                        	<?php echo e($receipt_details->table_product_label, false); ?>

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

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

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

                        </th>
                        
                </thead>
                <tbody class="border-bottom-dotted">
				<?php $__currentLoopData = $receipt_details->lines; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $line): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
					<tr>
						<td>
                            <?php echo e($line['name'], 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['sell_line_note'])): ?>(<?php echo e($line['sell_line_note'], false); ?>) <?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_exc_tax'], false); ?>

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

						</td>
					</tr>
				<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
			</tbody>
    </table>
    <div class="flex-box border-top-dotted" >
        <p class="left text-right sub-headings">
        	<?php echo $receipt_details->total_label; ?>

        </p>
        <p class="width-50 text-right sub-headings">
        	<?php echo e($receipt_details->total, false); ?>

        </p>
    </div>
    
    <div class="flex-box border-top-dotted" >
        <p class="left text-right f-16">
        	Returned Amount
        </p>
        <p class="width-50 text-right sub-headings">
        	<?php echo e($receipt_details->total_paid, false); ?>

        </p>
    </div>
    <div class="flex-box border-top-dotted" >
        <p class="left text-right f-16">
        	Available Amount
        </p>
        <p class="width-50 text-right sub-headings">
        	<?php echo e($receipt_details->total_due, false); ?>

        </p>
    </div>

	<?php if($receipt_details->show_barcode): ?>
		<center><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); ?>"></center>
	<?php endif; ?>
	
	


<style type="text/css">
.f-8 {
	font-size: 8px !important;
}
body {
	color: #000000;
}
@media  print {
	* {
    	font-size: 14px;
    	font-weight:600;
    	font-family: 'Times New Roman';
    	word-break: break-all;
	}
	.f-8 {
		font-size: 12px !important;
	}
	
.headings{
	font-size: 20px;
	font-weight: 700;
	text-transform: uppercase;
	white-space: nowrap;
}

.sub-headings{
	font-size: 20px !important;
	font-weight: 700 !important;
}
.f-16{
    font-size: 16px !important;
}
.main-headings{
	font-size: 22px !important;
	font-weight: 800 !important;
}


.border-top{
    border-top: 1px solid black;
}
.border-bottom{
	border-bottom: 1px solid black;
}

.border-bottom-dotted{
	border-bottom: 1px dotted black;
}
.border-top-dotted{
	border-top: 1px dotted black;
}

td.serial_number, th.serial_number{
	width: 5%;
    max-width: 5%;
}

td.description,
th.description {
    width: 35%;
    max-width: 35%;
}

td.quantity,
th.quantity {
    width: 15%;
    max-width: 15%;
    word-break: break-all;
}
td.unit_price, th.unit_price{
	width: 25%;
    max-width: 25%;
    word-break: break-all;
}

td.price,
th.price {
    width: 20%;
    max-width: 20%;
    word-break: break-all;
}

.centered {
    text-align: center;
    align-content: center;
}

.ticket {
    width: 100%;
    max-width: 100%;
}

img {
    max-width: inherit;
    width: auto;
}

    .hidden-print,
    .hidden-print * {
        display: none !important;
    }
}
.table-info {
	width: 100%;
}
.table-info tr:first-child td, .table-info tr:first-child th {
	padding-top: 8px;
}
.table-info th {
	text-align: left;
}
.table-info td {
	text-align: right;
}
.logo {
	float: left;
	width:35%;
	padding: 10px;
}

.text-with-image {
	float: left;
	width:65%;
}
.text-box {
	width: 100%;
	height: auto;
}

.textbox-info {
	clear: both;
}
.textbox-info p {
	margin-bottom: 0px
}
.flex-box {
	display: flex;
	width: 100%;
	padding-right:15px;
}
.flex-box p {
	width: 50%;
	margin-bottom: 0px;
	white-space: nowrap
	padding-right:15px;
}

.table-f-12 th, .table-f-12 td {
	font-size: 12px;
	word-break: break-word;
}

.bw {
	word-break: break-word;
}
</style> <?php /**PATH /home2/santhos2/public_html/bestcollection/resources/views/sell_return/receipt.blade.php ENDPATH**/ ?>