浏览代码

Caremonth - waive rm interaction/time UI update

Vijayakrishnan 3 年之前
父节点
当前提交
865a51867b
共有 1 个文件被更改,包括 34 次插入33 次删除
  1. 34 33
      resources/views/app/patient/care-month/dashboard.blade.php

+ 34 - 33
resources/views/app/patient/care-month/dashboard.blade.php

@@ -2478,12 +2478,13 @@
             @endif
 
         @endif
+        @if($pro->pro_type === 'ADMIN')
         <hr class="m-negator mt-4 mb-3">
-            <div>
-                Is RM interaction waived: {{$careMonth->is_rm_interaction_waived? 'Yes': 'No'}}
-                <div moe class="text-left mt-1" title="Cancel Claim">
-                    <a class="" href="" show start>Set Is RM Interaction Waived To False</a>
-                    @if($careMonth->is_rm_interaction_waived)
+        <div>
+            Is RM interaction waived: <b>{{$careMonth->is_rm_interaction_waived? 'Yes': 'No'}}</b>
+            <div moe class="text-left ml-2 mb-2">
+                <a class="" href="" show start>Toggle</a>
+                @if($careMonth->is_rm_interaction_waived)
                     <form url="/api/careMonth/setIsRmInteractionWaivedToFalse">
                         <input type="hidden" name="uid" value="{{$careMonth->uid}}">
                         <p>Set is RM interaction waived to false?</p>
@@ -2492,24 +2493,23 @@
                             <button class="btn btn-default border btn-sm" cancel>Cancel</button>
                         </div>
                     </form>
-                    @else
-                        <form url="/api/careMonth/setIsRmInteractionWaivedToTrue">
-                            <input type="hidden" name="uid" value="{{$careMonth->uid}}">
-                            <p>Set is RM interaction waived to true?</p>
-                            <div class="mb-0">
-                                <button class="btn btn-primary btn-sm" submit>Submit</button>
-                                <button class="btn btn-default border btn-sm" cancel>Cancel</button>
-                            </div>
-                        </form>
-                    @endif
-                </div>
+                @else
+                    <form url="/api/careMonth/setIsRmInteractionWaivedToTrue">
+                        <input type="hidden" name="uid" value="{{$careMonth->uid}}">
+                        <p>Set is RM interaction waived to true?</p>
+                        <div class="mb-0">
+                            <button class="btn btn-primary btn-sm" submit>Submit</button>
+                            <button class="btn btn-default border btn-sm" cancel>Cancel</button>
+                        </div>
+                    </form>
+                @endif
             </div>
-
-            <div>
-                Is RM interaction waived: {{$careMonth->is_rm_time_waived? 'Yes': 'No'}}
-                <div moe class="text-left mt-1" title="Cancel Claim">
-                    <a class="" href="" show start>Set Is RM Time Waived To False</a>
-                    @if($careMonth->is_rm_time_waived)
+        </div>
+        <div>
+            Is RM time waived: <b>{{$careMonth->is_rm_time_waived? 'Yes': 'No'}}</b>
+            <div moe class="text-left ml-2">
+                <a class="" href="" show start>Toggle</a>
+                @if($careMonth->is_rm_time_waived)
                     <form url="/api/careMonth/setIsRmTimeWaivedToFalse">
                         <input type="hidden" name="uid" value="{{$careMonth->uid}}">
                         <p>Set is RM Time waived to false?</p>
@@ -2518,18 +2518,19 @@
                             <button class="btn btn-default border btn-sm" cancel>Cancel</button>
                         </div>
                     </form>
-                    @else
-                        <form url="/api/careMonth/setIsRmTimeWaivedToTrue">
-                            <input type="hidden" name="uid" value="{{$careMonth->uid}}">
-                            <p>Set is RM time waived to true?</p>
-                            <div class="mb-0">
-                                <button class="btn btn-primary btn-sm" submit>Submit</button>
-                                <button class="btn btn-default border btn-sm" cancel>Cancel</button>
-                            </div>
-                        </form>
-                    @endif
-                </div>
+                @else
+                    <form url="/api/careMonth/setIsRmTimeWaivedToTrue">
+                        <input type="hidden" name="uid" value="{{$careMonth->uid}}">
+                        <p>Set is RM time waived to true?</p>
+                        <div class="mb-0">
+                            <button class="btn btn-primary btn-sm" submit>Submit</button>
+                            <button class="btn btn-default border btn-sm" cancel>Cancel</button>
+                        </div>
+                    </form>
+                @endif
             </div>
+        </div>
+        @endif
 
         <hr class="m-negator my-3">