<?php $__env->startSection('title', 'Temoignages'); ?>

<?php $__env->startSection('content'); ?>
    <div style="display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:20px;">
        <div>
            <h1>Temoignages</h1>
            <p class="muted">Affiches sur la page d'accueil, section « Ce que disent nos clients ».</p>
        </div>
        <a class="btn" href="<?php echo e(route('admin.testimonials.create')); ?>">Nouveau temoignage</a>
    </div>

    <div class="card" style="padding:0;overflow:hidden;">
        <table>
            <thead>
                <tr>
                    <th>Ordre</th>
                    <th>Tag</th>
                    <th>Citation</th>
                    <th>Auteur</th>
                    <th>Publie</th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <?php $__empty_1 = true; $__currentLoopData = $testimonials; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $t): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                    <tr>
                        <td><?php echo e($t->sort_order); ?></td>
                        <td><?php echo e($t->tag ?? '—'); ?></td>
                        <td><?php echo e(\Illuminate\Support\Str::limit($t->quote, 80)); ?></td>
                        <td><?php echo e($t->author_name); ?></td>
                        <td><?php echo e($t->is_published ? 'Oui' : 'Non'); ?></td>
                        <td><a href="<?php echo e(route('admin.testimonials.edit', $t)); ?>">Modifier</a></td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <tr>
                        <td colspan="6" style="color:#5f6b76;">Aucun temoignage.</td>
                    </tr>
                <?php endif; ?>
            </tbody>
        </table>
    </div>

    <div style="margin-top:20px;"><?php echo e($testimonials->links()); ?></div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Softsys\new_pirras\resources\views/admin/testimonials/index.blade.php ENDPATH**/ ?>