

<?php $__env->startSection('content'); ?>
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">Set server</div>

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

                        </div>
                    <?php endif; ?>
                    <form action="/virtuals/<?php echo e($virtual->id); ?>/setnetwork" method="get">
                        <?php echo csrf_field(); ?>
                        <div class="form-group row">
                            <label for="Newserver" class="col-md-4 col-form-label text-md-right">Server</label>
                            <div class="col-md-6">                            
                                <select name="newserver" id="newserver" class="form-control">  
                                    <?php $__empty_1 = true; $__currentLoopData = $servers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $server): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                        <option <?php if( $virtual->server_id==$server->id){ echo "selected"; } ?> value=<?php echo e($server->ip); ?>><?php echo e($server->ip); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                        <p>No systems to choose from</p>
                                    <?php endif; ?>                                
                                </select>
                                <br>
                            </div>
                        </div>
                        <button type="submit" class="btn btn-primary">
                            Update
                        </button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\virtual\resources\views/virtuals/editserver.blade.php ENDPATH**/ ?>