<?php $__env->startSection('content'); ?>
    <div class="pagetitle">
        <h1>Dashboard</h1>
        <nav>
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="index.html">Home</a></li>
                <li class="breadcrumb-item">Dashboard</li>
                <li class="breadcrumb-item active"><?php echo e($PageTitle); ?></li>
            </ol>
        </nav>
    </div>

    <section class="section dashboard">
        <div class="row">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-body mt-3">
                        <a href="<?php echo e(route('admin.create-slider')); ?>">
                            <button type="button" class="btn btn-primary">Add Header Content</button>
                        </a>

                        <table class="table table-striped mt-4 align-middle">
                            <thead>
                                <tr>
                                    <th scope="col">#</th>
                                    <th scope="col">Title</th>
                                    <th scope="col">Video</th>
                                    <th scope="col">Type</th>
                                    <th scope="col">Description</th>
                                    <th scope="col">Action</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $__empty_1 = true; $__currentLoopData = $sliders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $slider): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                    <tr>
                                        <th scope="row"><?php echo e($loop->iteration); ?></th>
                                        <td><?php echo e($slider->title); ?></td>
                                        <td>
                                            <?php if($slider->youtube_url): ?>
                                                <a href="<?php echo e($slider->youtube_url); ?>" target="_blank">Open Video</a>
                                            <?php else: ?>
                                                <span class="text-muted">No video</span>
                                            <?php endif; ?>
                                        </td>
                                        <td><?php echo e(ucfirst($slider->type)); ?></td>
                                        <td><?php echo e(\Illuminate\Support\Str::limit($slider->description, 80)); ?></td>
                                        <td>
                                            <a href="<?php echo e(route('admin.slider.edit', $slider->id)); ?>" class="mr-1" title="Edit">
                                                <img src="<?php echo e(asset('assets/img/edit.png')); ?>" alt="">
                                            </a>

                                            <a href="#" class="ms-2 deleteItem" data-formid="delete_row_form_<?php echo e($slider->id); ?>">
                                                <img src="<?php echo e(asset('assets/img/trash.png')); ?>" alt="">
                                            </a>
                                            <form action="<?php echo e(route('admin.slider.destroy', $slider->id)); ?>" method="post" id="delete_row_form_<?php echo e($slider->id); ?>">
                                                <?php echo csrf_field(); ?>
                                                <?php echo e(method_field('DELETE')); ?>

                                                <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                                            </form>
                                        </td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                    <tr>
                                        <td colspan="6" class="text-center text-muted">No header content found.</td>
                                    </tr>
                                <?php endif; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </section>
<?php $__env->stopSection(); ?>

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