This commit is contained in:
Dr Masroor Ehsan 2025-01-19 11:31:24 +06:00
parent 470e8e5d37
commit 02d4f72720
7 changed files with 31 additions and 4 deletions

View File

@ -274,11 +274,27 @@ private function physicianColumn(Study $study): ?string
{
$user = $study->readingPhysician;
if ($user === null) {
$html = '';
if ($study->assigned_at !== null) {
return '<img src="' . asset('imgs/checklist.png') . '" data-bs-toggle="tooltip" data-bs-placement="right" title="Assigned on ' . $study->assigned_at->format(self::DATE_FORMAT_LONG) . '">';
$html .= Blade::render('_partials._img-tooltip',
[
'src' => asset('imgs/assigned.png'),
'class' => 'msg-icon',
'tip' => 'Assigned on ' . $study->assigned_at->format(self::DATE_FORMAT_LONG),
]);
}
return null;
if ($study->isLocked()) {
$html .= Blade::render('_partials._img-tooltip',
[
'src' => asset('imgs/lock.png'),
'class' => 'ms-1 msg-icon',
'tip' => 'Locked on ' . $study->locked_at->format(self::DATE_FORMAT_LONG),
]);
}
return $html;
}
$dt = $study->read_at;
@ -317,7 +333,7 @@ private function renderCustomColumns(): array
case WorklistColumn::AssignedPhysician:
$columns[$col->value] = static function (Study $study) {
if ($study->assigned_at !== null) {
return '<img src="' . asset('imgs/checklist.png') . '" data-bs-toggle="tooltip" data-bs-placement="right" title="' . $study->assigned_at->format(self::DATE_FORMAT_LONG) . '">';
return '<img src="' . asset('imgs/assigned.png') . '" data-bs-toggle="tooltip" data-bs-placement="right" title="' . $study->assigned_at->format(self::DATE_FORMAT_LONG) . '">';
}
return null;
@ -435,7 +451,7 @@ private function generateActionButtons(Study $study): string
$btns[] = $this->renderImageLink($study->hash, 'info.png', 'showStudy', 'Info');
break;
case WorklistButton::Assign:
$btns[] = $this->renderImageLink($study->hash, 'doctor.png', 'show-assign', 'Assign');
$btns[] = $this->renderImageLink($study->hash, 'assign.png', 'show-assign', 'Assign');
break;
case WorklistButton::Notes:
$btns[] = $this->renderImageLink($study->hash, 'chat.png', 'show-notes', 'Chat');

View File

@ -492,6 +492,7 @@ protected function casts(): array
'read_at' => 'immutable_datetime',
'assigned_at' => 'immutable_datetime',
'study_date' => 'immutable_datetime',
'locked_at' => 'immutable_datetime',
'patient_birthdate' => 'immutable_date',
];
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 773 B

After

Width:  |  Height:  |  Size: 902 B

BIN
resources/imgs/assigned.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
resources/imgs/lock.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 563 B

View File

@ -0,0 +1 @@
<img src="{{ $src }}" class="{{ $class }}" data-bs-toggle="tooltip" data-bs-placement="top" title="{{ $tip }}">

View File

@ -40,6 +40,15 @@
])
@endsection
@section('page-style')
<style>
.msg-icon {
width: 18px !important;
height: 18px !important;
}
</style>
@endsection
@section('page-script')
@vite([
//'resources/assets/js/forms-pickers.js',