Laravel Selected Option Javascript Substring Function In Mysql