bug fix on otp, rearranged MNO display order
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user