minor UI improvement

This commit is contained in:
Dr Masroor Ehsan 2025-01-21 23:57:24 +06:00
parent 7f0a510781
commit 2e68b39082
3 changed files with 16 additions and 7 deletions

View File

@ -16,6 +16,15 @@ public function popup()
ReportManager::ensureDownloadAccess();
$this->decodeKeys();
$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()) {
// abort_unless($study->isAssigned(), 403);
abort_unless($study->isUserInStudyAssignmentsOrReadingPhysician(), 403);

View File

@ -35,12 +35,7 @@
<div class="container">
<div class="row">
<div class="col-7 col-md-7 d-flex justify-content-center">
<div class="alert alert-{{ $color }} alert-coupon">
<h4>{{ $heading }}</h4>
<p>{{ $message }}</p>
</div>
</div>
@include('content.pages.partials._alert-div', compact('color', 'heading', 'message'))
</div>
</body>

View File

@ -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>