add switch statement to blade