<?php $__env->startSection('content'); ?>
<section class="section light">
    <div class="container">
        <div class="page-header" style="margin-bottom: 40px; display: flex; justify-content: space-between; align-items: center;">
            <div>
                <h1 style="font-size: 3rem;">Manage Slides</h1>
                <p>Add, edit, or remove slides from the home page running slider.</p>
            </div>
            <a href="<?php echo e(route('slider.create')); ?>" class="button button-primary">+ Add New Slide</a>
        </div>

        <?php if(session('success')): ?>
            <div class="alert alert-success"><?php echo e(session('success')); ?></div>
        <?php endif; ?>

        <div class="blog-grid">
            <?php $__empty_1 = true; $__currentLoopData = $sliders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $slider): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                <article class="post-card">
                    <div class="post-card-image">
                        <img src="<?php echo e(asset('storage/' . $slider->image_path)); ?>" alt="<?php echo e($slider->title); ?>">
                    </div>
                    <div class="post-card-content">
                        <h2><?php echo e($slider->title); ?></h2>
                        <p><?php echo e($slider->subtitle); ?></p>
                        <div class="post-meta">
                            <span style="font-size: 0.85rem; color: #999;">Order: <?php echo e($slider->order); ?></span>
                            <div style="display: flex; gap: 15px;">
                                <a href="<?php echo e(route('slider.edit', $slider)); ?>" style="color: #00bcd4; font-weight: 700; text-decoration: none; font-size: 0.85rem; text-transform: uppercase;">Edit</a>
                                <form action="<?php echo e(route('slider.destroy', $slider)); ?>" method="POST" onsubmit="return confirm('Are you sure you want to delete this slide?')">
                                    <?php echo csrf_field(); ?>
                                    <?php echo method_field('DELETE'); ?>
                                    <button type="submit" style="background: none; border: none; color: #ff4d4d; cursor: pointer; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; padding: 0;">Delete</button>
                                </form>
                            </div>
                        </div>
                    </div>
                </article>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                <div class="empty-state" style="grid-column: 1 / -1;">
                    <div style="font-size: 4rem; margin-bottom: 20px;">🖼️</div>
                    <p>No slides added yet. Create your first slide to start the home page slider!</p>
                </div>
            <?php endif; ?>
        </div>
        
        <div style="margin-top: 40px; text-align: center;">
            <a href="<?php echo e(route('home')); ?>" class="button button-secondary">Back to Home</a>
        </div>
    </div>
</section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\Touchfoundation\resources\views/pages/slider-index.blade.php ENDPATH**/ ?>