Viewing file: 2af4469c70fe4bc04856c5f3a5b8cc8b20f72bf4.php (6.17 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('extra-css'); ?> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet"> <style> .table-responsive.tScrollFix{ min-height: 300px; } </style> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="mainSection-title"> <div class="row"> <div class="col-12"> <div class="d-flex justify-content-between align-items-center flex-wrap gr-15" > <div class="d-flex flex-column"> <h4><?php echo e(get_phrase('Results')); ?></h4> <ul class="d-flex align-items-center eBreadcrumb-2"> <li><a href="#"><?php echo e(get_phrase('Result')); ?></a></li> </ul> </div> <div class="export-btn-area"> <a href="<?php echo e(route('admin.result.create')); ?>" class="btn btn-info btn-sm">Create</a> </div> </div> </div> </div> </div> <div class="row"> <div class="col-10 mx-auto"> <div class="eSection-wrap"> <div class="search-filter-area d-flex justify-content-md-between justify-content-center align-items-center flex-wrap gr-15">
<!-- Export Button -->
</div> <?php if(count($results) > 0): ?> <div class="table-responsive tScrollFix pb-2"> <table class="table eTable"> <thead> <tr> <th scope="col">#</th> <th scope="col"><?php echo e(get_phrase('Title')); ?></th> <th scope="col"><?php echo e(get_phrase('Image')); ?></th> <th scope="col" class="text-end"><?php echo e(get_phrase('Action')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $results; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $result): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e(++$key); ?></td> <td><?php echo e($result->title); ?></td> <td> <img height="40" width="45" src="<?php echo e(asset('/assets/uploads/results/'.$result->image)); ?>" alt=""> </td> <td class="text-start"> <div class="adminTable-action"> <button type="button" class="eBtn eBtn-black dropdown-toggle table-action-btn-2" data-bs-toggle="dropdown" aria-expanded="false" > <?php echo e(get_phrase('Actions')); ?>
</button> <ul class="dropdown-menu dropdown-menu-end eDropdown-menu-2 eDropdown-table-action" >
<li> <a class="dropdown-item" href="<?php echo e(route('admin.result.edit', [$result->id])); ?>"><?php echo e(get_phrase('Edit')); ?></a> </li> <li> <a class="dropdown-item" href="<?php echo e(route('admin.result.delete',['id'=>$result->id])); ?>"><?php echo e(get_phrase('Delete')); ?></a> </li> </ul> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <?php else: ?> <div class="empty_box center"> <img class="mb-3" width="150px" src="<?php echo e(asset('public/assets/images/empty_box.png')); ?>" /> <br> <span class=""><?php echo e(get_phrase('No data found')); ?></span> </div> <?php endif; ?> </div> </div> </div>
<!-- Modal --> <div class="modal fade" id="delModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <form action="<?php echo e(route('admin.link.delete')); ?>" method="get"> <input type="hidden" name="id" class="del_id"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Important Link Delete</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <h5>Are you sure you want to delete this link?</h5> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> <button type="submit" class="btn btn-primary">Confirm</button> </div> </form> </div> </div> </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-scripts'); ?>
<script> $(document).on('click', 'delete_link', function(e){ console.log(e);
const id = $(this).attr('data-id');
$('.del_id').val(id);
$('#delModal').modal('show')
}) </script> <?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.navigation', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/school.picotech.app/public_html/resources/views/admin/result/index.blade.php ENDPATH**/ ?>
|