<?php $__env->startSection('title', 'Testimonials'); ?>
<?php $__env->startSection('content'); ?>
<div class="action-bar">
    <span><?php echo e($testimonials->total()); ?> testimonials</span>
    <a href="<?php echo e(route('admin.testimonials.create')); ?>" class="btn btn-primary">+ New Testimonial</a>
</div>
<div class="card">
    <table>
        <tr><th>Name</th><th>Position</th><th>Rating</th><th>Order</th><th>Active</th><th>Actions</th></tr>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $testimonials; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $t): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
        <tr>
            <td><strong><?php echo e($t->name); ?></strong></td>
            <td class="text-muted"><?php echo e($t->position ?? '—'); ?></td>
            <td><?php echo e(str_repeat('★', $t->rating)); ?><?php echo e(str_repeat('☆', 5-$t->rating)); ?></td>
            <td><?php echo e($t->order); ?></td>
            <td><?php echo $t->is_active ? '<span style="color:#6fcf97">Yes</span>' : '<span style="color:#e74c3c">No</span>'; ?></td>
            <td class="inline-flex">
                <a href="<?php echo e(route('admin.testimonials.edit', $t)); ?>" class="btn btn-primary btn-sm">Edit</a>
                <form action="<?php echo e(route('admin.testimonials.destroy', $t)); ?>" method="POST" onsubmit="return confirm('Delete?')">
                    <?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?>
                    <button type="submit" class="btn btn-danger btn-sm">Delete</button>
                </form>
            </td>
        </tr>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
    </table>
    <div class="pagination"><?php echo e($testimonials->links()); ?></div>
</div>
<?php $__env->stopSection(); ?>

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