<?php $__env->startSection('title', 'Features'); ?>
<?php $__env->startSection('content'); ?>
<div class="action-bar">
    <span><?php echo e($features->total()); ?> features</span>
    <a href="<?php echo e(route('admin.features.create')); ?>" class="btn btn-primary">+ New Feature</a>
</div>
<div class="card">
    <table>
        <tr><th>Image</th><th>Title</th><th>Icon</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 = $features; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $feature): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
        <tr>
            <td>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($feature->image): ?>
                    <img src="<?php echo e(asset('storage/'.$feature->image)); ?>" style="width:40px;height:auto;border-radius:4px" alt="<?php echo e($feature->title); ?>">
                <?php elseif($feature->icon): ?>
                    <span style="font-size:1.5rem"><?php echo e($feature->icon); ?></span>
                <?php else: ?>
                    <span class="text-muted">—</span>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </td>
            <td><strong><?php echo e($feature->title); ?></strong></td>
            <td class="text-muted"><?php echo e($feature->icon ?? '—'); ?></td>
            <td><?php echo e($feature->order); ?></td>
            <td><?php echo $feature->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.features.edit', $feature)); ?>" class="btn btn-primary btn-sm">Edit</a>
                <form action="<?php echo e(route('admin.features.destroy', $feature)); ?>" method="POST" onsubmit="return confirm('Delete this feature?')">
                    <?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($features->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/features/index.blade.php ENDPATH**/ ?>