<?php $__env->startSection('content'); ?>
<div class="container contingut">
    <div class="row">
        <div class="col-md-10 col-md-offset-1">
            <div class="panel panel-default">
                <div class="panel-heading"><h4>Llista d'usuaris</h4>
                </div>
                <div class="panel-body">
                </div>
                    <div class="panel-heading">
                        <table class="table table-striped">
                            <thead>
                                <tr>
                                    <th>Nom</th>
                                    <th>Email</th>
                                    <th>Data alta</th>
                                    <th></th>
                                </tr>
                            </thead>
                            <tbody>
                            <?php foreach($User as $key => $usr): ?>
                                <tr class="success" id="<?php echo e($usr->id); ?>">
                                    <td>
                                        <?php echo e($usr->name); ?>

                                    </td>
                                    <td>
                                        <?php echo e($usr->email); ?>

                                    </td>
                                    <td class="data">
                                        <?php echo e($usr->created_at); ?>

                                    </td>

                                    <td>
                                        <label id="borrarUsuari">
                                            <button type="submit" class="btn btn-danger btn-sm" value="<?php echo e($usr->id); ?>"
                                                    data-content="Eliminar definitivament l'acces" title="Eliminar" data-toggle="popover" data-trigger="hover">
                                                <i class="glyphicon glyphicon-remove"> Eliminar </i>
                                            </button>
                                        </label>
                                    </td>
                                </tr>
                            <?php endforeach; ?>
                            </tbody>
                        </table>
                    </div>
             </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>


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