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

Allow every pro to create new patients

Vijayakrishnan Krishnan 4 éve
szülő
commit
62dd341ac7

+ 0 - 4
resources/views/app/new-patient.blade.php

@@ -5,9 +5,6 @@
     <?php $patients = [1,2,3,4]; ?>
 
     <div class="p-3 mcp-theme-1">
-        @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">
             <div class="card d-block mb-3" moe="">
 
@@ -61,7 +58,6 @@
                 </div>
             </div>
         </div>
-        @endif
     </div>
 
 @endsection

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

@@ -49,9 +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() || $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"><a class="nav-link" href="{{ route('new-patient') }}"><i class="mr-1 fas fa-user-plus"></i> New Patient</a> </li>
                 <li class="nav-item dropdown">
                     <a class="nav-link dropdown-toggle" href="#" id="practice-management" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="mr-1 fas fa-tasks"></i> Practice Management</a>
                     <div class="dropdown-menu" aria-labelledby="practice-management">