This commit is contained in:
Masroor Ehsan 2025-01-25 15:51:03 +06:00
parent 81087e408a
commit 8f7b820045
4 changed files with 4 additions and 3 deletions

View File

@ -27,7 +27,7 @@ private function loadViewer(Closure $callback)
$url = $callback($study); $url = $callback($study);
abort_if(blank($url), 404); abort_if(blank($url), 404);
$title = Str::limit($study->getPatientDemographic(), 40); $title = Str::limit($study->getPatientDemographic(), 40);
audit()->on($study)->did(Activity::Image_View)->log(); audit()->on($study)->did(Activity::Image_Download)->log();
return view('staff.studies.viewer', compact('url', 'title')); return view('staff.studies.viewer', compact('url', 'title'));
} }

View File

@ -30,7 +30,7 @@ enum Activity: int
case Attachment_Delete = 114; case Attachment_Delete = 114;
// image // image
case Image_View = 150; case Image_Download = 150;
// report // report

View File

@ -15,6 +15,7 @@
"hashids/hashids": "^5.0", "hashids/hashids": "^5.0",
"hisorange/browser-detect": "^5.0", "hisorange/browser-detect": "^5.0",
"laravel/framework": "^11.31", "laravel/framework": "^11.31",
"laravel/helpers": "*",
"laravel/jetstream": "^5.3", "laravel/jetstream": "^5.3",
"laravel/sanctum": "^4.0", "laravel/sanctum": "^4.0",
"laravel/socialite": "^5.16", "laravel/socialite": "^5.16",

View File

@ -19,7 +19,7 @@
<td>{{ $log->activity_name }}</td> <td>{{ $log->activity_name }}</td>
<td> <td>
<span @include('_partials._tooltip', ['tip' => $log->notes])> <span @include('_partials._tooltip', ['tip' => $log->notes])>
{{ \Illuminate\Support\Str::limit($log->notes, 20) }} {{ str_limit($log->notes, 18) }}
</span> </span>
</td> </td>
<td> <td>