From ee68c5fb19546bab642d71617ba7853dda1fada8 Mon Sep 17 00:00:00 2001 From: Dr Masroor Ehsan Date: Sat, 18 Jan 2025 00:01:40 +0600 Subject: [PATCH] enhancements --- app/DataTables/WorklistDataTable.php | 9 ++++++++- resources/imgs/checklist.png | Bin 0 -> 550 bytes .../partials/_radiologist-listing.blade.php | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 resources/imgs/checklist.png diff --git a/app/DataTables/WorklistDataTable.php b/app/DataTables/WorklistDataTable.php index e95c6e7..481be6e 100644 --- a/app/DataTables/WorklistDataTable.php +++ b/app/DataTables/WorklistDataTable.php @@ -212,6 +212,7 @@ private function physicianColumn(?User $user, Carbon|CarbonImmutable|null $dt): 'avatar_url' => $user->avatar(), 'name' => $user->display_name, 'time' => $dt?->format(self::DATE_FORMAT_SHORT) ?? '~', + 'human_time' => $dt?->diffForHumans() ?? '', ] ); } @@ -232,7 +233,13 @@ private function renderCustomColumns(): array $columns[$col->value] = fn (Study $study) => $study->sanitizedStudyDescription(); break; case WorklistColumn::AssignedPhysician: - $columns[$col->value] = fn (Study $study) => $study->assigned_at?->format(self::DATE_FORMAT_SHORT); + $columns[$col->value] = function (Study $study) { + if ($study->assigned_at != null) { + return ''; + } + + return null; + }; break; case WorklistColumn::ReadingPhysician: $columns[$col->value] = fn (Study $study) => $this->physicianColumn($study->readingPhysician, $study->read_at); diff --git a/resources/imgs/checklist.png b/resources/imgs/checklist.png new file mode 100644 index 0000000000000000000000000000000000000000..d4115b84d11dcd883dc78c7f583e7fbf3b84f700 GIT binary patch literal 550 zcmV+>0@?kEP)u0y;312LLH_0MR0(u0>rM+`t2XklKoY5d;Mh zr2_+7-=LY0K=1-Z7KII%N}a%hYmuM9G1w}&N4mp3I^RA2f6u*85`HV1^;^+wS&ij4 zlXDu28-o=S9>@nS0U&K+&L=^1=$pH`wPAZ1Q^_BY)T2d{-Pzy9ra>5xG@`G-(}IG@ zIgKUtXi>8J7+#rVMBg0UtM1ggTN}3L0K|>Kim)dK!f8uSvbDHASO#!L9*>kV2A8MA z@mfBYGS0}y={!)a6ydwq#iIqdGNrtgGXTy+5M2YBS$_TkynP_fpZW{mxCpO9@OC!Tsefo9Py! zUxJK4`jXm5hwf@BBo`CGZd>PWR?F)aQx>M`M^}z`w*U)(S2LNeP*fwSZ oS6=r(m09>fG~>5+ua?#P25)1c9A={RU;qFB07*qoM6N<$g6OvGVgLXD literal 0 HcmV?d00001 diff --git a/resources/views/staff/worklist/partials/_radiologist-listing.blade.php b/resources/views/staff/worklist/partials/_radiologist-listing.blade.php index 2120bf0..8da332e 100644 --- a/resources/views/staff/worklist/partials/_radiologist-listing.blade.php +++ b/resources/views/staff/worklist/partials/_radiologist-listing.blade.php @@ -1,4 +1,4 @@ -
+