File manager - Edit - /home/u300416816/domains/recipeseasy.online/public_html/storage/framework/views/c3b0ac5bd8c55499cc4e055df22a00be.php
Back
<?php $__env->startSection('content'); ?> <!-- Bootstrap Switch CSS --> <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-switch/3.3.4/css/bootstrap3/bootstrap-switch.min.css" rel="stylesheet"> <div class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1 class="m-0">Dynamic Popups</h1> </div><!-- /.col --> <div class="col-sm-6"> <ol class="breadcrumb float-sm-right ml-1"> <a href="<?php echo e(route('add.popup')); ?>" class="btn btn-primary"><i class="fa fa-plus"></i> Add New</a> </ol> </div><!-- /.col --> </div><!-- /.row --> </div><!-- /.container-fluid --> </div> <!-- /.content-header --> <section class="content"> <div class="container-fluid"> <div class="row"> <div class="col-12"> <div class="card"> <!-- /.card-header --> <div class="card-body"> <table class="table table-bordered"> <thead> <tr> <th> Image </th> <th> Title </th> <th> Link </th> <th> Status </th> <th class="text-right"> Action </th> </tr> </thead> <tbody> <?php $__currentLoopData = $dynamicPopups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $popup): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td> <img src="<?php echo e(asset('images/dynamic-popups/'.$popup->image)); ?>" width="50"> </td> <td> <?php echo e($popup->title); ?> </td> <td> <?php echo e($popup->btn_link); ?> </td> <td> <input type="checkbox" class="status-switch" data-id="<?php echo e($popup->id); ?>" <?php echo e($popup->status === 1 ? 'checked' : ''); ?> data-bootstrap-switch data-off-color="danger" data-on-color="success"> </td> <td class="text-right"> <a href="<?php echo e(route('edit.popup', $popup->id)); ?>" class="btn btn-success"><i class="fa fa-edit"></i></a> <a href="<?php echo e(route('delete.popup', $popup->id)); ?>" class="btn btn-danger delete"> <i class="fa fa-trash"></i> </a> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> </div> </section> <!-- jQuery (if not already included) --> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <!-- Bootstrap Switch JS --> <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-switch/3.3.4/js/bootstrap-switch.min.js"></script> <script> $(document).ready(function() { $("input[data-bootstrap-switch]").each(function(){ $(this).bootstrapSwitch(); }); // Handle the switch change event $('.status-switch').on('switchChange.bootstrapSwitch', function (event, state) { let categoryId = $(this).data('id'); let status = state ? '1' : '0'; $.ajax({ url: '<?php echo e(route("admin.popups.updateStatus")); ?>', type: 'POST', data: { _token: '<?php echo e(csrf_token()); ?>', id: categoryId, status: status }, success: function(response) { if(response.success) { toastr.success('Status updated successfully!'); } else { toastr.error('You are can not perform this action in demo mode.'); } }, error: function(xhr) { toastr.error('An error occurred. Please try again.'); } }); }); }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('backend.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Laravel Codester\gaming_zone\resources\views/backend/popups/index.blade.php ENDPATH**/ ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings