$data = [
'pendingapproval' => $companiesmodel->where('status', 'pending')->paginate(5,'group1'),
'verifiedcompanies' => $companiesmodel->where('status', 'Approved')->paginate(5,'group2'),
'activepayments' => $companiesmodel->where('paymentstatus', 'active')->paginate(5,'group3'),
'inactivepayments' => $companiesmodel->where('paymentstatus', 'inactive')->paginate(10,'group4'),
'apicompanies' => $companiesmodel->where('role', 'apicompany')->paginate(10,'group5'),
'appusers' => $appusers->paginate(10,'group6'),
'contractors' => $dmodel->paginate(10,'group7'),
'users' => $cumodel->where('role', 'companyuser')->paginate(10,'group8'),
'pending' => $coldelmodel->where('cstatus', 'pending')->paginate(10,'group9'),
'completed' => $coldelmodel->where('cstatus', 'completed')->paginate(10,'group10'),
'requests' => $srmodel->where('sstatus', 'pending')->paginate(10,'group11'),
'currentPage' => $companiesmodel->pager->getCurrentPage('group1'), // The current page number
'totalPages' => $companiesmodel->pager->getPageCount('group1'),
'vcurrentPage' => $companiesmodel->pager->getCurrentPage('group2'), // The current page number
'vtotalPages' => $companiesmodel->pager->getPageCount('group2'), // The total page count
'activecurrentPage' => $companiesmodel->pager->getCurrentPage('group3'), // The current page number
'activetotalPages' => $companiesmodel->pager->getPageCount('group3'), // The total page count
'inactivecurrentPage' => $companiesmodel->pager->getCurrentPage('group4'), // The current page number
'inactivetotalPages' => $companiesmodel->pager->getPageCount('group4'), // The total page count
'apicurrentPage' => $companiesmodel->pager->getCurrentPage('group5'), // The current page number
'apitotalPages' => $companiesmodel->pager->getPageCount('group5'), // The total page count
'appcurrentPage' => $appusers->pager->getCurrentPage('group6'), // The current page number
'apptotalPages' => $appusers->pager->getPageCount('group6'), // The total page count
'concurrentPage' => $dmodel->pager->getCurrentPage('group7'), // The current page number
'contotalPages' => $dmodel->pager->getPageCount('group7'), // The total page count
'userscurrentPage' => $cumodel->pager->getCurrentPage('group8'), // The current page number
'userstotalPages' => $cumodel->pager->getPageCount('group8'), // The total page count
'pendcurrentPage' => $coldelmodel->pager->getCurrentPage('group9'), // The current page number
'pendtotalPages' => $coldelmodel->pager->getPageCount('group9'), // The total page count
'comcurrentPage' => $coldelmodel->pager->getCurrentPage('group10'), // The current page number
'comtotalPages' => $coldelmodel->pager->getPageCount('group10'), // The total page count
'reqcurrentPage' => $srmodel->pager->getCurrentPage('group11'), // The current page number
'reqtotalPages' => $srmodel->pager->getPageCount('group11'), // The total page count
'pager' => $companiesmodel->pager,
'apppager' => $appusers->pager,
'conpager' => $dmodel->pager,
'userpager' => $cumodel->pager,
'colpager' => $coldelmodel->pager,
'reqpager' => $srmodel->pager,
];