replaced view ifs w blade syntax