Explorar o código

Merge branch 'dev' of rav.triplestart.com:jmudaka/stagfe2

= %!s(int64=3) %!d(string=hai) anos
pai
achega
2ca665adfa
Modificáronse 1 ficheiros con 13 adicións e 11 borrados
  1. 13 11
      resources/views/app/patient/note/dashboard.blade.php

+ 13 - 11
resources/views/app/patient/note/dashboard.blade.php

@@ -343,7 +343,7 @@
                             </div>
                         @endif
                         @if(!$note->is_signed_by_hcp )
-                            <div moe
+                            <div moe relative
                                  class="{{ $note->hcp_pro_id !== $pro->id ? 'moe-disabled' : '' }}"
                                  title="{{ $note->hcp_pro_id !== $pro->id ? 'Only the note\'s HCP can sign' : '' }}">
                                 <a class="" href="" show start>Sign Note As HCP</a>
@@ -356,16 +356,18 @@
                                     </div>
                                 </form>
                             </div>
-                            <a native target="_blank"
-                               open-in-stag-popup
-                               update-parent
-                               mc-initer="note-sign-confirmation-{{$note->id}}"
-                               popup-style="stag-popup-md"
-                               title="Confirm and Sign"
-                               class="ml-2 text-info font-weight-bold"
-                               href="{{route('patients.view.notes.view.sign-confirmation', compact('patient', 'note'))}}">
-                                Sign*
-                            </a>
+                            @if($note->hcp_pro_id === $pro->id)
+                                <a native target="_blank"
+                                   open-in-stag-popup
+                                   update-parent
+                                   mc-initer="note-sign-confirmation-{{$note->id}}"
+                                   popup-style="stag-popup-md"
+                                   title="Confirm and Sign"
+                                   class="ml-2 text-info font-weight-bold"
+                                   href="{{route('patients.view.notes.view.sign-confirmation', compact('patient', 'note'))}}">
+                                    Sign Note As HCP
+                                </a>
+                            @endif
                         @endif
                     </div>
                 </div>