<?php $__env->startSection('module_name'); ?>
Sliders
<?php $__env->stopSection(); ?>

<?php $__env->startSection('table-properties'); ?>
    width="400px" style="table-layout:fixed;"
<?php $__env->stopSection(); ?>


<style>
    td {
        white-space: nowrap;
        overflow: hidden;
        width: 30px;
        height: 30px;
        text-overflow: ellipsis;
    }
</style>
<?php $__env->startSection('table'); ?>
    
    

    <thead>
        <tr>


            <th>Page Name</th>
            <th>Section </th>


            <th>Edit </th>



        </tr>
    </thead>
    <tbody>



        <?php $__currentLoopData = $pages_images; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <td><?php echo ucwords($p->page_name); ?></td>
            <td><?php echo ucwords($p->section); ?></td>
            <?php if (!$p->image) {
                $new_img = asset('images/logo.png');
                $p->image = json_decode($new_img);
            }

            ?>


            



            <td>
                <?php echo link_to_action('Admin\SettingsController@edit', 'Edit', [$p->id], ['class' => 'badge bg-info']); ?>


            </td>

            </div>
            </td>


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


    </tbody>
<?php $__env->startSection('pagination'); ?>
    <span class="pagination pagination-md pull-right"><?php echo $pages_images->render(); ?></span>
    <div class="col-md-3 pull-left">
        <div class="form-group text-center">

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


<?php $__env->startSection('app_jquery'); ?>
<script>
    function deleteVideo(promotion_id, product_id) {
        // var id =$('.deletevideoconfirm').attr('id_delete');

        var my_url = '<?php echo url('/admin/promotion/delete'); ?>/' + promotion_id;
        console.log('deltee url', my_url)
        $.ajax({
            url: my_url,
            method: 'POST',
            dataType: 'json',
            data: {
                '_token': '<?php echo csrf_token(); ?>'
            },
            success: function(data) {
                $('.arrow_' + product_id)
                    .html(`<a href="<?php echo e(url('admin/promotion/edit/0?product_id=')); ?>/` + product_id + `" type="button"
					class="btn btn-primary onproduction">Add</a>`);
                // $(current).parent().parent().parent().remove();

            },
            error: function(data) {
                console.log('Error:', data);
            }
        });

    }
</script>

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

<?php echo $__env->make('layouts.default_module', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/demohatinco/public_html/medical2_backend/resources/views/admin/settings/index.blade.php ENDPATH**/ ?>