<?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">
						<?php if($vendordetails->user_type==2): ?>
                        <h6>Vendor details</h6>
						<?php endif; ?>
						<?php if($vendordetails->user_type==3): ?>
                        <h6>Manufacturer details</h6>
						<?php endif; ?>
                    </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($vendordetails->pro_pic)): ?>
                                        <img src="<?php echo e(url('user_files')); ?>/<?php echo e($vendordetails->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 vvendor-details-main">
								<h6 style="font-size: 20px;"><?php echo e(ucfirst($vendordetails->name)); ?></h6>
								<div class="right-panel">
									<span class="Tittle">Email Id</span>
									<span class="Collon">:</span>
									<span class="Value w-100"><?php echo e($vendordetails->email); ?></span>
								</div>
							<!--	<div class="right-panel">
									<Span class="Tittle">Contact Number</Span>
									<Span class="Collon">:</Span>
									<Span class="Value"><?php echo e($vendordetails->phone_no); ?></Span>
								</div>-->
								
								<div class="right-panel">
									<span class="Tittle">Address</span>
									<span class="Collon">:</span>
									<span class="Value w-100"><?php if(!empty($vendordetails->address)): ?><?php echo e($vendordetails->address); ?><?php else: ?> Address Not Added <?php endif; ?></span>
								</div>
								<div class="right-panel">
									<span class="Tittle">Gst No</span>
									<span class="Collon">:</span>
									<span class="Value w-100"><?php if(!empty($vendordetails->gst_no)): ?><?php echo e($vendordetails->gst_no); ?><?php else: ?> Not registered with GST <?php endif; ?></span>
								</div>
								<div class="right-panel">
									<Span class="Tittle">State</Span>
									<Span class="Collon">:</Span>
									<Span class="Value w-100">
									    <?php if(!empty($vendordetails->city)): ?>
									    <?php $__currentLoopData = $states; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $state): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
									    <?php if($state->id == $vendordetails->city): ?><?php echo e($state->name); ?> <?php endif; ?>
									    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
									    <?php else: ?> 
									    State Not Added
									    <?php endif; ?>
									    </Span>
								</div>
								<div class="right-panel">
									<span class="Tittle">Country</span>
									<span class="Collon">:</span>
									<span class="Value w-100">
									    <?php if(!empty($vendordetails->state)): ?>
									    <?php $__currentLoopData = $countries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $country): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
									    <?php if($country->id == $vendordetails->state): ?>
									    <?php echo e($country->name); ?>

									    <?php endif; ?>
									    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
									    <?php endif; ?>
									    
									    
									    </span>
								</div>
								<div class="right-panel">
									<span class="Tittle">Contact Person Name</span>
									<span class="Collon">:</span>
									<span class="Value w-100"><?php echo e($vendordetails->contact_name); ?></span>
								</div>
								<div class="right-panel">
									<span class="Tittle">Contact Person Phone number</span>
									<span class="Collon">:</span>
									<span class="Value w-100"><?php echo e($vendordetails->contact_phone_no); ?></span>
								</div>
								<div class="right-panel">
									<span class="Tittle">Authorised Manufacturers</span>
									<span class="Collon">:</span>
									<span class="Value w-100">
									    <?php if(count($dealers)!=0): ?>
										<?php $__currentLoopData = $dealers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $dealer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
										<?php echo e($dealer->name); ?><?php if(!$loop->last): ?>, <?php endif; ?>
										<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
									    <?php else: ?> 
									    Not registered with Manufacturers
									    <?php endif; ?>
								    </span>
								</div>
								<div class="right-panel">
									<span class="Tittle">Selling Products</span>
									<span class="Collon">:</span>
									<span class="Value w-100">
									    <?php if(count($vendorproducts)!=0): ?>
										<?php $__currentLoopData = $vendorproducts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $products): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
										<?php echo e($products->product_name); ?><?php if(!$loop->last): ?>, <?php endif; ?>
									<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
									    <?php else: ?> 
									    Not Selling Products
									    <?php endif; ?>
								    </span>
								</div>
								
								<div class="quote-btns" style="justify-content: flex-start; width: 100%;     margin-bottom: 10px;">
								<?php if(Auth::user()->user_type==3): ?>
                                     <a href="<?php echo e(url('manufacturers/dealerapprovals')); ?>">
                                         <button style="margin: 10px 0;min-width: 100px;" class="btn common-btn green-btn dealer-btns"> Back</button>
                                      </a>
								<?php else: ?>
									 <a href="<?php echo e(url('buyers/approveddealers')); ?>">
                                         <button style="margin: 10px 0;min-width: 100px;" class="btn common-btn green-btn dealer-btns"> Back</button>
                                      </a>
								<?php endif; ?>
                                </div>
								
								<?php if(!empty($vendordetails->company_profile)): ?>
                                                    <li>
                                                        <a target="_blank"  href="https://www.meddbot.com/product_files/<?php echo e($vendordetails->company_profile); ?>">
                                                            <i class="far fa-file-alt"></i>
                                                            <span class="web"><?php echo e($vendordetails->company_profile); ?></span>
                                                        </a>
                                                    </li> 
                                                <?php endif; ?>
					
							</div>
                               
					</div>
                        </div>
                    </div>


                </div>

	</div>




<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>

<?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/buyers/view_vendor_details.blade.php ENDPATH**/ ?>