radfusion/app/Http/Controllers/HashedStudyControllerBase.php
2025-01-14 13:29:34 +06:00

29 lines
649 B
PHP

<?php
namespace App\Http\Controllers;
use App\Models\Study;
class HashedStudyControllerBase extends HashidControllerBase
{
protected ?Study $study = null;
protected function getStudy(): Study
{
$this->decodeKeys();
$this->study = Study::findOrFail($this->key);
return $this->study;
}
protected function lockedNotice()
{
return view('content.pages.notice', [
'title' => 'Study Locked',
'color' => 'danger',
'heading' => 'Study Locked',
'message' => 'Study metadata cannot be edited once the report has been finalized.',
]);
}
}