

<?php $__env->startSection('content'); ?>
<div class="container-fluid">
    <section class="content">
        <div class="row">
        	<div class="col-md-12">
            	<div class="box box-primary">
                	<div class="box-header">
                    	<h3 class="box-title">CRM List</h3> 
                    	<div class="box-tools pull-right">
                    		<!-- <a href="<?php echo e(url('select/create')); ?>" class="btn btn-primary btn-flat"> <i class="fa fa-plus"></i> Create Select Name</a> -->
                    	</div>
                	</div>
                	<div class="box-body">
                        <div class="table-responsive"> 
                            <table id="example" class="table table-bordered table-striped">
                                <thead>
                                    <tr>
                                        <th>CID</th>
                                        <th>Number</th>
                                        <th>Name</th>
                                        <th>Address</th>
                                        <th>Area</th>
                                        <th>District</th>
                                        <!-- <th>Division</th> -->
                                        <th>Cus.Type</th>
                                        <th>Conversation Details</th>
                                        
                                        <th>Create Ticket</th>
                                        
                                        <th>Product Model</th>
                                        <th>Product Price</th>
                                        <th>Client & Dis</th>
                                        <th>Area Assigned</th>
                                        <th>Query Type</th>
                                        <th>Order</th>
                                        
                                        <th>Call Remarks</th>
                                        <th>Agent</th>
                                        <th>Call Time</th>
                                        <th>Email</th>
                                        <th>Birthday</th>
                                        <th>Marriage day</th>
                                        <th>Gender</th>
                                        <th>Profession</th>
                                        <th>Call Type</th>
                                    </tr>
                                </thead>
                                <tbody>
                                <?php
                                    $i = 0;
                                ?>
                                <?php foreach($crms as $crm): ?>
                                    <tr>
                                        <td><?php echo e($crm->id); ?></td>
                                        <td><?php echo e($crm->phone_number); ?></td>
                                        <td><?php echo e($crm->customer_name); ?></td>
                                        <td><?php echo e($crm->customer_address); ?></td>
                                        <td><?php echo e($crm->customer_area); ?></td>
                                        <?php if(isset($crm->district->name)): ?>
                                            <td><?php echo e($crm->district->name); ?></td>
                                        <?php else: ?>
                                            <td></td>
                                        <?php endif; ?>
                                        <!-- <?php if(isset($crm->division->name)): ?>
                                            <td><?php echo e($crm->division->name); ?></td>
                                        <?php else: ?>
                                            <td></td>
                                        <?php endif; ?> -->
                                        <td><?php echo e($crm->type_of_customer); ?></td>
                                        <td><?php echo e($crm->remarks); ?></td>
                                        
                                        <td><?php echo e($crm->create_ticket); ?></td>
                                        
                                        <td><?php echo e($crm->product_model); ?></td>
                                        <td><?php echo e($crm->product_price); ?></td>
                                        <td><?php echo e($crm->client_discount); ?></td>
                                        <td><?php echo e($crm->area_assigned); ?></td>
                                        <td><?php echo e($crm->query_type); ?></td>
                                        <td><?php echo e($crm->customer_order); ?></td>
                                       
                                        <td><?php echo e($crm->call_remarks); ?></td>
                                        <td><?php echo e($crm->agent); ?></td>
                                        <td><?php echo e($crm->created_at); ?></td>
                                        <td><?php echo e($crm->customer_email); ?></td>
                                        <td><?php echo e($crm->date_of_birth); ?></td>
                                        <td><?php echo e($crm->marriage_day); ?></td>
                                        <td><?php echo e($crm->gender); ?></td>
                                        <td><?php echo e($crm->profession); ?></td>
                                        <td><?php echo e($crm->camp_in_or_out); ?></td>
                                    </tr>
                                <?php endforeach; ?>
                                </tbody>
                            </table>
                        </div>
                        <?php echo $crms->render(); ?>

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

<?php $__env->startSection('style'); ?>
    <!-- <link rel="stylesheet" href="<?php echo e(asset('assets/css/dataTables.bootstrap.min.css')); ?>"> -->
<?php $__env->stopSection(); ?>

<?php $__env->startSection('script'); ?>
    <!-- <script src="<?php echo e(asset('assets/js/jquery.dataTables.min.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/js/dataTables.bootstrap.min.js')); ?>"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            $('#example').DataTable();
        } );
    </script> -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>