<?php if (isset($component)) { $__componentOriginal3f3781c4a8379d81811d15e49692f257 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal3f3781c4a8379d81811d15e49692f257 = $attributes; } ?>
<?php $component = App\View\Components\DeshboardLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('Deshboard-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\DeshboardLayout::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>

    <!-- Table Section -->
    <div class=" py-10 ">
        <!-- Card -->
        <div class="flex flex-col">
            <div class="-m-1.5 overflow-x-auto">
                <div class="p-1.5 min-w-full inline-block align-middle">
                    <div
                        class="bg-white border border-gray-200 rounded-xl shadow-sm overflow-hidden dark:bg-slate-900 dark:border-gray-700">
                        <!-- Header -->
                        <div
                            class="px-6 py-4 grid gap-3 md:flex md:justify-between md:items-center border-b border-gray-200 dark:border-gray-700">
                            <div>
                                <h2 class="text-xl font-semibold text-gray-800 dark:text-gray-200">
                                    Slider
                                </h2>
                                <p class="text-sm text-gray-600 dark:text-gray-400">
                                    Add slide, edit and more.
                                </p>
                            </div>

                            <div>
                                <div class="inline-flex gap-x-2">

                                    <a class="py-2 px-3 inline-flex items-center gap-x-2 text-sm font-semibold rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600"
                                        href="#" data-hs-overlay="#slide-create-model">
                                        <svg class="flex-shrink-0 w-3 h-3" xmlns="http://www.w3.org/2000/svg"
                                            width="16" height="16" viewBox="0 0 16 16" fill="none">
                                            <path d="M2.63452 7.50001L13.6345 7.5M8.13452 13V2" stroke="currentColor"
                                                stroke-width="2" stroke-linecap="round" />
                                        </svg>
                                        Add Slide
                                    </a>
                                </div>
                            </div>
                        </div>
                        <!-- End Header -->

                        <!-- Table -->
                        <table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
                            <thead class="bg-gray-50 dark:bg-slate-800">
                                <tr>
                                    <th class="ps-6 py-3 text-start w-60">
                                        <div class="flex items-center ">
                                            <span
                                                class="text-xs font-semibold uppercase tracking-wide text-gray-800 dark:text-gray-200">
                                                Image
                                            </span>
                                        </div>
                                    </th>


                                    <th scope="col" class="px-6 py-3 text-start w-[50%]">
                                        <div class="flex items-center gap-x-2">
                                            <span
                                                class="text-xs font-semibold uppercase tracking-wide text-gray-800 dark:text-gray-200">
                                                Content
                                            </span>
                                        </div>
                                    </th>
                                    <th scope="col" class="px-6 py-3 text-start w-60">
                                        <div class="flex  gap-x-2">
                                            <span
                                                class="text-xs font-semibold uppercase tracking-wide text-gray-800 dark:text-gray-200">
                                                Button
                                            </span>
                                        </div>
                                    </th>
                                    <th scope="col" class="px-6 py-3 text-start">
                                        <div class="flex items-center gap-x-2">
                                            <span
                                                class="text-xs font-semibold uppercase tracking-wide text-gray-800 dark:text-gray-200">
                                                Action
                                            </span>
                                        </div>
                                    </th>

                                    <th scope="col" class="px-6 py-3 text-end"></th>
                                </tr>
                            </thead>

                            <tbody class="divide-y divide-gray-200 dark:divide-gray-700">
                                <?php $__currentLoopData = $sliders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $slide): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td class="h-px w-px whitespace-nowrap">
                                            <div class="ps-6 py-3">
                                                <img class="w-50 h-40" src="<?php echo e(asset('images/' . $slide->image)); ?>"
                                                    alt="Image Description">
                                            </div>
                                        </td>
                                        <td class="h-px w-px whitespace-nowrap">
                                            <div class="ps-6 lg:ps-3 xl:ps-0 pe-6 py-3">
                                                <div class=" p-3  w-full h-40 overflow-auto">
                                                    <div class="grow">
                                                        <?php echo $slide->content; ?>

                                                    </div>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="h-px w-72 whitespace-nowrap">
                                            <div class="px-6 py-3">
                                                <span
                                                    class="block text-sm font-semibold text-gray-800 dark:text-gray-200"><?php echo e($slide->btn_name); ?></span>
                                                <span class="block text-sm text-gray-500"><?php echo e($slide->btn_url); ?></span>
                                            </div>
                                        </td>

                                        <td class="h-px w-px whitespace-nowrap">
                                            <div class="px-6 py-1.5">
                                                <a data="<?php echo e($slide); ?>" id="update"
                                                    class="inline-flex no-underline items-center gap-x-1 text-sm text-blue-600 decoration-2 hover:underline font-medium dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600"
                                                    href="#" data-hs-overlay="#slide-edit-model">
                                                    <i class="fa-solid fa-user-pen  "></i>
                                                </a>
                                                <form action="<?php echo e(route('slider.destroy', $slide->id)); ?>"
                                                    class="inline-block" method="post" id="delete">
                                                    <?php echo method_field('delete'); ?>
                                                    <?php echo csrf_field(); ?>
                                                    <button type="submit"
                                                        class="inline-flex no-underline items-center gap-x-1 text-sm text-blue-600 decoration-2 hover:underline font-medium dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600">
                                                        <i class="text-red-700 fa-solid fa-trash-can"></i>
                                                    </button>
                                                </form>

                                            </div>
                                        </td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                        </table>
                        <!-- End Table -->
                    </div>
                </div>
            </div>
        </div>
        <!-- End Card -->
    </div>
    <!-- End Table Section -->
    <?php echo $__env->make('backend.pages.sliders.model.slide-create-model', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <?php echo $__env->make('backend.pages.sliders.model.slide-edit-model', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>


    <?php if($message = Session::get('success')): ?>
        <?php if (isset($component)) { $__componentOriginalc7ecd09853420589bd35ad19c48b8af4 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc7ecd09853420589bd35ad19c48b8af4 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.flash-error','data' => ['message' => $message,'type' => 'success']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.flash-error'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['message' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($message),'type' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('success')]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc7ecd09853420589bd35ad19c48b8af4)): ?>
<?php $attributes = $__attributesOriginalc7ecd09853420589bd35ad19c48b8af4; ?>
<?php unset($__attributesOriginalc7ecd09853420589bd35ad19c48b8af4); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc7ecd09853420589bd35ad19c48b8af4)): ?>
<?php $component = $__componentOriginalc7ecd09853420589bd35ad19c48b8af4; ?>
<?php unset($__componentOriginalc7ecd09853420589bd35ad19c48b8af4); ?>
<?php endif; ?>
    <?php endif; ?>

 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal3f3781c4a8379d81811d15e49692f257)): ?>
<?php $attributes = $__attributesOriginal3f3781c4a8379d81811d15e49692f257; ?>
<?php unset($__attributesOriginal3f3781c4a8379d81811d15e49692f257); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal3f3781c4a8379d81811d15e49692f257)): ?>
<?php $component = $__componentOriginal3f3781c4a8379d81811d15e49692f257; ?>
<?php unset($__componentOriginal3f3781c4a8379d81811d15e49692f257); ?>
<?php endif; ?>

<?php if (isset($component)) { $__componentOriginal5ac6c2f371cc0db095a19bf5670c5d41 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5ac6c2f371cc0db095a19bf5670c5d41 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.server-error','data' => ['formId' => 'slide-create','requestForm' => 'Slider\SlideStoreRequest']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.server-error'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['form_id' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('slide-create'),'request_form' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('Slider\SlideStoreRequest')]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5ac6c2f371cc0db095a19bf5670c5d41)): ?>
<?php $attributes = $__attributesOriginal5ac6c2f371cc0db095a19bf5670c5d41; ?>
<?php unset($__attributesOriginal5ac6c2f371cc0db095a19bf5670c5d41); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5ac6c2f371cc0db095a19bf5670c5d41)): ?>
<?php $component = $__componentOriginal5ac6c2f371cc0db095a19bf5670c5d41; ?>
<?php unset($__componentOriginal5ac6c2f371cc0db095a19bf5670c5d41); ?>
<?php endif; ?>
<?php if (isset($component)) { $__componentOriginal5ac6c2f371cc0db095a19bf5670c5d41 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal5ac6c2f371cc0db095a19bf5670c5d41 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.backend.server-error','data' => ['formId' => 'slide-edit','requestForm' => 'Slider\SlideUpdateRequest']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('backend.server-error'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['form_id' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('slide-edit'),'request_form' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute('Slider\SlideUpdateRequest')]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal5ac6c2f371cc0db095a19bf5670c5d41)): ?>
<?php $attributes = $__attributesOriginal5ac6c2f371cc0db095a19bf5670c5d41; ?>
<?php unset($__attributesOriginal5ac6c2f371cc0db095a19bf5670c5d41); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal5ac6c2f371cc0db095a19bf5670c5d41)): ?>
<?php $component = $__componentOriginal5ac6c2f371cc0db095a19bf5670c5d41; ?>
<?php unset($__componentOriginal5ac6c2f371cc0db095a19bf5670c5d41); ?>
<?php endif; ?>
<script>
    $(document).on('submit', '#delete', function() {
        let con = confirm('Are you sure to Delete it')
        if (con) {

            return true;

        } else {
            return false;
        }

    })
</script>
<?php /**PATH /home/khawajashipping/mrglogisticsbd.com/resources/views/backend/pages/sliders/index.blade.php ENDPATH**/ ?>