<?php $__env->startSection('title','serveur'); ?>
<?php $__env->startSection('content'); ?>
<link href="library/bootstrap-5/bootstrap.min.css" rel="stylesheet" />
<script src="library/bootstrap-5/bootstrap.bundle.min.js"></script>
<script src="library/dselect.js"></script>

<?php if(session('status')): ?>
<div class="alert alert-success">
    <?php echo e((session('status'))); ?>

</div>

<?php endif; ?>
<div class="container">

    <div class="col-12">


        <div class="card card-primary">
            <div class="card-header">
              <h3 class="card-title">Modifier serveur</h3>
            </div>
            <!-- /.card-header -->
            <!-- form start -->
            <form action="<?php echo e(asset('update_serveur')); ?>" method="post">
                <?php echo csrf_field(); ?>
                <input type="hidden" value="<?php echo e($serveur->id); ?>" name="id">
                <input type="hidden">
                <div class="card-body">
                <div class="form-group">
                    <label for="">Code agence</label>
                    <input type="text" class="form-control" name="code_agence" value="<?php echo e($serveur->code_agence); ?>">
                  </div>
                  <div class="form-group">
                    <label for="">Libelle agence</label>
                    <input type="text" class="form-control" name="libelle_agence" placeholder="Libelle agence" value="<?php echo e($serveur->libelle_agence); ?>">
                  </div>
                  <div class="form-group">
                    <label for="">Type agence</label>
                    <input type="text" class="form-control" name="type_agence" placeholder="Type agence" value="<?php echo e($serveur->type_agence); ?>">
                  </div>
                  <div class="form-group">
                    <label for="">IP agence</label>
                    <input type="text" class="form-control" name="ip_agence" placeholder="IP agence" value="<?php echo e($serveur->ip_agence); ?>">
                  </div>
                  <div class="form-group">
                    <label for="">Base de données agence</label>
                    <input type="text" class="form-control" name="bd_agence" placeholder="Base de données agence" value="<?php echo e($serveur->bd_agence); ?>">
                  </div>
                  <div class="form-group">
                    <label for="">Login SA</label>
                    <input type="text" class="form-control" name="login_sa" placeholder="Login SA" value="<?php echo e($serveur->login_sa); ?>">
                  </div>
                  <div class="form-group">
                    <label for="">Mot de passe</label>
                    <input type="password" class="form-control" name="password" placeholder="Mot de passe">
                  </div>
                  <div class="form-group">
                    <label for="">PORT</label>
                    <input type="text" class="form-control" name="port" placeholder="PORT" value="<?php echo e($serveur->port); ?>">
                  </div>
                  <div class="form-group">
                    <label for="">COMPTE LIAISON</label>
                    <input type="text" class="form-control" name="compte_liaison" value="<?php echo e($serveur->compte_liaison); ?>" placeholder="COMPTE LIAISON">
                  </div>
                  <div class="form-group">
                    <label for="">COMPTE TRANSFERT</label>
                    <input type="text" class="form-control" name="compte_transfert" value="<?php echo e($serveur->compte_transfert); ?>" placeholder="COMPTE TRANSFERT">
                  </div>
                  <div class="form-group">
                    <label for="">SERVEUR MERE</label>
                    <select class="form-control select2bs4" name="mere_id">
                        <option value="">*<?php echo e(App\Models\Serveur::find($serveur->mere_id)->libelle_agence ?? "Selectionner un serveur mère"); ?>*</option>
                        <?php $__currentLoopData = $serveurs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $serveur): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <option value="<?php echo e($serveur->id); ?>"><?php echo e($serveur->libelle_agence); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <option value="0">Aucun serveur mère</option>
                        </select>
                  </div>

              </div>
                <!-- /.card-body -->

                <div class="card-footer">
                  <button type="submit" class="btn btn-primary">Modifier</button>
                </div>
              </form>
          </div>


</div>

<?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/edit_serveur.blade.php ENDPATH**/ ?>