

<?php if(sizeof($parametres) > 0): ?>
    <table class="table table-striped table-bordered">
        <thead>
        <tr>
            <th>ID</th>
            <th>Nom</th>
            <th>Description</th>
            <?php if($has_enfant): ?>
                <th><?php echo e(ucfirst($route_enfant)); ?></th>
            <?php endif; ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(array('edit_parametre', 'delete_parametre'))): ?>
                <th>Actions</th>
            <?php endif; ?>
        </tr>
        </thead>
        <tbody>
            <?php $__currentLoopData = $parametres; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td style="width: 5%"><?php echo e($p->id); ?></td>
                <td><?php echo e($p->nom); ?></td>
                <td>
                    <?php if(isset($p->description)): ?>
                        <?php echo e($p->description); ?>

                    <?php else: ?>
                        -
                    <?php endif; ?>
                </td>
                <?php if($has_enfant): ?>
                    <td>
                        <a class="btn btn-outline-info" href="<?php echo e(route($route_enfant . '.index', isset($parametres_url) ? array_merge($parametres_url, array($p->id)) : $p->id)); ?>"><?php echo e(ucfirst($route_enfant)); ?></a>
                    </td>
                <?php endif; ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(array('edit_parametre', 'delete_parametre'))): ?>
                    <td style="width: 10%">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('edit_parametre')): ?>
                            <a class="btn btn-outline-primary" href="<?php echo e(route($route . '.edit', 
                                isset($parametres_url) ? array_merge($parametres_url, array($p->id)) : $p->id)); ?>"
                                data-toggle="tooltip" data-placement="top" title="Editer">
                                <i class="fas fa-pencil-alt"></i>
                            </a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('delete_parametre')): ?>
                            <form class="inline-form-table" action="<?php echo e(route($route . '.destroy', isset($parametres_url) ? array_merge($parametres_url, array($p->id)) : $p->id)); ?>" method="POST">
                                <?php echo csrf_field(); ?>
                                <?php echo e(method_field('DELETE')); ?>

                                <button type="submit" class="btn btn-outline-danger"
                                    data-toggle="tooltip" data-placement="top" title="Supprimer">
                                    <i class="fas fa-trash-alt"></i>
                                </button>
                            </form>
                        <?php endif; ?>
                    </td>
                <?php endif; ?>
            </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
    </table>

    <?php echo e($parametres->links("pagination::bootstrap-4")); ?>

<?php else: ?>
    <div class="pt-2">
        <h4>Pas de données disponible.</h4>
    </div>
<?php endif; ?>
<?php /**PATH /var/www/html/resources/views/parametres/commons/table.blade.php ENDPATH**/ ?>