<?php $__env->startSection('content'); ?>
<style>
label.error{
	color:red;
}
</style>
<div class="common-content">
          <div class="page-content">
                <div class="page-heading">
                    <div class="headings">
                        <h6>Dealer details</h6>
                    </div>
                </div>

                <div class="dashboard-cnts">
				  
					<div class="row">
                        <div class="col-lg-12">
                            <div class="partner-box partner-box2 Register-partner-box">
							<div class="Register-product-logo">
							
								<div class="complaint-img">
                                    <?php if(!empty($dealerdetails->pro_pic)): ?>
                                        <img src="<?php echo e(url('user_files')); ?>/<?php echo e($dealerdetails->pro_pic); ?>">
                                    <?php else: ?>
                                        <img src="<?php echo e(url('assets/images/1200px-No-Image-Placeholder.svg.png')); ?>">
                                    <?php endif; ?>
                                </div>
								
							</div>
						<div class="partner-details Register-partner-details">
							<h6 style="font-size: 18px; color:#0498d5;"><?php echo e(ucfirst($dealerdetails->name)); ?></h6>
                            <div class="right-panel">
                                <Span class="Tittle">Email</Span>
                                <Span class="Collon">:</Span>
                                <Span class="Value"><?php echo e($dealerdetails->email); ?></Span>
                            </div>
						<?php if($dealerdetails->phone_no!=''): ?>
                            <div class="right-panel">
                                <Span class="Tittle">Phone Number</Span>
                                <Span class="Collon">:</Span>
                                <Span class="Value"><?php echo e($dealerdetails->phone_no); ?></Span>
                            </div>
						<?php endif; ?>
						<?php if($dealerdetails->address!=''): ?>
                            <div class="right-panel">
                                <Span class="Tittle">Address</Span>
                                <Span class="Collon">:</Span>
                                <Span class="Value"><?php echo e($dealerdetails->address); ?></Span>
                            </div>
						<?php endif; ?>
						<?php if($dealerdetails->city!=''): ?>
                            <div class="right-panel">
                                <Span class="Tittle">City</Span>
                                <Span class="Collon">:</Span>
                                <Span class="Value"><?php echo e($dealerdetails->cityname); ?></Span>
                            </div>
						<?php endif; ?>	
                        <?php if($dealerdetails->state!=''): ?>
                            <div class="right-panel">
                                <Span class="Tittle">State</Span>
                                <Span class="Collon">:</Span>
                                <Span class="Value"><?php echo e($dealerdetails->statename); ?></Span>
                            </div>
						<?php endif; ?>	    
						
						
						<?php if($dealerdetails->contact_name!=''): ?>
                            <div class="right-panel">
                                <Span class="Tittle">Contact Name</Span>
                                <Span class="Collon">:</Span>
                                <Span class="Value"><?php echo e($dealerdetails->contact_name); ?></Span>
                            </div>
						<?php endif; ?>		
						<?php if($dealerdetails->contact_phone_no!=''): ?>
                            <div class="right-panel">
                                <Span class="Tittle">Contact Phone Number</Span>
                                <Span class="Collon">:</Span>
                                <Span class="Value"><?php echo e($dealerdetails->contact_phone_no); ?></Span>
                            </div>
						<?php endif; ?>
						<?php if($companydetails->company_profile!=''): ?>
                            <div class="right-panel">
                                <Span class="Tittle">Company Profile</Span>
                                <Span class="Collon">:</Span>
                               <Span class="Value"> <a target="_blank" class="eye" href="<?php echo e(url('product_files/'.$companydetails->company_profile)); ?>"><i class="fa fa-eye" aria-hidden="true"></i> View</a></Span>
                            </div>
						<?php endif; ?>	
						

						</div>
                              
					</div>
                        </div>
                    </div>


                </div>

	</div>





<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
<script>
$(document).ready( function () {
    $('#table_id').DataTable();
} );

<?php if(Session::has('message')): ?>
      swal({
        title: "",
        text: "<?php echo e(Session::get('message')); ?>",
        type: "success",
        showCancelButton: false,
        dangerMode: false,
        confirmButtonText: 'OK',

    });
<?php endif; ?>
<?php if(Session::has('errormessage')): ?>
      swal({
        title: "",
        text: "<?php echo e(Session::get('errormessage')); ?>",
        type: "error",
        showCancelButton: false,
        dangerMode: true,
        confirmButtonText: 'OK',

    });
<?php endif; ?>


function generatebarcode(){
	var product =$("#product_existing option:selected").val();
	var Arr = product.split('_');
	var product_id  =Arr[0];
	var vendor_id   =Arr[1];
	$('#exampleModal').modal('show');

	var barcode='54321'+' '+product_id;
	$('#barcode').JsBarcode(barcode, {
	  width: 1,
	  height: 40
	});

	$("#barcode_existing").val(barcode);
}
function generatebarcode_new(product_id){
	
	$('#exampleModal').modal('show');

	var barcode='54321'+' '+product_id;
	$('#barcode').JsBarcode(barcode, {
	  width: 1,
	  height: 40
	});

	$("#barcode_new").val(barcode);
}

$("#printBtn").click(function(){
	var divToPrint=document.getElementById('demo');

  var newWin=window.open('','Print-Window');

  newWin.document.open();

  newWin.document.write('<html><body onload="window.print()">'+divToPrint.innerHTML+'</body></html>');

  newWin.document.close();

  setTimeout(function(){newWin.close();},10);


});


</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.main_assetmanage', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/meddbot/public_html/resources/views/manufacturers/dealerdetails.blade.php ENDPATH**/ ?>