@props(['size' => 'sm']) {{-- Print / PDF of the current report on the pharmacy letterhead (see App\Support\ReportDocument). The link is taken from the address bar when clicked, so filters changed without reloading are kept. --}} @php($toFormat = "var u = new URL(location.href); u.searchParams.set('format', this.dataset.format); u.searchParams.delete('page'); this.href = u.toString();") merge(['class' => "btn btn-$size btn-outline-secondary"]) }} title="Print on the pharmacy letterhead"> Print merge(['class' => "btn btn-$size btn-outline-danger"]) }} title="Download as PDF"> PDF