<?php $__env->startSection('content'); ?>
    <div class="panel panel-primary">
        <div class="panel-heading">Správa vlastníků ubytovacích zařízení</div>
        <div class="panel-body">
            <?php echo $__env->make('flash::message', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
            <div class="table-responsive">
                <table class="table">
                    <tr>
                        <th>Vlastník</th>
                        <th>E-mail</th>
                        <th>Telefon</th>
                        <th>Název ubytování</th>
                        <th>Povolení</th>
                        <th>Odstranit</th>
                    </tr>
                    <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($user->name); ?> <?php echo e($user->lname); ?></td>
                            <td><?php echo e($user->email); ?></td>
                            <td><?php echo e($user->phone_number); ?></td>
                            <td><?php echo e($user->accommodation_name); ?></td>
                            <td><?php echo e(Form::open(array('method'=>'post', 'route' => array('deleteUser', $user->id)))); ?>

                                <?php echo e(Form::submit('Odstranit', array('class'=>'btn btn-primary'))); ?>

                                <?php echo e(Form::close()); ?>

                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </table>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>