@php $history = $history ?? collect(); $hasHistory = $history->isNotEmpty(); @endphp @canRoute ('spirometry.results.show')