Need your help to make a automatic rotating shift schedule.
Requirement:- Two rotating week off for each and every person, and always 1 person should be in every shift

or we can change as per our input data base, for days Monday to Sunday(7 days), rotating weekly off for each and eve

e.g.

Name Present Week Off Leave
A 5 2 0
B 6 1 0
C 4 1 2
D 7 0 0
E 7 0 0

Shifts:- Morning , General , Afternoon , Night (24*7)