Help with custom resource page

I have created a custom resource page and added its entry in getPages() method like this:
'print' => Pages\PrintCouponBatch::route('/print/{record}')

I want the view for this page to use a custom layout. Also I am not able to access the $record in the view. {{ $record }} shows variable undefined whileas the doc says, the route param should be available in view.

Any help with this will be appreciated.
Was this page helpful?