Simplify course search functionality and update route names for clarity

This commit is contained in:
2025-08-04 17:44:59 +05:45
parent afc7c61f86
commit 6772e269fb
6 changed files with 378 additions and 192 deletions

View File

@@ -217,10 +217,7 @@ class ProgramController extends Controller
}
if ($request->filled('search')) {
$query->where(function ($q) use ($request) {
$q->where('keywords', 'like', "%{$request->search}%")
->orWhere('title', 'like', "%{$request->search}%");
});
$query->where('title', 'like', "%{$request->search}%");
}
if ($request->filled('programlevels_id')) {