Browse Source

Allow MCPs (even without any rates) to add patients

Vijayakrishnan Krishnan 4 years ago
parent
commit
2e073808b7

+ 1 - 1
resources/views/app/new-patient.blade.php

@@ -5,7 +5,7 @@
     <?php $patients = [1,2,3,4]; ?>
 
     <div class="p-3 mcp-theme-1">
-        @if(!$pro->hasRates())
+        @if(!$pro->hasRates() && !$pro->is_enrolled_as_mcp)
             <div class="alert alert-info">Not allowed</div>
         @else
         <div class="col-12 col-lg-6 px-0">

+ 1 - 1
resources/views/layouts/template.blade.php

@@ -49,7 +49,7 @@
             <ul class="navbar-nav mr-auto">
                 <li class="nav-item"><a class="nav-link" href="{{ route('dashboard') }}"><i class="mr-1 fas fa-tachometer-alt"></i> Dashboard</a> </li>
                 <li class="nav-item"><a class="nav-link" href="{{ route('patients') }}"><i class="mr-1 fas fa-user-injured"></i> Patients</a> </li>
-                @if($pro->hasRates())
+                @if($pro->hasRates() || $pro->is_enrolled_as_mcp)
                     <li class="nav-item"><a class="nav-link" href="{{ route('new-patient') }}"><i class="mr-1 fas fa-user-plus"></i> New Patient</a> </li>
                 @endif
                 <li class="nav-item dropdown">