<?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"><?php echo e(__('Created requests for virtual')); ?></div>
                <div class="card-body">
                    <table class="table">
                        <thead>
                          <tr>
                            <th scope="col">Creator</th>
                            <th scope="col">System</th>
                            <th scope="col">Actions</th>
                          </tr>
                        </thead>
                        <tbody>
                        <?php $__empty_1 = true; $__currentLoopData = $virtualszero; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $virtual): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <?php if($virtual->ready == '0'): ?>                           
                                <tr>
                                    <td><?php echo e($virtual->user_name); ?></td>
                                    <td><?php echo e($virtual->system); ?></td>
                                    <td>
                                        <a href="<?php echo e(route('virtuals.edit', $virtual->id)); ?>"><button type="button" class="btn btn-primary float-left">Edit</button></a>
                                        <form action="<?php echo e(route('virtuals.destroy', $virtual)); ?>" method="POST" class="float-left">
                                            <?php echo csrf_field(); ?>
                                            <?php echo e(method_field('DELETE')); ?>

                                            <button type="submit" class="btn btn-warning">Delete</button>
                                        </form>                                    
                                    </td>
                                </tr>
                            <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <tr>
                            <td>No Virtuals</td>                                
                        </tr>
                        <?php endif; ?>
                        </tbody>
                    </table>
                </div>

                <?php if(count($virtualsone)>0 ): ?>
                <div class="card-header"><?php echo e(__('Waiting virtuals')); ?></div>
                <div class="card-body">
                    <table class="table">
                        <thead>
                          <tr>
                            <th scope="col">Creator</th>
                            <th scope="col">System</th>
                            <th scope="col">Actions</th>
                          </tr>
                        </thead>
                        <tbody>
                        <?php $__empty_1 = true; $__currentLoopData = $virtualsone; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $virtual): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <?php if($virtual->ready == '1'): ?>    
                                <tr>
                                    <td><?php echo e($virtual->user_name); ?></td>
                                    <td><?php echo e($virtual->system); ?></td>
                                    <td>
                                        <form action="<?php echo e(route('virtuals.destroy', $virtual)); ?>" method="POST" class="float-left">
                                            <?php echo csrf_field(); ?>
                                            <?php echo e(method_field('DELETE')); ?>

                                            <button type="submit" class="btn btn-warning">Delete</button>
                                        </form>                                    
                                    </td>
                                </tr>
                            <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                            <tr>
                                <td>No Virtuals</td>                                
                            </tr>
                        <?php endif; ?>
                        </tbody>
                    </table>                    
                </div>
                <?php endif; ?>    

                <?php if(count($virtualstwo)>0 ): ?>
                <div class="card-header"><?php echo e(__('Ready virtuals')); ?></div>
                <div class="card-body">
                    <table class="table">
                        <thead>
                          <tr>
                            <th scope="col">Creator</th>
                            <th scope="col">System</th>
                            <th scope="col">Actions</th>
                          </tr>
                        </thead>
                        <tbody>
                        <?php $__empty_1 = true; $__currentLoopData = $virtualstwo; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $virtual): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <?php if($virtual->ready == '2'): ?>    
                                <tr>
                                    <td><?php echo e($virtual->user_name); ?></td>
                                    <td><?php echo e($virtual->system); ?></td>
                                    <td>
                                        <form action="/virtuals/<?php echo e($virtual->id); ?>/requestdelete" method="GET">
                                            <?php echo csrf_field(); ?>
                                            <button type="submit" class="btn btn-warning float-left">Request delete</button>
                                        </form>                                
                                    </td>
                                </tr>
                            <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                            <tr>
                                <td>No Virtuals</td>                                
                            </tr>
                        <?php endif; ?>
                        </tbody>
                    </table>                    
                </div>
                <?php endif; ?>    

                <?php if(count($virtualsthree)>0 ): ?>
                <div class="card-header"><?php echo e(__('Virtuals waiting for delete')); ?></div>
                <div class="card-body">
                    <table class="table">
                        <thead>
                          <tr>
                            <th scope="col">Creator</th>
                            <th scope="col">System</th>
                            <th scope="col">Actions</th>
                          </tr>
                        </thead>
                        <tbody>
                        <?php $__empty_1 = true; $__currentLoopData = $virtualsthree; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $virtual): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <?php if($virtual->ready == '3'): ?>    
                                <tr>
                                    <td><?php echo e($virtual->user_name); ?></td>
                                    <td><?php echo e($virtual->system); ?></td>
                                    <td>
                                        <form action="/virtuals/<?php echo e($virtual->id); ?>/canceldelete" method="GET">
                                            <?php echo csrf_field(); ?>
                                            <button type="submit" class="btn btn-secondary float-left">Cancel delete</button>
                                        </form>                                
                                    </td>
                                </tr>
                            <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                            <tr>
                                <td>No Virtuals</td>                                
                            </tr>
                        <?php endif; ?>
                        </tbody>
                    </table>                    
                </div>
                <?php endif; ?>    
            </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 G:\Skola\dipl\virtual\resources\views/home.blade.php ENDPATH**/ ?>