<div class="col-sm-12">
                        <div class="white-box">
                        	<div class="pull-right">
								<!-- <a href="<?php echo e(route('customer.addView')); ?>" class="btn  btn-primary">
									<i class="fa fa-plus-square"></i>&nbsp; Add new Customer
								</a> -->
							</div>
                            <h3 class="box-title">Customers (<b><?php echo e(count($allCustomers)); ?></b>)</h3>

                            <div class="table-responsive" >
                                <table id="myTable" class="table table-striped">
                                    <thead>
                                        <tr>
                                            <th>#</th>
                                           
                                            <th>Member Name</th>
                                            <th>Code</th>
                                            <th>Mobile Number</th>
                                            <th>Status</th>
                                            <th>Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php $count =1;?>
                                        <?php $__currentLoopData = $allCustomers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $customer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><?php echo e($count++); ?></td>
                                            
                                            <td>
                                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-customer')): ?>
                                                <a href="<?php echo e(route('customer.detail',['id'=>$customer->id])); ?>"><?php echo e($customer->name); ?></a>
                                                <?php else: ?>
                                                <?php echo e($customer->name); ?>

                                                <?php endif; ?>
                                            </td>
                                            <td>
                                                <?php $words = explode(" ",$customer->name);
                                                $acronym = "";
                                                foreach ($words as $w) {
                                                    $acronym .= $w[0];
                                                }
                                                ?>

                                                <?php echo e($acronym); ?>00<?php echo e($customer->id); ?>

                                            </td>
<!--                                            <td><?php echo e($customer->father_name); ?></td>-->
                                            <td><?php echo e($customer->mobile_number); ?></td>


                                           
                                           <?php if($customer->status == true): ?>
                                            <td><span class="label label-success">Active</span></td>
                                            <?php else: ?>
                                            <td><span class="label label-danger">InActive</span></td>
                                            <?php endif; ?>
                                            <td class="text-nowrap">
                                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'view-customer')): ?>
                                                <a href="<?php echo e(route('customer.detail',['id'=>$customer->id])); ?>" data-toggle="tooltip" data-original-title="View"> <i class="fa fa-eye text-inverse m-r-10"></i> </a>
                                                <?php endif; ?>
                                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'edit-customer')): ?>
                                                <a href="<?php echo e(route('customer.editView',['id'=>$customer->id])); ?>" data-toggle="tooltip" data-original-title="Edit"> <i class="fa fa-pencil text-inverse m-r-10"></i> </a>
                                                <?php endif; ?>
                                                <?php if (\Illuminate\Support\Facades\Blade::check('permission', 'delete-customer')): ?>
                                                <a href="<?php echo e(route('customer.delete',['id'=>$customer->id])); ?>" onclick="return  confirm('Are you sure to delete?') "data-toggle="confirmation" data-title="Are you sure to delete?" > <i class="fa fa-close text-danger"></i> </a>
                                                <?php endif; ?>
                                            </td>
                                        </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                    </tbody>
                                </table>
                                
                            </div>
                        </div>
                    </div><?php /**PATH /home/proje372/akram-city.projecterp.net/resources/views/customer/update-table.blade.php ENDPATH**/ ?>