<?php $__env->startSection('content'); ?>
    <form>
        <div class="side-title">
            <div class="row">
                <div class="col-lg-6">
                    <h3><?php echo e($title); ?></h3>
                </div>
                <div class="col-lg-6 valign">

                    <div class="edit-buttons text-right w-100">
                        <a href="<?php echo e(route ('products.destroyAll')); ?>" data-method="delete" class="butn statusButns status_1 tableAction btn disabled butn_blue ms-auto"><div class="cont"><span><?php echo e(__('dashboard.sendToTrash')); ?></span></div><img src="<?php echo e(asset('assets/admin/images/butn_shap.png')); ?> " alt="" class="shape"></a>
                        <a href="#" class="butn statusButns status_1 showArchive butn_blue ms-auto"><div class="cont"><span> <?php echo e(__('dashboard.displayTrash')); ?> </span></div><img src="<?php echo e(asset('assets/admin/images/butn_shap.png')); ?> " alt="" class="shape"></a>


                        <a href="<?php echo e(route ('products.restoreAll')); ?>" data-method="put" class="butn statusButns status_0 tableAction btn disabled butn_blue ms-auto"><div class="cont"><span> <?php echo e(__('dashboard.restore')); ?> </span></div><img src="<?php echo e(asset('assets/admin/images/butn_shap.png')); ?> " alt="" class="shape"></a>
                        <a href="#" class="butn statusButns status_0 showActive butn_blue ms-auto"><div class="cont"><span> <?php echo e(__('dashboard.displayActive')); ?> </span></div><img src="<?php echo e(asset('assets/admin/images/butn_shap.png')); ?> " alt="" class="shape"></a>
                    </div>
                </div>
            </div>
        </div>

        <!-- ------------ data table ------------- -->
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th scope="col">
                    <div class="custom-control custom-checkbox">
                        <input type="checkbox" class="custom-control-input" id="selectall" name="example1">
                        <label class="custom-control-label" for="selectall"> </label>
                    </div>
                </th>
                <th scope="col"><?php echo e(__('products.title')); ?></th>
                <th scope="col"><?php echo e(__('products.category_id')); ?></th>
                <th scope="col"><?php echo e(__('products.sub_category_id')); ?></th>
                <th scope="col" colspan="2"><?php echo e(__('dashboard.created_at')); ?></th>
                <th scope="col"><?php echo e(__('dashboard.processes')); ?></th>
            </tr>
            </thead>

            <tbody class="response">
            <tr class="search_filter_form">
                <th scope="row">
                    <!-- <input type="checkbox" class="checkAll" /> -->
                </th>
                <th scope="row">
                    <input type="text" name="title" value="<?php echo e($request->title ?? ''); ?>" class="form-control" placeholder="">
                </th>
                <td>
                    <select name="category_id" class="form-control" >
                        <option value=""><?php echo e(__('dashboard.all')); ?></option>
                        <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($row->id); ?>"><?php echo e($row->title); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </td>
                <td>
                    <select name="sub_category_id" class="form-control" >
                        <option value=""><?php echo e(__('dashboard.all')); ?></option>
                        <?php $__currentLoopData = $sub_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($row->id); ?>"><?php echo e($row->title); ?></option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </td>
                <td>
                    <input type="text" placeholder="<?php echo e(__('dashboard.date_from')); ?>" name="date_from" value="<?php echo e($request->date_from ?? ''); ?>" class="date_from form-control">
                </td>
                <td>
                    <input type="text" placeholder="<?php echo e(__('dashboard.date_to')); ?>" name="date_to" value="<?php echo e($request->date_to ?? ''); ?>" class="date_to form-control">
                </td>


                <th scope="col">
                    <button type="button" class="butn butn_blue search">
                        <div class="cont">
                            <span> <?php echo e(__('dashboard.select')); ?>  </span>
                        </div>
                        <img src="<?php echo e(asset('assets/admin/images/butn_shap.png')); ?> " alt="" class="shape">
                    </button>
                    <!--<button type="button" class="butn color small search"><span><i class="fas fa-search"></i></span></button>-->
                </th>            </tr>
            </tbody>


        </table>
        <!-- ------------ sideproducts links ------------- -->
    </form>
<?php $__env->stopSection(); ?>



<script>
    /**
     * Importat to handle ajax requests for filters, deletes, trash and any proccess done on the table's data
     */
    var dataTable={
        route: '<?php echo e(route("products.grid")); ?>'
    }
</script>
<?php $__env->startSection('inner_js'); ?>
    <script>
        /**
         * Set local storage articleGallery key to null
         * it means add new photo success
         */
        $(document).ready(function () {
            localStorage.setItem('articleGallery', 'null');
            localStorage.setItem('oldArticleStorage', 'null')
        })
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.container', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/omaralyomhost/public_html/rose/resources/views/admin/products/index.blade.php ENDPATH**/ ?>