<?php $__env->startSection('content'); ?>
<?php Fun::lang()?>
<div class="title-add">
    <div class="page-bar"> 
        <ul class="page-breadcrumb"> 
            <li> <a class="ng-binding" href="#"><i class="fa fa-dashboard"></i> Dashboard</a> </li>
            <li><a href="#">Manage Client Relationship</a></li>
        </ul> 
    </div>
</div>
<div class="page">
      <div class="top-content">
          <div class="row">
              <div class="col-sm-12 col-xs-12">
                  <div class="title-add">
                      <div class="pull-left">
                          <h3>Client Relationship</h3>
                      </div>
                  </div>
                      <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('Relationship-Create')): ?>
                          <div class="pull-right">
                              <a class="button_sm button_primary" href="<?php echo e(route('clients-relationship.create')); ?>"><span class="fa fa-plus"></span>  Create New</a>
                          </div>
                      <?php endif; ?>

              </div>
          </div>
          </div>
          <div class="box-body table-responsive">
            <table id="datatable_report_booking" class="table table-striped table-bordered table-hover nowrap">
              <thead>
                <tr>
                    <th>No</th>
                    <th>Full Name</th>
                    <th>Gender</th>
                    <th>DOB</th>
                    <th>Phone</th>
                    <th>Address</th>
                    <th>Action</th>
                </tr>
            </thead>
        </table>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('js'); ?>

<script type="text/javascript">
 $(document).ready(function(){
   $('#main-spinner').show();    
   $('#datatable_report_booking').DataTable({
     ordering: false,
     serverSide: true,
     ajax: "<?php echo e(route('datatable.get_client_relationship')); ?>",
     columns: [

     {data: 'DT_RowIndex'},
     {data: "clientship_fullname"},
     {data: "clientship_gender"},
     {data: "clientship_dob"},
     {data: "clientship_phone1"},
     {data: "address"},
     {data: "action"},

     ],  
     "initComplete": function(settings, json) {
      $('#main-spinner').hide();
  }        
});

   $.fn.dataTable.ext.errMode = 'throw';
});

</script>

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


<?php echo $__env->make('adminlte::page', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>