I have a view which I want to display different things based on a database field.
- An authenticated user who has purchased an item should see it in full
- Authenticated or Anonymous members who have not purchased the item should see a preview
The only data this means changing is the title (prefix the word Preview) and changing the source of the video.
Any suggestions about how to do this and if there is a better approach would be appreciated thanks.
Could I detect the route and base the information from this?
for example: /preview/slug and /purchased/slug?