Viewing file: 79c2bed8f3f2270d111d0523d218a713.php (6.75 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?>
<?php echo e(trans('OTP Settings')); ?>
<?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')); ?>">
<link rel="stylesheet" href="<?php echo e(asset('plugins/daterangepicker/daterangepicker.css')); ?>">
<link rel="stylesheet" href="<?php echo e(asset('plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css')); ?>">
<link rel="stylesheet" href="<?php echo e(asset('/css/custom_modal.css')); ?>">
<style>
.daterangepicker.show-calendar{
top: 226.391px !important;
}
.custom-box-shadow{
background: #f5f1f1 !important;
}
</style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-12 mt-3">
<div class="card">
<div class="card-header">
<h2 class="card-title">
<?php echo e(trans('OTP Settings')); ?>
</h2>
<div class="float-right">
</div>
</div>
<!-- /.card-header -->
<div class="card-body table-body">
<div class="card pb-4 p-4">
<form method="post" role="form" id="otp_form"
action="<?php echo e(route('admin.settings.otp')); ?>" enctype="multipart/form-data">
<?php echo csrf_field(); ?>
<div class="row pb-4">
<div class="col-md-6">
<label for="">Select Customer</label>
<select name="customer_id" id="selectCustomer" class="form-control">
<?php if($customers->isNotEmpty()): ?>
<option value=""><?php echo e(trans('--Select Customer--')); ?></option>
<?php $__currentLoopData = $customers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $customer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($customer->id); ?>"><?php echo e($customer->email); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php else: ?>
<option value="">No Data Available</option>
<?php endif; ?>
</select>
</div>
<div class="col-md-6">
<label for="">Status</label>
<select name="customer_otp_status" class="form-control" id="">
<option value=""><?php echo e(trans('--Select Status--')); ?></option>
<option value="inactive"><?php echo e(trans('Inactive')); ?></option>
<option value="active"><?php echo e(trans('Active')); ?></option>
</select>
</div>
</div>
<button type="submit"
class="btn btn-primary"><?php echo app('translator')->get('admin.form.button.submit'); ?></button>
</form>
</div>
<table id="contacts" class="table table-striped table-bordered dt-responsive nowrap">
<thead>
<tr>
<th><?php echo e(trans('Name')); ?></th>
<th><?php echo e(trans('Email')); ?></th>
<th><?php echo e(trans('Status')); ?></th>
</tr>
</thead>
</table>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->
<?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";
$('#contacts').DataTable({
processing: true,
serverSide: true,
responsive:true,
ajax:'<?php echo e(route('admin.settings.get.all.otp.user')); ?>',
columns: [
{ "data": "full_name" },
{ "data": "email" },
{ "data": "status" },
]
});
$('#selectCustomer').select2({
multiple:false
})
$(document).on('change', '#selectCustomer', function(e){
const customer_id = $(this).val();
$.ajax({
type:'GET',
url:'<?php echo e(route('admin.settings.user.otp.status')); ?>',
data:{
customer_id:customer_id,
},
success:function(res){
$('select[name=customer_otp_status]').val(res.data).trigger('change')
// $('select[name=customer_otp_status]').trigger('change')
}
});
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Project\Pico-SMS-v-2\picosms\resources\views/admin/settings/otp_settings.blade.php ENDPATH**/ ?>
|