I am making a backend app where I want to display a different navigation for each user role. I am building ACL with entrust package. I am facing two issues here:
How to create navigation that easier to manage and only allow users to view assigned pages
How to display navigation i.e. create a file for each role, etc. and display if user role matches.
Creating a file for each role should be quite simple however there will be some repetition of links across files.
What I have done in the past (not a ideal solution either I feel) was to include navigation file if the role was allow to view, e.g.