Pagination gets complicated when finding specific groups of records when there is a large number of records are available.
By adding a search filter with pagination makes it easier for the user to easily find records e.g. filter list by country, department, name, etc.
It is easier to add pagination using pagination
library in CodeIgniter.
In this tutorial, I am using the SESSION to store search value and filter the pagination list.