This commit is contained in:
2026-04-28 19:31:09 +07:00
parent 54004b34e6
commit e783eb9aa7
@@ -16,7 +16,7 @@ class OfftakerController extends Controller
abort(403, 'Unauthorized');
}
$query = Offtaker::where('1', '1');
$query = Offtaker::query();
if($request->filled('user_email')) {
$search = strtolower($request->search);
$query->whereRaw('lower(email) like ?', ["%{$search}%"])->get();