feat: add lab tests, patient file management, and prescription improvements

This commit is contained in:
SajjadMahmoody
2026-04-17 20:15:38 +03:30
parent 6a301c5529
commit bf0ada051f
53 changed files with 3201 additions and 387 deletions
@@ -21,11 +21,15 @@
@if($photosBefore->isNotEmpty())
<div>
<h3 class="text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">{{ __('patients.fields.photos_before') }}</h3>
<div class="grid grid-cols-3 gap-2">
@foreach($photosBefore as $url)
<a href="{{ $url }}" target="_blank">
<img src="{{ $url }}" class="w-full h-32 object-cover rounded-lg border border-gray-200 dark:border-gray-700 hover:opacity-80 transition" />
</a>
<div class="fi-lb-gallery" style="display:flex;flex-wrap:wrap;gap:6px;">
@foreach($photosBefore as $i => $url)
<div class="relative rounded-lg overflow-hidden bg-gray-800 cursor-pointer group" style="width:80px;height:45px;flex-shrink:0;"
data-lb-group="modal-before-{{ $record->id }}"
data-lb-idx="{{ $i }}"
data-lb-src="{{ $url }}">
<img src="{{ $url }}" class="w-full h-full object-cover transition group-hover:scale-105 duration-200" loading="lazy" />
<div class="absolute inset-0 bg-black/0 group-hover:bg-black/25 transition duration-200"></div>
</div>
@endforeach
</div>
</div>
@@ -35,11 +39,15 @@
@if($photosAfter->isNotEmpty())
<div>
<h3 class="text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">{{ __('patients.fields.photos_after') }}</h3>
<div class="grid grid-cols-3 gap-2">
@foreach($photosAfter as $url)
<a href="{{ $url }}" target="_blank">
<img src="{{ $url }}" class="w-full h-32 object-cover rounded-lg border border-gray-200 dark:border-gray-700 hover:opacity-80 transition" />
</a>
<div class="fi-lb-gallery" style="display:flex;flex-wrap:wrap;gap:6px;">
@foreach($photosAfter as $i => $url)
<div class="relative rounded-lg overflow-hidden bg-gray-800 cursor-pointer group" style="width:80px;height:45px;flex-shrink:0;"
data-lb-group="modal-after-{{ $record->id }}"
data-lb-idx="{{ $i }}"
data-lb-src="{{ $url }}">
<img src="{{ $url }}" class="w-full h-full object-cover transition group-hover:scale-105 duration-200" loading="lazy" />
<div class="absolute inset-0 bg-black/0 group-hover:bg-black/25 transition duration-200"></div>
</div>
@endforeach
</div>
</div>
@@ -52,7 +60,7 @@
<div class="space-y-3">
@foreach($videos as $i => $url)
@php $vid = 'patient-video-'.$i.'-'.uniqid(); @endphp
<div class="rounded-lg overflow-hidden border border-gray-200 dark:border-gray-700 bg-black">
<div class="rounded-lg overflow-hidden">
<video id="{{ $vid }}" src="{{ $url }}" controls class="w-full max-h-64"></video>
<div class="flex items-center gap-2 bg-gray-900 px-3 py-1">
<span class="text-xs text-gray-400">سرعت:</span>
@@ -82,7 +90,7 @@ class="text-xs px-2 py-0.5 rounded {{ $speed == 1 ? 'bg-blue-600 text-white' : '
<div class="space-y-2">
@foreach($audios as $i => $url)
@php $aid = 'patient-audio-'.$i.'-'.uniqid(); @endphp
<div class="rounded-lg border border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800 p-3">
<div class="rounded-lg p-3">
<audio id="{{ $aid }}" src="{{ $url }}" controls class="w-full mb-2"></audio>
<div class="flex items-center gap-2">
<span class="text-xs text-gray-500 dark:text-gray-400">سرعت:</span>