Viewing file: 730fd65259d9ddc19be3b73959465e3bf3a38803.php (4.76 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> Block Contacts <?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')); ?>">
<?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 app('translator')->get('customer.block_list'); ?></h2>
<div class="float-right">
<a class="btn btn-info" href="<?php echo e(route('customer.import.block.contacts',['type'=>'block'])); ?>"><?php echo app('translator')->get('customer.import'); ?></a>
</div>
</div>
<!-- /.card-header -->
<div class="card-body table-body">
<table id="contacts" class="table table-striped table-bordered dt-responsive nowrap">
<thead>
<tr>
<th><?php echo app('translator')->get('customer.number'); ?></th>
<th><?php echo app('translator')->get('Group'); ?></th>
<th><?php echo app('translator')->get('customer.name'); ?></th>
<th><?php echo app('translator')->get('customer.email'); ?></th>
<th><?php echo app('translator')->get('customer.address'); ?></th>
<th><?php echo app('translator')->get('customer.city'); ?></th>
<th><?php echo app('translator')->get('customer.state'); ?></th>
<th><?php echo app('translator')->get('customer.zip_code'); ?></th>
<th><?php echo app('translator')->get('customer.company'); ?></th>
<th><?php echo app('translator')->get('customer.note'); ?></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 type="text/javascript">
$(document).ready(function(){
var contacts = $('#contacts').DataTable({
"language": {
"search": "",
"searchPlaceholder": "Search...",
},
"initComplete": function() {
$('.dataTables_filter input[type="search"]').attr('id', 'searchInput');
},
processing: true,
serverSide: true,
ajax: {
url:"<?php echo e(route('customer.get.blocknumber')); ?>",
data: function(data){
data.searchInput = $('#searchInput').val();
}
},
columns: [
{ "data": "number" },
{ "data": "group" },
{ "data": "full_name" },
{ "data": "email" },
{ "data": "address" },
{ "data": "city" },
{ "data": "state" },
{ "data": "zip_code" },
{ "data": "company" },
{ "data": "note" },
{ "data": "action" },
]
});
$('#searchInput').keyup(function(){
contacts.draw();
});
});
</script>
<?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/gateway.picotech.app/public_html/resources/views/customer/contacts/block.blade.php ENDPATH**/ ?>
|