   
<?php $__env->startSection('main-section'); ?>
<div class="content container-fluid">
	<div class="page-header">
		<div class="content-page-header">
			<h5>Party</h5>
			<div class="list-btn">
				<ul class="filter-list">
					<li>
						<a class="btn btn-primary" href="<?php echo e(route('party.add')); ?>">
						<i class="fa fa-plus-circle me-2" aria-hidden="true"></i>Add Party </a>
					</li>
				</ul>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-12">
			<?php if(Session::has('success')): ?>
			<div class="alert alert-success"><?php echo e(Session::get('success')); ?></div>
			<?php endif; ?>
			<?php if(Session::has('fail')): ?>
			<div class="alert alert-danger"><?php echo e(Session::get('fail')); ?></div>
			<?php endif; ?>
		</div>
		<div class="col-sm-12">
			<div class="card-table">
				<div class="card-body">
					<div class="table-responsive">
						<table class="table table-stripped table-hover ">
							<thead class="thead-light">
								<tr>
									<th>S No.</th>
									<th>Name</th>
									
									<th>Phone No.</th>
									<th>Party Type</th>
									<th>Balance</th>
									<th>Action</th>
								</tr>
							</thead>
							<tbody>
								<?php $__currentLoopData = $party; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
								<tr>
									<td><?php echo e($key+1); ?></td>
									<td><?php echo e($p->name); ?></td>
			                        <td><?php echo e($p->phone); ?></td>
									<td>
									    <?php if($p->party_type == 0){
									        echo "Customer";
									    }else{
									        echo "Supplier";
									    } ?>
									</td>
									<td>0</td>
								<td class="d-flex align-items-center">
										<a href="<?php echo e(route('party.edit', ['id' => $p->party_id])); ?>" class="btn btn-info">Edit</a>
									</td>
								</tr>
								<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('dashboardLayout.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\accounting\accounting\resources\views/party/index.blade.php ENDPATH**/ ?>