bug fix on otp, rearranged MNO display order

This commit is contained in:
Kwesi Banson Jnr
2026-08-27 10:17:12 +00:00
parent ff66dbbabe
commit 27c2a8ac80
5 changed files with 19 additions and 10 deletions

View File

@@ -28,10 +28,12 @@ class NetworkOperatorsController extends Controller
$query->where('connection_status', 'like', "%{$request->input('connection_status')}%");
}
// Paginate instead of getting all records at once (e.g., 10 per page)
$operators = $query->latest('id')->paginate(10)->withQueryString();
// $operators = $query->latest('id')->paginate(10)->withQueryString();
$operators = $query->orderBy('country', 'asc')
->orderBy('name', 'asc')
->paginate(10)
->withQueryString();
// dd($operators);
$totalActive = NetworkOperator::where('connection_status', 'Active')->count();
$totalSipLinks = NetworkOperator::where('connection_type', 'like', '%VPN%')->count();