<!-- END WIDGET MAIN CHART WITH TABBED CONTENT -->
<div class="Editseller">
	<div class="col-lg-12 ">
		
		
		<ul class="breadcrumb">
			<li><i class="fa fa-home"></i><a href="/home" class="home">Home</a></li>
			<!--<li><a href="#">Forms</a></li>-->
			<li class="active">View Seller Records </li>
		</ul>
	</div><br>
	<script src="assets/js/king-table.js"></script>
	<div class="row">
		<div class="col-md-12">
			<!-- WIDGET TABLE -->
			<div class="widget widget-table">
				<div class="widget-header">
					<h3><i class="fa fa-user"></i> View Seller Records</h3>
					<div class="btn-group widget-header-toolbar">
						<?php if($data['create']=='1'): ?>
						<a class="btn-borderless btn-focus clickme" href="Sellercreate" title="Focus" ><i class="fa fa-plus"></i></a>
						<?php endif; ?>
					</div>
					<!--<div class="btn-group widget-header-toolbar">
						<div class="control-inline toolbar-item-group">
						<span class="control-title">New Visits:</span>
						<div class="label label-success"><i class="fa fa-caret-up"></i> 3.5%</div>
						</div>
					</div>-->
				</div>
				<div class="widget-content">
					<table id="datatable-data-export" class="table table-sorting table-striped table-hover table-bordered datatable">
						<thead>
							<tr>
								<th>Company</th>
								<th>Seller type</th>
								<th>Name</th>
								<th>Contact Detail</th>
								<th>Bank detail.</th>
								<th>Status</th>
								<?php if($data['edit']=='1' || $data['delete']=='1'){echo'<th>Action</th>';}?>
							</tr>
						</thead>
						<tbody>
							<?php $__currentLoopData = $data['cst_customer']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $custrec): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
							<tr>
								<td><?php echo e($custrec->cmp_name); ?></td>
								<td><?php echo e($custrec->cst_type); ?></td>
								<td><?php echo e($custrec->cst_name); ?></td>
								<td>
									<?php echo e($custrec->cst_address); ?>, <?php echo e($custrec->cst_city); ?>, <?php echo e($custrec->cst_state); ?>, <?php echo e($custrec->cst_country); ?>

									<br>Ph. No.<?php echo e($custrec->cst_contact1); ?>, <?php echo e($custrec->cst_contact2); ?>

									<br>Email ID. <?php echo e($custrec->cst_email); ?>

								<br>Website.<?php echo e($custrec->cst_www); ?></td>
								<td><?php echo e($custrec->cst_bankdetail); ?></td>
								<td><?php echo e($custrec->cst_status); ?></td>
								
								<?php if($data['edit']=='1' || $data['delete']=='1'){ echo'<td>';}?>	
								
								<?php if($data['edit']=='1'){echo'<button class="btn btn-default btn-xs print" onclick="Editseller('.$custrec->cst_id.')">Edit</button>'; } if($data['delete']=='1'){echo' <button class="btn btn-default btn-xs print" onclick="Deleteseller('.$custrec->cst_id.')">Delete</button>';} echo '</td>';?>
							</tr>
							<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>											
						</tbody>
					</table>
				</div>
			</div>
			<!-- END WIDGET TABLE -->
			<!-- WIDGET DONUT AND PIE CHART -->
			
			<!-- END WIDGET INLINE SPARKLINE -->
		</div>
	</div>
</div>
<script>
	$('.clickme').click(function(e)
	{
		e.preventDefault();
		$('#sideMenu').load($(this).attr('href'));
	});
	function Editseller(editsell)
	{
		$.ajax({
			url: 'Editseller',
			type: 'get',
			data:'&cst_id='+editsell,
			success: function(data)
			{
				$('.Editseller').html(data);
			}
		});
	}
	
	function Deleteseller(deletesell)
	{
		if (confirm("Are you sure delete!") == true)
		{
			$.ajax({
				url: 'DeleteCustomer',
				type: 'get',
				data:'&cst_id='+deletesell,
				success: function(data)
				{
					$('#sideMenu').load('SellerView');
				}
			});
		}
	}
	</script>	