Bläddra i källkod

cleaned up note dashboard page

= 3 år sedan
förälder
incheckning
589664626d

+ 1 - 1
resources/views/app/generic-bills/create_generic-bill.blade.php

@@ -1,5 +1,5 @@
 <div moe wide relative class="">
-    <a class="" href="" show start>Create {{@$label ? $label : 'Admin.'}} Bill</a>
+    <a class="" href="" show start>Create Bill</a>
     @if (!!@$entityType && file_exists(resource_path('views/app/generic-bills/add-bill-form/' . $entityType . '.blade.php')))
         @include('app.generic-bills.add-bill-form.' . $entityType)
     @else

+ 6 - 10
resources/views/app/generic-bills/inline.blade.php

@@ -16,20 +16,16 @@ $genericBills = genericBills($pro, @$patient, @$entityType, @$entityUid);
 
 @if(!count($genericBills))
     <div class="{{@$class ? $class : ''}} d-flex align-items-center">
-        <p class="font-weight-bold mb-0">No {{@$label ? $label : 'Admin.'}} Bills</p>
-        @if($pro->is_arbitrary_generic_bill_enabled)
-            <span class="mx-2 text-secondary">|</span>
-            @include('app.generic-bills.create_generic-bill')
-        @endif
+        <p class="font-weight-bold mb-0">No  Bills</p>
+        <span class="mx-2 text-secondary">|</span>
+        @include('app.generic-bills.create_generic-bill')
     </div>
 @else
     <div class="{{@$class ? $class : ''}}">
         <div class="d-flex align-items-center mb-2">
-            <p class="font-weight-bold m-0">{{@$label ? $label : 'Admin.'}} Bills</p>
-            @if(!@$noCreate && $pro->is_arbitrary_generic_bill_enabled)
-                <span class="mx-2 text-secondary">|</span>
-                @include('app.generic-bills.create_generic-bill')
-            @endif
+            <p class="font-weight-bold m-0">Bills</p>
+            <span class="mx-2 text-secondary">|</span>
+            @include('app.generic-bills.create_generic-bill')
         </div>
             <table class="table table-sm table-striped mb-0 table-bordered">
                 <thead class="bg-light">

+ 1 - 1
resources/views/app/mcp/notes.blade.php

@@ -32,7 +32,7 @@
                     @foreach ($notes as $note)
                     <tr class="{{ $note->is_cancelled ? 'cancelled-item always-clickable' : '' }}">
                         <td>
-                            <a href="/patients/view/{{ $note->client->uid }}/notes/view/{{ $note->uid }}" class="font-weight-bold">
+                            <a href="/pros/view/{{ $note->client->uid }}/notes/view/{{ $note->uid }}" class="font-weight-bold">
                                 {{ friendly_date_time($note->effective_dateest, false) }}
                             </a>
                             @if(!!$note->visitTemplate)

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 3 - 1882
resources/views/app/patient/note/dashboard.blade.php


+ 7 - 18
resources/views/app/patient/notes.blade.php

@@ -8,13 +8,12 @@
     <div class="pt-2 d-flex align-items-start">
         <h6 class="my-0 d-flex align-items-baseline w-100">
             <span class="font-weight-bold font-size-16">Notes</span>
-            @if(true || $patient->latestClientPrimaryCoverage->is_covered == 'YES')
                 @if($isOldClient)
                 <span class="mx-2 text-secondary">|</span>
                 <div moe>
                     <a start show class="py-0 mb-3">Add</a>
                     <form url="/api/note/createUsingTemplate"
-                          redir="/patients/view/{{$patient->uid}}/notes/view/[data]"
+                          redir="/pros/view/{{$patient->uid}}/notes/view/[data]"
                           class="mcp-theme-1">
                         <input type="hidden" name="clientUid" value="{{$patient->uid}}">
                         <input type="hidden" name="title" id="note-create-title" value="">
@@ -67,7 +66,7 @@
                 <div moe>
                 <a start show class="py-0 mb-3 text-info font-weight-bold">Add Visit</a>
                 <form url="/api/visit/create"
-                      redir="/patients/view/{{$patient->uid}}/notes/view/[data]"
+                      redir="/pros/view/{{$patient->uid}}/notes/view/[data]"
                       class="mcp-theme-1">
                     <?php $proVisitTemplates = $pro->visitTemplates(); ?>
                     <input type="hidden" name="clientUid" value="{{$patient->uid}}">
@@ -135,18 +134,8 @@
                     </div>
                 </form>
             </div>
-            @else
-                <span class="ml-3 text-danger">
-                    <i class="fa fa-exclamation-triangle"></i>
-                    <b>Cannot create note.</b> Patient is not covered or coverage is pending verification.
-                </span>
-                @if($pro->pro_type == 'ADMIN')
-                    <a class="ml-3" href="{{route('patients.view.client-primary-coverages', ['patient' => $patient])}}">View Coverages</a>
-                @endif
-            @endif
-
             <select class="ml-auto max-width-300px form-control form-control-sm"
-                    onchange="fastLoad('/patients/view/{{$patient->uid}}/notes/' + this.value, true, false, false)">
+                    onchange="fastLoad('/pros/view/{{$patient->uid}}/notes/' + this.value, true, false, false)">
                 <option value="active" {{ $filter === 'active' ? 'selected' : '' }}>Active notes</option>
                 <option value="cancelled" {{ $filter === 'cancelled' ? 'selected' : '' }}>Cancelled notes</option>
                 <option value="all" {{ $filter === 'all' ? 'selected' : '' }}>All notes</option>
@@ -190,7 +179,7 @@
         @foreach ($records as $note)
             <tr class="{{ $note->is_cancelled ? 'cancelled-item always-clickable' : '' }}">
                 <td>
-                    <a href="/patients/view/{{ $patient->uid }}/notes/view/{{ $note->uid }}">
+                    <a href="/pros/view/{{ $patient->uid }}/notes/view/{{ $note->uid }}">
                         {{ friendly_date_time($note->effective_dateest, false) }}
                     </a>
                     @if(!!$note->visitTemplate)
@@ -239,7 +228,7 @@
                 </td>
                 <td>
                     <div class="d-flex align-items-center">
-                        <a href="/patients/view/{{ $patient->uid }}/notes/view/{{ $note->uid }}" class="font-weight-bold">Open</a>
+                        <a href="/pros/view/{{ $patient->uid }}/notes/view/{{ $note->uid }}" class="font-weight-bold">Open</a>
                         @if(1 || $note->new_or_fu_or_na !== 'NEW')
                             <span class="px-2 text-secondary">|</span>
                             @if(!$note->visit_template_id)
@@ -248,7 +237,7 @@
                                 <div moe relative>
                                     <a start show>Clone Visit</a>
                                     <form url="/api/visit/clone" class="mcp-theme-1" right
-                                          redir="/patients/view/{{$patient->uid}}/notes/view/[data]">
+                                          redir="/pros/view/{{$patient->uid}}/notes/view/[data]">
                                         <input type="hidden" name="visitToCloneUid" value="{{$note->uid}}">
                                         <div class="mb-2">
                                             <label for="" class="text-sm text-secondary mb-1">Effective Date</label>
@@ -325,7 +314,7 @@
                             if(_data) {
                                 if(_data.success) {
                                     toastr.success('Note cloned successfully');
-                                    fastLoad('/patients/view/{{$patient->uid}}/notes/view/' + _data.data);
+                                    fastLoad('/pros/view/{{$patient->uid}}/notes/view/' + _data.data);
                                 }
                                 else {
                                     toastr.error(_data.message);

+ 1 - 1
resources/views/app/rm-bills/create_generic-bill.blade.php

@@ -1,5 +1,5 @@
 <div moe wide relative class="">
-    <a class="" href="" show start>Create {{@$label ? $label : 'Admin.'}} Bill</a>
+    <a class="" href="" show start>Create  Bill</a>
     @if (!!@$entityType && file_exists(resource_path('views/app/rm-bills/add-bill-form/' . $entityType . '.blade.php')))
         @include('app.rm-bills.add-bill-form.' . $entityType)
     @else

Vissa filer visades inte eftersom för många filer har ändrats