Forráskód Böngészése

Hide "Cancel" bill link if not admin pro

Vijayakrishnan Krishnan 5 éve
szülő
commit
1b179e0266

+ 10 - 4
resources/views/app/patient/care-month/dashboard.blade.php

@@ -463,8 +463,8 @@
                             @endif
                         @endif
                     </h6>
-                    <span class="mx-2 text-secondary">|</span>
                     @if($activeCMBill === false)
+                        <span class="mx-2 text-secondary">|</span>
                         <div moe>
                         <a start show class="py-0 mb-3">Generate</a>
                         <form url="/api/careMonth/generateBillForCm">
@@ -489,6 +489,7 @@
                     </div>
                     @else
                         @if(!$activeCMBill->is_signed_by_hcp && $activeCMBill->hcp_pro_id === $pro->id)
+                        <span class="mx-2 text-secondary">|</span>
                         <div moe>
                             <a start show class="py-0 mb-3 text-success">Sign as HCP</a>
                             <form url="/api/bill/signAsHcp">
@@ -500,8 +501,9 @@
                                 </div>
                             </form>
                         </div>
-                        <span class="mx-2 text-secondary">|</span>
                         @endif
+                        @if($pro->pro_type === 'ADMIN')
+                        <span class="mx-2 text-secondary">|</span>
                         <div moe>
                             <a start show class="py-0 mb-3 text-danger">Cancel</a>
                             <form url="/api/bill/markCancelled">
@@ -516,6 +518,7 @@
                                 </div>
                             </form>
                         </div>
+                        @endif
                     @endif
                 </div>
                 @if($activeCMBill !== false)
@@ -646,8 +649,8 @@
                             @endif
                         @endif
                     </h6>
-                    <span class="mx-2 text-secondary">|</span>
                     @if($activeRMBill === false)
+                        <span class="mx-2 text-secondary">|</span>
                         <div moe>
                             <a start show class="py-0 mb-3">Generate</a>
                             <form url="/api/careMonth/generateBillForRm">
@@ -672,6 +675,7 @@
                         </div>
                     @else
                         @if(!$activeRMBill->is_signed_by_hcp && $activeRMBill->hcp_pro_id === $pro->id)
+                        <span class="mx-2 text-secondary">|</span>
                         <div moe>
                             <a start show class="py-0 mb-3 text-success">Sign as HCP</a>
                             <form url="/api/bill/signAsHcp">
@@ -683,8 +687,9 @@
                                 </div>
                             </form>
                         </div>
-                        <span class="mx-2 text-secondary">|</span>
                         @endif
+                        @if($pro->pro_type === 'ADMIN')
+                        <span class="mx-2 text-secondary">|</span>
                         <div moe relative>
                             <a start show class="py-0 mb-3 text-danger">Cancel</a>
                             <form url="/api/bill/markCancelled" right>
@@ -699,6 +704,7 @@
                                 </div>
                             </form>
                         </div>
+                        @endif
                     @endif
                 </div>
                 @if($activeRMBill !== false)