<?php $__env->startSection('title','NEKA CAECE'); ?>
<?php $__env->startSection('content'); ?>
<h3 align="center"> SERVEURS</h3>

<section class="content">
    <div class="container-fluid">
      <div class="row">
        <div class="col-12">
          <div class="card">
            <div class="card-header">
              <h3 class="card-title">Liste des serveurs</h3>
            </div>
            <div class="card-body">
                <table id="example1" class="table table-bordered table-striped">
                    <thead>
                    <tr>
                      <th>#</th>
                      <th>ID</th>
                      <th>Code agence</th>
                      <th>Libelle agence</th>
                      <th>Type agence</th>
                      <th>IP agence</th>
                      <th>Base de données agence</th>
                      <th>Login SA</th>
                      <th>PORT</th>
                      <th>COMPTE LIAISON</th>
                      <th>COMPTE TRANSFERT</th>
                      <th>SERVEUR MERE</th>
                      <th>Action</th>
                    </tr>
                    </thead>
                    <tbody>

                      <?php $__empty_1 = true; $__currentLoopData = $serveur; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $u): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                      <tr>
                        <td><input type="checkbox"></td>
                        <td><?php echo e($u->id); ?></td>
                        <td><?php echo e($u->code_agence); ?></td>
                        <td><?php echo e($u->libelle_agence); ?></td>
                        <td><?php echo e($u->type_agence); ?></td>
                        <td><?php echo e($u->ip_agence); ?></td>
                        <td><?php echo e($u->bd_agence); ?></td>
                        <td><?php echo e($u->login_sa); ?></td>
                        <td><?php echo e($u->port); ?></td>
                        <td><?php echo e($u->compte_liaison); ?></td>
                        <td><?php echo e($u->compte_transfert); ?></td>
                        <td><?php echo e(App\Models\Serveur::find($u->mere_id)->libelle_agence ?? "-"); ?></td>
                        <td style="width: 200px">
                          <a href="<?php echo e(asset('edit_serveur/'.$u->id)); ?>" class="btn bg-gradient-primary" ><i class="fas fa-edit"></i></a>
                          <button class="btn bg-gradient-danger" onclick="delete_typo<?php echo e($u->id); ?>()"><i class="fas fa-trash"></i></button>

                        </td>
                      </tr>


                      <script type="text/javascript">
                        function delete_typo<?php echo e($u->id); ?>(){
                          if(confirm("Voulez-vous vraiment supprimer cette serveur!"))
                            location.href='<?php echo e(url("/delete_serveur/$u->id")); ?>';
                        }




                      </script>




                      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>

                      <?php endif; ?>


                    </tbody>
                    <tfoot>
                        <tr>
                            <th>#</th>
                            <th>ID</th>
                            <th>Code agence</th>
                            <th>Libelle agence</th>
                            <th>Type agence</th>
                            <th>IP agence</th>
                            <th>Base de données agence</th>
                            <th>Login SA</th>
                            <th>PORT</th>
                            <th>COMPTE LIAISON</th>
                            <th>COMPTE TRANSFERT</th>
                            <th>SERVEUR MERE</th>
                            <th>Action</th>
                          </tr>
                    </tfoot>
                  </table>
    </div>
</div>
        </div>
      </div>
    </div>
</section>

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

<?php echo $__env->make('admin.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\api_web_orange_caece\resources\views/admin/liste_serveur.blade.php ENDPATH**/ ?>