Created index view for Invitations, fixed syntax errors in view, controller and model.