minor UI improvement
This commit is contained in:
parent
7f0a510781
commit
2e68b39082
@ -16,6 +16,15 @@ public function popup()
|
|||||||
ReportManager::ensureDownloadAccess();
|
ReportManager::ensureDownloadAccess();
|
||||||
$this->decodeKeys();
|
$this->decodeKeys();
|
||||||
$study = Study::with(['reports.radiologist', 'reports.study', 'assignedPhysicians'])->findOrFail($this->key);
|
$study = Study::with(['reports.radiologist', 'reports.study', 'assignedPhysicians'])->findOrFail($this->key);
|
||||||
|
if ($study->reports->isEmpty()) {
|
||||||
|
return view('content.pages.partials._alert-div',
|
||||||
|
[
|
||||||
|
'color' => 'secondary',
|
||||||
|
'heading' => 'Unread study',
|
||||||
|
'message' => 'This study has not been interpreted yet.',
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
if (me()->isRadiologist()) {
|
if (me()->isRadiologist()) {
|
||||||
// abort_unless($study->isAssigned(), 403);
|
// abort_unless($study->isAssigned(), 403);
|
||||||
abort_unless($study->isUserInStudyAssignmentsOrReadingPhysician(), 403);
|
abort_unless($study->isUserInStudyAssignmentsOrReadingPhysician(), 403);
|
||||||
|
@ -35,12 +35,7 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-7 col-md-7 d-flex justify-content-center">
|
@include('content.pages.partials._alert-div', compact('color', 'heading', 'message'))
|
||||||
<div class="alert alert-{{ $color }} alert-coupon">
|
|
||||||
<h4>{{ $heading }}</h4>
|
|
||||||
<p>{{ $message }}</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
@ -1 +1,6 @@
|
|||||||
<?php
|
<div class="col-6 col-md-6 d-flex justify-content-center">
|
||||||
|
<div class="alert alert-{{ $color }} alert-coupon">
|
||||||
|
<p class="fw-bold fs-5">{{ $heading }}</p>
|
||||||
|
<p>{{ $message }}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user