<?php $__env->startSection('title', 'All Slider '); ?>
<?php $__env->startSection('content'); ?>

    <div class="content-wrapper">
        <!-- Main content -->
        <section class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-12">

                        <div class="card shadow mt-5">

                            <div class="card-header">
                                <h3 class="card-title">Sliders List</h3>
                                <a href="<?php echo e(route('admin.sliders.create')); ?>">
                                    <button class="btn btn-primary custom_btn btn-sm float-right">
                                        <i class="fas fa-plus"></i>
                                        Add Slider
                                    </button>
                                </a>
                            </div>

                            <!-- /.card-header -->
                            <div class="card-body">
                                <table class="table table-bordered">
                                    <thead>
                                    <tr>
                                        <th>First Heading</th>
                                        <th>Second Heading</th>
                                        <th>Description</th>
                                        <th>Image</th>
                                        <th>Actions</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php $__currentLoopData = $sliders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $slider): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><?php echo e($slider->heading); ?></td>
                                            <td><?php echo e($slider->sub_heading); ?></td>
                                            <td><?php echo e(Str::limit($slider->description, 50)); ?></td>
                                            <td>
                                                <?php if($slider->getFirstMedia('slider_images')): ?>
                                                    <img src="<?php echo e($slider->getFirstMediaUrl('slider_images')); ?>" alt="Slider Image" width="100">
                                                <?php else: ?>
                                                    No Image
                                                <?php endif; ?>
                                            </td>
                                            <td>
                                                <a href="<?php echo e(route('admin.sliders.edit', $slider->id)); ?>" class="btn btn-warning btn-sm">Edit</a>
                                                <form action="<?php echo e(route('admin.sliders.destroy', $slider->id)); ?>" method="POST" style="display:inline;">
                                                    <?php echo csrf_field(); ?>
                                                    <?php echo method_field('DELETE'); ?>
                                                    <button type="submit" class="btn btn-danger btn-sm">Delete</button>
                                                </form>
                                            </td>
                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tbody>
                                </table>
                            </div>
                            <!-- /.card-body -->
                        </div>

                    </div>
                    <!-- /.col -->
                </div>
                <!-- /.row -->
            </div>
            <!-- /.container-fluid -->
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>

    <script>

















































    </script>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin-layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/vagrant/projects/upsence/resources/views/admin/slider/index.blade.php ENDPATH**/ ?>