changed the php to echo a variable and then created a path for it to work in routes.php