

<?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">Create Virtual</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="<?php echo e(route('virtuals.store')); ?>" method="POST">
                        <?php echo csrf_field(); ?>
                        <div class="form-group row">
                            <label for="System" class="col-md-4 col-form-label text-md-right">Choose system</label>
                            <div class="col-md-6">
                                <select name="system" id="system" class="form-control">                             
                                    <?php $__empty_1 = true; $__currentLoopData = $systems; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $system): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                        <option value=<?php echo e($system->name); ?>><?php echo e($system->name); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                        <p>No systems to choose from</p>
                                    <?php endif; ?>
                                </select>
                                <br>
                            </div>
                            <label for="System" class="col-md-4 col-form-label text-md-right">Mem size</label>
                            <div class="col-md-6">
                                <table>
                                    <tr>
                                      <td>
                                          <input name="memory" id="memory" type="number" size="3" min="1" max="100"/>
                                      </td>
                                      <td>GB</td>
                                    </tr>
                                  </table>
                                <p style="color: red"><?php $__errorArgs = ['memory'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?></p>
                            </div>
                            
                            <label for="System" class="col-md-4 col-form-label text-md-right">Disk size</label>
                            <div class="col-md-6">
                                <table>
                                    <tr>
                                      <td>
                                          <input name="disk" id="disk" type="number" size="3" min="1" max="500"/>
                                      </td>
                                      <td>GB</td>
                                    </tr>
                                  </table>
                                <p style="color: red"><?php $__errorArgs = ['disk'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?></p>
                            </div>
                            <label for="System" class="col-md-4 col-form-label text-md-right">Number of CPU</label>
                            <div class="col-md-6">
                                <table>
                                    <tr>
                                      <td>
                                          <input name="cpu" id="cpu" type="number" size="3" min="1" max="100"/>
                                      </td>
                                      <td>CPU</td>
                                    </tr>
                                  </table>
                                <p style="color: red"><?php $__errorArgs = ['cpu'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <?php echo e($message); ?> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?></p>
                            </div>
                        </div>
                        <div class="form-group row mb-0">
                            <div class="col-md-8 offset-md-4">
                                <button type="submit" class="btn btn-primary">
                                    Create
                                </button>
                            </div>
                        </div>
                    </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/create.blade.php ENDPATH**/ ?>