undefined variable laravel 11 (can’t run two methods) My previous search method was running well after I implemented the method for calculations