case management system in php