{{-- "Download PDF" and "Print" for a report page: the same address and filters with format=pdf
(see App\Http\Controllers\Concerns\ExportsPdf). Page numbers are dropped: the PDF has every row.
Print prints that PDF (not the web page); pass 'print' => false to show the download only. --}}
@php
$pdfQuery = array_merge(
request()->except(['page', 'sales_page', 'purchases_page', 'adjustments_page', 'movements_page', 'daily_page', 'activity_page', 'format', 'tab', 'inline']),
['format' => 'pdf']
);
$pdfUrl = url()->current() . '?' . http_build_query($pdfQuery);
@endphp
@if($print ?? true)
@endif
Download PDF
@once
@endonce