/Pages directory of your resource directory, and a view in the /pages directory of the resource views directory.
You must register custom pages to a route in the static getPages() method of your resource:
getUrl() method on the resource class: