Viewing file: 1be6effb399a0de3a47b71c3e2959f83.php (7.16 KB) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> <?php echo e(trans('admin.customers.sender_request')); ?> <?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-css'); ?> <link rel="stylesheet" href="<?php echo e(asset('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css')); ?>"> <link rel="stylesheet" href="<?php echo e(asset('plugins/datatables-responsive/css/responsive.bootstrap4.min.css')); ?>"> <style> .select2-container{ width: 100% !important; } </style> <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <h2 class="card-title"><?php echo app('translator')->get('admin.customers.sender_request'); ?></h2> <div class="float-right"> <a class="btn btn-info" href="<?php echo e(route('admin.sender-id.index')); ?>"><?php echo app('translator')->get('admin.form.button.back'); ?></a> </div> </div> <!-- /.card-header --> <div class="card-body"> <table id="requests" class="table table-striped table-bordered dt-responsive nowrap"> <thead> <tr> <th><?php echo app('translator')->get('admin.table.customer_name'); ?></th> <th><?php echo app('translator')->get('From'); ?></th> <th><?php echo app('translator')->get('admin.table.sender_id'); ?></th> <th><?php echo app('translator')->get('admin.table.status'); ?></th> <th><?php echo app('translator')->get('admin.table.action'); ?></th> </tr> </thead>
</table> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content -->
<div class="modal fade" id="approvedModal" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header p-2"> <h4 class="modal-title ml-1"><?php echo e(trans('customer.sender_id')); ?></h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form method="post" role="form" action="<?php echo e(route('admin.sender.requests.response')); ?>" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <input type="hidden" name="id" id="id"> <input type="hidden" name="status"> <div class="form-group"> <label ><?php echo app('translator')->get('customer.sender_id'); ?> *</label> <input type="text" name="sender_id" class="form-control" readonly placeholder="<?php echo app('translator')->get('customer.sender_id'); ?>"> </div> <div class="form-group gateways"> <label for="edit_gateway"><?php echo app('translator')->get('admin.form.platform'); ?></label> <select class="form-control select2" name="dynamic_gateway_id" > <?php $__currentLoopData = $gateways; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gateway): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($gateway->id); ?>"><?php echo e(ucfirst(str_replace('_', ' ', $gateway->name))); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <small> <?php echo e(trans('admin.header_gateway_configure')); ?>
<a class="text-danger" target="_blank" href="<?php echo e(route('admin.gateway.index')); ?>"><b>click here <i class="fas fa-external-link-alt"></i></b></a></small> </div> <div class="modal-footer p-2"> <button id="modal-confirm-btn" type="submit" class="btn btn-primary btn-sm"><?php echo app('translator')->get('customer.submit'); ?></button> <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal"><?php echo app('translator')->get('customer.close'); ?></button> </div> </form> </div> </div> </div> </div> <?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-scripts'); ?> <script src="<?php echo e(asset('plugins/datatables/jquery.dataTables.min.js')); ?>"></script> <script src="<?php echo e(asset('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js')); ?>"></script> <script src="<?php echo e(asset('plugins/datatables-responsive/js/dataTables.responsive.min.js')); ?>"></script> <script src="<?php echo e(asset('plugins/datatables-responsive/js/responsive.bootstrap4.min.js')); ?>"></script>
<script> "use strict"; $('#requests').DataTable({ processing: true, serverSide: true, responsive:true, ajax:'<?php echo e(route('admin.sender.get.requests')); ?>', columns: [ { "data": "customer" }, { "data": "from" }, { "data": "sender_id"}, { "data": "status" }, { "data": "action" }, ] });
$(document).on('click', '.approve_btn', function (e){ const id = $(this).attr('data-id'); const status = $(this).attr('data-status'); const sender_id = $(this).attr('data-senderid'); console.log(e, id, sender_id); $('input[name="sender_id"]').val(sender_id); $('input[name="id"]').val(id); $('input[name="status"]').val(status); $('#approvedModal').modal('show'); if(status=='review_pending'){ $('.gateways').addClass('d-none'); }else { $('.gateways').removeClass('d-none'); } });
$('select[name="from"]').select2({ placeholder:'Select a from', }); </script> <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/test.sms.picotech.app/public_html/resources/views/admin/senderId/requests.blade.php ENDPATH**/ ?>
|