
<?php $__env->startSection('title'); ?>
View Sliders
<?php $__env->stopSection(); ?>
<?php $__env->startSection('style_css'); ?>
<style>
    .back{
        text-align:end;
        font-size:20px;
    }
</style>
    <!-- DataTables -->
    <link href="<?php echo e(asset('dashboard_assets/plugins/datatables/dataTables.bootstrap4.min.css')); ?>" rel="stylesheet" type="text/css" />
    <link href="<?php echo e(asset('dashboard_assets/plugins/datatables/buttons.bootstrap4.min.css')); ?>" rel="stylesheet" type="text/css" />

    <!-- Responsive datatable examples -->
    <link href="<?php echo e(asset('dashboard_assets/plugins/datatables/responsive.bootstrap4.min.css')); ?>" rel="stylesheet" type="text/css" />
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="content">
<!-- === BradeCumb  ==== --> 
    <div class="page-title-box">
        <div class="row align-items-center ">
            <div class="col-md-8">
                <div class="page-title-box">
                    <!-- <h4 class="page-title">Dashboard</h4> -->
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="<?php echo e(url('home')); ?>">Home</a></li>
                        <li class="breadcrumb-item"><a href="<?php echo e(url('create_slider')); ?>">Add Slider</a></li>
                        <li class="breadcrumb-item active">All Slider</li>
                    </ol>
                </div>
            </div>
        </div>
    </div>
<!-- === BradeCumb  ==== -->
  <!-- Start row --> 
    <div class="row">
    <?php if(session('success')): ?>
    <div class="alert alert-success alert-dismissible fade show" role="alert">
        <strong><?php echo e(session('success')); ?></strong>
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
    </div>
    <?php endif; ?>
        <div class="col-12">
            <div class="card">
                <div class="card-header">
                    <div class="row">
                        <div class="col-lg-6">
                            <p class="mt-0 header-title">View Sliders</p>
                        </div>
                        <div class="col-lg-6 back">
                            <a href="<?php echo e(url('create_slider')); ?>"><i class="fas fa-plus-square"></i></a>
                        </div>
                    </div>
                </div>

                <div class="card-body">
                    <!-- <h4 class="mt-0 header-title">Buttons example</h4> -->
                <div class="table-responsive">
                    <table id="datatable-buttons" class="table table-striped table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
                        <thead>
                            <tr>
                                <th>SL NO</th>
                                <th>Name</th>
                                <th>Description</th>
                                <th>Image</th>
                                <th>Status</th>
                                <th>Action</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $i = 1; ?>
                            <?php $__currentLoopData = $sliders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($i); ?></td>
                                <td><?php echo e($product->product_name); ?></td>
                                <td><?php echo e(\Illuminate\Support\Str::words($product->short_description,10,'....')); ?></td>
                                <td><img src="<?php echo e(asset('uploads/product/')); ?>/<?php echo e($product->image); ?>" width="80px;" alt=""></td>
                                <td>
                                    <?php if($product->status == 1): ?>
                                        <a href="<?php echo e(url('active_slider')); ?>/<?php echo e($product->id); ?>"><span class="badge badge-info">Active</span></a>
                                    <?php else: ?>
                                        <a href="<?php echo e(url('active_slider')); ?>/<?php echo e($product->id); ?>"><span class="badge badge-danger">Deactive</span></a>
                                    <?php endif; ?>
                                </td>
                                <td>
                                    <a style="font-size:20px; margin-right:15px;" href="<?php echo e(url('edit_slider')); ?>/<?php echo e($product->id); ?>"><i class="fas fa-edit"></i></a>
                                    <a style="font-size:20px;" href="<?php echo e(url('delete_slider')); ?>/<?php echo e($product->id); ?>"><i class="fas fa-trash"></i></a>
                                    
                                </td>
                            </tr>
                            <?php $i++; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                    </div>
                </div>
            </div>
        </div>
        <!-- end col -->
    </div>
    <!-- end row -->
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js_script'); ?>
    <script src="<?php echo e(asset('dashboard_assets/plugins/datatables/jquery.dataTables.min.js')); ?>"></script>
    <script src="<?php echo e(asset('dashboard_assets/plugins/datatables/dataTables.bootstrap4.min.js')); ?>"></script>
    <!-- Responsive examples -->
    <script src="<?php echo e(asset('dashboard_assets/datatables/dataTables.responsive.min.js')); ?>"></script>
    <script src="<?php echo e(asset('dashboard_assets/plugins/datatables/responsive.bootstrap4.min.js')); ?>"></script>
    <!-- Buttons examples -->
    <script src="<?php echo e(asset('dashboard_assets/plugins/datatables/dataTables.buttons.min.js')); ?>"></script>
    <script src="<?php echo e(asset('dashboard_assets/plugins/datatables/buttons.bootstrap4.min.js')); ?>"></script>
    <script src="<?php echo e(asset('dashboard_assets/plugins/datatables/jszip.min.js')); ?>"></script>
    <script src="<?php echo e(asset('dashboard_assets/plugins/datatables/pdfmake.min.js')); ?>"></script>
    <script src="<?php echo e(asset('dashboard_assets/plugins/datatables/vfs_fonts.js')); ?>"></script>
    <script src="<?php echo e(asset('dashboard_assets/plugins/datatables/buttons.html5.min.js')); ?>"></script>
    <script src="<?php echo e(asset('dashboard_assets/plugins/datatables/buttons.print.min.js')); ?>"></script>
    <script src="<?php echo e(asset('dashboard_assets/plugins/datatables/buttons.colVis.min.js')); ?>"></script>

    <!-- Datatable init js -->
    <script src="<?php echo e(asset('dashboard_assets/pages/datatables.init.js')); ?>"></script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/reliance/public_html/resources/views/admin/slider/view.blade.php ENDPATH**/ ?>