Viewing file: 8f903cc97e8403b3a2ead1c16d020d41.php (5.58 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> Sender | ID <?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--default.select2-dropdown.select2-dropdown--below {
margin-right: 151px;
}
select2-container.select2-container--default.select2-container--open{
left: 0;
}
</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('customer.list'); ?></h2>
<div class="float-right">
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal"><?php echo app('translator')->get('customer.sender_id_request'); ?></button>
</div>
</div>
<!-- /.card-header -->
<div class="card-body">
<table id="sender_ids" class="table table-striped table-bordered dt-responsive nowrap">
<thead>
<tr>
<th><?php echo app('translator')->get('customer.sender_id'); ?></th>
<th><?php echo e(trans('customer.expire_date')); ?></th>
<th><?php echo app('translator')->get('customer.status'); ?></th>
<th><?php echo app('translator')->get('customer.action'); ?></th>
</tr>
</thead>
</table>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header p-2">
<h4 class="modal-title ml-1"><?php echo app('translator')->get('customer.new_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">
<?php echo $__env->make('customer.senderID.create', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
</div>
</div>
<div class="modal fade" id="editSenderId" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header p-2">
<h4 class="modal-title ml-1"><?php echo app('translator')->get('customer.edit_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">
<?php echo $__env->make('customer.senderID.edit', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</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 src="<?php echo e(asset('js/readmore.min.js')); ?>"></script>
<script>
"use strict";
$('#sender_ids').DataTable({
processing: true,
serverSide: true,
responsive:true,
ajax:'<?php echo e(route('customer.sender.get.all')); ?>',
columns: [
{ "data": "sender_id" },
{ "data": "expire_date" },
{ "data": "status" },
{ "data": "action" },
],
});
$(document).on('click', '.edit', function(e){
e.preventDefault();
const data_sender_id = $(this).attr('data-senderid');
const data_url=$(this).attr('data-url');
$('#updateForm').attr('action', data_url);
$('#sender_id_edit').val(data_sender_id);
$('#editSenderId').modal('show');
})
$('#create_gateway').select2();
$('#edit_gateway').select2();
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Project\Pico-SMS-v-2\picosms\resources\views/customer/senderID/index.blade.php ENDPATH**/ ?>
|