may([Permission::ReportEdit, Permission::ReportDictate, Permission::ReportDownload]), 403); $this->decodeKeys(); $study = Study::with('reports')->findOrFail($this->key); if (me()->isRadiologist()) { abort_unless($study->isAssignedTo(), 403); } $reports = $study->reports->sortByDesc('created_at'); return view('staff.reports.popup', compact('study', 'reports')); } }