Skip to content

Commit

Permalink
Pagination is added.
Browse files Browse the repository at this point in the history
  • Loading branch information
mucan54 committed Sep 18, 2024
1 parent 713868c commit a6ae265
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,10 @@ public function formatUserTickets($segment)
$table = $table->where('team_id', '=', $convert_to_array[2]);
}

return $table->whereIn('tickets.status', getStatusArray($convert_to_array[3]));
$table->whereIn('tickets.status', getStatusArray($convert_to_array[3]));

//paginate
return $table->paginate(10);
}

/**
Expand Down
3 changes: 3 additions & 0 deletions resources/views/vendor/Chumper/tickets-javascript.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,11 @@ function myFunction()
}
},
"lengthMenu": [[10, 25, 50, 100, 500], [10, 25, 50, 100, 500]],
"serverSide": true,
"processing": true,
"ajax": {
url: "{{url('get-filtered-tickets')}}",
async: true,
data: function (d) {
d.options = "{{$inputs}}";
}
Expand Down

0 comments on commit a6ae265

Please sign in to comment.