using laravel 4.2 to check the team formation
<p>I am going to build a fantasy cricket site.To make the site i have to validate a lot of things.most of the validation i have done already.I got stuck on the team formation validation.Like I have 7 team formation.Whenever user takes a player in his/her team i have to check is he/she taking player according to the formation.I built a logic already but the logic needs huge amounts of conditional statement.I just want to avoid huge amounts of conditional statement.If someone help me out how i can build the logic efficiently  it would be really appreciated.
<a href="https://i.stack.imgur.com/a8auQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a8auQ.png" alt="this is the team formation table"></a></p>