wip
This commit is contained in:
parent
470e8e5d37
commit
02d4f72720
@ -274,11 +274,27 @@ private function physicianColumn(Study $study): ?string
|
|||||||
{
|
{
|
||||||
$user = $study->readingPhysician;
|
$user = $study->readingPhysician;
|
||||||
if ($user === null) {
|
if ($user === null) {
|
||||||
|
$html = '';
|
||||||
|
|
||||||
if ($study->assigned_at !== null) {
|
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;
|
$dt = $study->read_at;
|
||||||
@ -317,7 +333,7 @@ private function renderCustomColumns(): array
|
|||||||
case WorklistColumn::AssignedPhysician:
|
case WorklistColumn::AssignedPhysician:
|
||||||
$columns[$col->value] = static function (Study $study) {
|
$columns[$col->value] = static function (Study $study) {
|
||||||
if ($study->assigned_at !== null) {
|
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;
|
return null;
|
||||||
@ -435,7 +451,7 @@ private function generateActionButtons(Study $study): string
|
|||||||
$btns[] = $this->renderImageLink($study->hash, 'info.png', 'showStudy', 'Info');
|
$btns[] = $this->renderImageLink($study->hash, 'info.png', 'showStudy', 'Info');
|
||||||
break;
|
break;
|
||||||
case WorklistButton::Assign:
|
case WorklistButton::Assign:
|
||||||
$btns[] = $this->renderImageLink($study->hash, 'doctor.png', 'show-assign', 'Assign');
|
$btns[] = $this->renderImageLink($study->hash, 'assign.png', 'show-assign', 'Assign');
|
||||||
break;
|
break;
|
||||||
case WorklistButton::Notes:
|
case WorklistButton::Notes:
|
||||||
$btns[] = $this->renderImageLink($study->hash, 'chat.png', 'show-notes', 'Chat');
|
$btns[] = $this->renderImageLink($study->hash, 'chat.png', 'show-notes', 'Chat');
|
||||||
|
@ -492,6 +492,7 @@ protected function casts(): array
|
|||||||
'read_at' => 'immutable_datetime',
|
'read_at' => 'immutable_datetime',
|
||||||
'assigned_at' => 'immutable_datetime',
|
'assigned_at' => 'immutable_datetime',
|
||||||
'study_date' => 'immutable_datetime',
|
'study_date' => 'immutable_datetime',
|
||||||
|
'locked_at' => 'immutable_datetime',
|
||||||
'patient_birthdate' => 'immutable_date',
|
'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
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
BIN
resources/imgs/lock.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 563 B |
1
resources/views/_partials/_img-tooltip.blade.php
Normal file
1
resources/views/_partials/_img-tooltip.blade.php
Normal file
@ -0,0 +1 @@
|
|||||||
|
<img src="{{ $src }}" class="{{ $class }}" data-bs-toggle="tooltip" data-bs-placement="top" title="{{ $tip }}">
|
@ -40,6 +40,15 @@
|
|||||||
])
|
])
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@section('page-style')
|
||||||
|
<style>
|
||||||
|
.msg-icon {
|
||||||
|
width: 18px !important;
|
||||||
|
height: 18px !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@endsection
|
||||||
|
|
||||||
@section('page-script')
|
@section('page-script')
|
||||||
@vite([
|
@vite([
|
||||||
//'resources/assets/js/forms-pickers.js',
|
//'resources/assets/js/forms-pickers.js',
|
||||||
|
Loading…
Reference in New Issue
Block a user