diff --git a/resources/views/staff/history/edit.blade.php b/resources/views/staff/history/edit.blade.php
index c0cb7ae..c867ab6 100644
--- a/resources/views/staff/history/edit.blade.php
+++ b/resources/views/staff/history/edit.blade.php
@@ -133,12 +133,11 @@
>{!! $details->clinical_diagnosis !!}
-
+
-
Attachments
@@ -155,31 +154,11 @@
-
-
- @include('staff.history.partials._uploaded-studies-list', ['study' => $study])
+
+ @include('staff.history.partials._uploaded-studies-list', ['study' => $study, 'allow_delete' => true])
@endsection
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/resources/views/staff/history/partials/_uploaded-studies-list.blade.php b/resources/views/staff/history/partials/_uploaded-studies-list.blade.php
index 6aa7b48..9ec19f0 100644
--- a/resources/views/staff/history/partials/_uploaded-studies-list.blade.php
+++ b/resources/views/staff/history/partials/_uploaded-studies-list.blade.php
@@ -5,7 +5,9 @@
File |
Size |
Uploaded |
+ @if($allow_delete)
|
+ @endif
@@ -20,7 +22,7 @@
@@ -34,7 +36,7 @@
{{ $media->created_at->format('d.m.Y h:iA') }}
|
-
+ @if($allow_delete)
|
+ @endif
@endforeach
diff --git a/resources/views/staff/history/view.blade.php b/resources/views/staff/history/view.blade.php
index 2f29ac3..fa24e80 100644
--- a/resources/views/staff/history/view.blade.php
+++ b/resources/views/staff/history/view.blade.php
@@ -29,48 +29,37 @@
{{ __('History') }}
- Clinical Information
-
- Clinical History
-
-
{!! $details->clinical_history !!}
-
-
-
-
surgical history
-
-
{!! $details->surgical_history !!}
-
-
-
-
lab results
-
-
{!! $details->lab_results !!}
-
-
-
-
clinical diagnosis
-
-
{!! $details->clinical_diagnosis !!}
+
+
+
+
+
Clinical History
+ {!! $details->clinical_history !!}
+
+
+
+
+
Surgical History
+ {!! $details->surgical_history !!}
+
+
+
+
+
Lab Results
+ {!! $details->lab_results !!}
+
+
+
+
+
Clinical Diagnosis
+ {!! $details->clinical_diagnosis !!}
+
+
-
-
-
-
Uploaded Files
-
- @foreach ($study->getMedia(\App\Models\Study::MEDIA_COLLECTION) as $media)
- -
-
- {{ $media->file_name }}
- ({{ $media->human_readable_size }}) - Uploaded
- on {{ $media->created_at->format('Y-m-d H:i:s') }}
-
- @endforeach
-
+
+
Attachments
+ @include('staff.history.partials._uploaded-studies-list', ['study' => $study, 'allow_delete' => false])
-
+
@endsection