

<?php $__env->startSection('content'); ?>
<div class="container-fluid">
  <div class="fade-in">
    <div class="row">
      <div class="col-sm-12">
        <div class="card">
          <div class="card-header"><h4>Consultants List</h4></div>
            <div class="card-body">
                <br>
                <table class="table table-hover datatable">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>license#</th>
                            <th>Firm Name</th>
                            <th>Ownership Type</th>
                            <th>Validity</th>
                            <th>Phone #</th>
                            <th>Email</th>
                            <th>FAX</th>
                            <th>NTN</th>
                            <th>Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php if(!empty($consultants)): ?>
                           <?php if(!$consultants->isEmpty()): ?> 
                            <?php $cnt = 1; ?>
                                <?php $__currentLoopData = $consultants; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td><?php echo e($cnt++); ?></td>
                                        <td><?php echo e($row->license_no); ?></td>
                                        <td><?php echo e($row->firm_name); ?></td>
                                        <td><?php echo e($row->ownership_type); ?></td>
                                        <td><?php echo e($row->validity); ?></td>
                                        <td><?php echo e($row->phone); ?></td>
                                        <td><?php echo e($row->email); ?></td>
                                        <td><?php echo e($row->fax); ?></td>
                                        <td><?php echo e($row->ntn); ?></td>
                                        <td><a href="<?php echo e(route('client_consultant.detail',$row->license_no)); ?>" class="btn btn-success btn-sm"> Detail</a></td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php endif; ?>    
                        <?php endif; ?>    
                    </tbody>
                </table>

            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('javascript'); ?>
    <script>
        $(document).ready( function () {
            $('.datatable').DataTable();
        } );
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('dashboard.base', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/pecdev/public_html/pec_laravel_v2/resources/views/dashboard/clients/consultants.blade.php ENDPATH**/ ?>