datatable with custom filters
var dataTable = $('#list-table').DataTable({
dom: 'Bfrtip',
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
],
'processing': true,
'serverSide': true,
'serverMethod': 'post',
"ajax": {
'url':'{{ route("fetch.properties.report")}}',
'data': function(data){
// Read values
var status = $('#status').val();
// Append to data
data.status = status;
}
}
});
$('.filters').on('click',function(){
dataTable.draw();
});