Controller.php: - Changed $options to a multidimensional array to allow default value to be set for checkboxes. - Added a controller function (for development purposes) to allow the PDF view to be rendered as a web view (requires an env variable of PDFPREVIEW=true to be set)
home.blade.php: - Added a check PDFPREVIEW=true to set the preview url in case if dev/debugging - Changed $options loop to accommodate the array changes in Controller.php
pdf.blade.php: Check for the pagebreaks option and render css if checked=true
web.php (route): Added route for PDF preview as webpage
nice thanks @anchovie91471 ! i think your checked "Page breaks after groups" option is more intuitive than if you'd gone the easier route and made it unchecked "Suppress breaks after groups" (or similar)