Viewing file: 2cbb2819794ce4a94c8e51fbe62ce5ae.php (8.57 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title','Overview | SmsBox'); ?>
<?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')); ?>">
<script>
let orderDataTable = '';
</script>
<style>
</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">
<div class="row">
<div class="col-lg-5">
<h2 class="card-title"><?php echo app('translator')->get('customer.overview'); ?></h2>
</div>
<div class="col-lg-7">
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle float-right" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-filter"></i> Filter
</button>
<div class="dropdown-menu pull-left" aria-labelledby="dropdownMenuButton">
<form method="get" id="filtering-form">
<div class="row m-3">
<div class="col-lg-6">
<div class="form-group">
<label for="confirm_message"><?php echo app('translator')->get('customer.from_time'); ?></label>
<input type="date" value="<?php echo e(request()->get('from_date')); ?>" name="from_date" class="form-control">
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label for="confirm_message"><?php echo app('translator')->get('customer.to_time'); ?></label>
<input type="date" value="<?php echo e(request()->get('to_date')); ?>" name="to_date" class="form-control">
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label for="type"><?php echo app('translator')->get('customer.type'); ?></label>
<select class="form-control" name="type">
<option <?php echo e(request()->get('type') == 'inbox'?'selected':''); ?> value="inbox">Inbox</option>
<option <?php echo e(request()->get('type') == 'sent'?'selected':''); ?> value="sent">Sent</option>
<option <?php echo e(request()->get('type') == 'trash'?'selected':''); ?> value="trash">Trash</option>
</select>
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label for="status"><?php echo app('translator')->get('customer.status'); ?></label>
<select class="form-control" name="status">
<option <?php echo e(request()->get('status') == 'pending'?'selected':''); ?> value="pending">Pending</option>
<option <?php echo e(request()->get('status') == 'succeed'?'selected':''); ?> value="succeed">Succeed</option>
<option <?php echo e(request()->get('status') == 'failed'?'selected':''); ?> value="failed">Failed</option>
</select>
</div>
</div>
<div class="col-lg-12">
<button type="submit" class="btn btn-primary float-right">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- /.card-header -->
<div class="card-body table-body">
<table id="overview_list" class="table table-striped table-bordered dt-responsive nowrap">
<thead>
<tr>
<th><?php echo app('translator')->get('customer.time'); ?></th>
<th><?php echo app('translator')->get('customer.message'); ?></th>
<th><?php echo app('translator')->get('customer.from'); ?></th>
<th><?php echo app('translator')->get('customer.to'); ?></th>
<th><?php echo app('translator')->get('customer.type'); ?></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 -->
<?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="">
"use strict";
const queryString=window.location.search;
orderDataTable = $('#overview_list').DataTable({
processing: true,
"aaSorting": [],
ajax: {
"url": '<?php echo e(route('customer.smsbox.overview.get.data')); ?>'+queryString,
"dataSrc": "data",
"type": "GET",
"data": function(d){
d.form = $("#filtering-form").serializeArray();
}
},
columns: [
{ "data": "updated_at" },
{ "data": "body"},
{ "data": "from" },
{ "data": "to" },
{ "data": "type" },
{ "data": "status" },
{ "data": "action" },
],
fnInitComplete: function(oSettings, json) {
$(".show-more").css('overflow', 'hidden').readmore({collapsedHeight: 20,moreLink: '<a href="#">More</a>',lessLink: '<a href="#">Less</a>'});
}
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\sms 102\resources\views/customer/smsbox/overview.blade.php ENDPATH**/ ?>
|