unknown 3 лет назад
Родитель
Сommit
e4cb33ec0f

+ 47 - 32
app/Http/Controllers/McpController.php

@@ -36,73 +36,88 @@ class McpController extends Controller
     public function patients(Request $request)
     {
         $data = [];
-        return view('app.view.mcp.patients', $data);
+        return view('app.mcp.patients', $data);
     }
 
-    public function new_patients_awaiting_visit(Request $request)
+    public function notes(Request $request)
     {
         $data = [];
-        return view('app.view.mcp.new_patients_awaiting_visit', $data);
+        return view('app.mcp.notes', $data);
     }
 
-    public function notes_pending_signature(Request $request)
+    public function appointments(Request $request)
     {
         $data = [];
-        return view('app.view.mcp.notes_pending_signature', $data);
+        return view('app.mcp.appointments', $data);
     }
 
-    public function notes_pending_billing(Request $request)
+    public function bills(Request $request)
     {
         $data = [];
-        return view('app.view.mcp.notes_pending_billing', $data);
+        return view('app.mcp.bills', $data);
     }
 
-    public function reports_pending_signature(Request $request)
+    public function erx_and_orders(Request $request)
     {
         $data = [];
-        return view('app.view.mcp.reports_pending_signature', $data);
+        return view('app.mcp.erx_and_orders', $data);
     }
 
-    public function patients_without_appointments(Request $request)
+    public function reports(Request $request)
     {
         $data = [];
-        return view('app.view.mcp.patients_without_appointments', $data);
+        return view('app.mcp.reports', $data);
     }
 
-    public function patients_overdue(Request $request)
+    public function supply_orders(Request $request)
     {
         $data = [];
-        return view('app.view.mcp.patients_overdue', $data);
+        return view('app.mcp.supply_orders', $data);
     }
 
-    public function cancelled_appointments_pending_review(Request $request)
-    {
+    public function new_patients_awaiting_visit(Request $request){
         $data = [];
-        return view('app.view.mcp.cancelled_appointments_pending_review', $data);
+        return view('app.mcp.new_patients_awaiting_visit', $data);
     }
-
-    public function cancelled_bills_pending_review(Request $request)
-    {
+    public function notes_pending_signature(Request $request){
         $data = [];
-        return view('app.view.mcp.cancelled_bills_pending_review', $data);
+        return view('app.mcp.notes_pending_signature', $data);
     }
-
-    public function cancelled_supply_orders_pending_review(Request $request)
-    {
+    public function notes_pending_billing(Request $request){
         $data = [];
-        return view('app.view.mcp.cancelled_supply_orders_pending_review', $data);
+        return view('app.mcp.notes_pending_billing', $data);
     }
-
-    public function erx_and_orders_pending_signature(Request $request)
-    {
+    public function reports_pending_signature(Request $request){
         $data = [];
-        return view('app.view.mcp.erx_and_orders_pending_signature', $data);
+        return view('app.mcp.reports_pending_signature', $data);
     }
-
-    public function supply_orders_pending_signature(Request $request)
-    {
+    public function patients_without_appointments(Request $request){
+        $data = [];
+        return view('app.mcp.patients_without_appointments', $data);
+    }
+    public function patients_overdue_for_visit(Request $request){
+        $data = [];
+        return view('app.mcp.patients_overdue_for_visit', $data);
+    }
+    public function cancelled_appointments_pending_review(Request $request){
+        $data = [];
+        return view('app.mcp.cancelled_appointments_pending_review', $data);
+    }
+    public function cancelled_bills_pending_review(Request $request){
+        $data = [];
+        return view('app.mcp.cancelled_bills_pending_review', $data);
+    }
+    public function cancelled_supply_orders_pending_review(Request $request){
+        $data = [];
+        return view('app.mcp.cancelled_supply_orders_pending_review', $data);
+    }
+    public function erx_and_orders_pending_signature(Request $request){
+        $data = [];
+        return view('app.mcp.erx_and_orders_pending_signature', $data);
+    }
+    public function supply_orders_pending_signature(Request $request){
         $data = [];
-        return view('app.view.mcp.supply_orders_pending_signature', $data);
+        return view('app.mcp.supply_orders_pending_signature', $data);
     }
 
 }

+ 649 - 174
resources/views/app/dashboard-mcp.blade.php

@@ -7,6 +7,7 @@
             padding: 0.25em;
             font-weight: normal;
         }
+
         table.appointments tr td {
             vertical-align: middle;
         }
@@ -16,7 +17,7 @@
         <div class="">
             <div class="row mcp-theme-1" id="pro-dashboard-container" v-cloak>
                 <div class="col-md-3 mcp-theme-1">
-                    <div class="mb-4" v-show="tab==='appointments'">
+                    <div class="mb-4">
                         <div class="pro-dashboard-inline-calendar"></div>
                     </div>
                     <div class="card mb-4">
@@ -37,13 +38,17 @@
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_new_patients_awaiting_visit_count_as_mcp()}}</th>
                                     <th class="pl-2">
-                                        <a href="{{ route('mcp.new_patients_awaiting_visit') }}">New Patients Awaiting Visit</a>
+                                        <a href="{{ route('mcp.new_patients_awaiting_visit') }}">
+                                            New Patients Awaiting Visit
+                                        </a>
                                     </th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_notes_pending_signature_count_as_mcp()}}</th>
                                     <th class="pl-2">
-                                        <a href="{{ route('mcp.notes_pending_signature') }}">Notes Pending Signature</a>
+                                        <a href="{{ route('mcp.notes_pending_signature') }}">
+                                            Notes Pending Signature
+                                        </a>
                                     </th>
                                 </tr>
                                 <tr>
@@ -55,51 +60,58 @@
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_incoming_reports_pending_signature_count_as_mcp()}}</th>
                                     <th class="pl-2">
-                                        <a href="{{ route('mcp.reports_pending_signature') }}">Reports Pending Signature</a>
+                                        <a href="{{ route('mcp.reports_pending_signature') }}">Reports Pending
+                                            Signature</a>
                                     </th>
                                 </tr>
 
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_patients_without_appointment_count_as_mcp()}}</th>
                                     <th class="pl-2">
-                                        <a href="{{ route('mcp.patients_without_appointments') }}">Patients w/o Appointments</a>
+                                        <a href="{{ route('mcp.patients_without_appointments') }}">Patients w/o
+                                            Appointments</a>
                                     </th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_patients_overdue_count_as_mcp()}}</th>
                                     <th class="pl-2">
-                                        <a href="{{ route('mcp.patients_overdue') }}">Patients Overdue</a>
+                                        <a href="{{ route('mcp.patients_overdue_for_visit') }}">Patients Overdue for Visit</a>
                                     </th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_cancelled_appointments_pending_acknowledgement_count_as_mcp()}}</th>
                                     <th class="pl-2">
-                                        <a href="{{ route('mcp.cancelled_appointments_pending_review') }}">Cancelled Appts. Pending Review</a>
+                                        <a href="{{ route('mcp.cancelled_appointments_pending_review') }}">Cancelled
+                                            Appts. Pending Review</a>
                                     </th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_cancelled_bills_awaiting_review_count_as_mcp()}}</th>
                                     <th class="pl-2">
-                                        <a href="{{ route('mcp.cancelled_bills_pending_review') }}">Cancelled Bills Pending Review</a>
+                                        <a href="{{ route('mcp.cancelled_bills_pending_review') }}">Cancelled Bills
+                                            Pending Review</a>
                                     </th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_cancelled_supply_orders_awaiting_review_count_as_mcp()}}</th>
                                     <th class="pl-2">
-                                        <a href="{{ route('mcp.cancelled_supply_orders_pending_review') }}">Cancelled Supply Orders Pending Review</a>
+                                        <a href="{{ route('mcp.cancelled_supply_orders_pending_review') }}">Cancelled
+                                            Supply Orders Pending Review</a>
                                     </th>
                                 </tr>
 
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_erx_and_orders_awaiting_signature_count_as_mcp()}}</th>
                                     <th class="pl-2">
-                                        <a href="{{ route('mcp.erx_and_orders_pending_signature') }}">ERx & Orders Pending Signature</a>
+                                        <a href="{{ route('mcp.erx_and_orders_pending_signature') }}">ERx & Orders
+                                            Pending Signature</a>
                                     </th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_supply_orders_awaiting_signature_count_as_mcp()}}</th>
                                     <th class="pl-2">
-                                        <a href="{{ route('mcp.supply_orders_pending_signature') }}">Supply Orders Pending Signature</a>
+                                        <a href="{{ route('mcp.supply_orders_pending_signature') }}">Supply Orders
+                                            Pending Signature</a>
                                     </th>
                                 </tr>
                                 </tbody>
@@ -136,8 +148,8 @@
                         <div class="card-body p-0">
                             <table class="table mb-0 dashboard-stats-table">
                                 <tbody>
-                                <tr>
-                                    <th colspan="2">Revenue Cycle Management</th>
+                                <tr class="thin">
+                                    <th colspan="2" class="font-weight-normal px-2 pl-2">Billing & Reimbursement</th>
                                 </tr>
                                 <tr class="thin">
                                     <th class="font-weight-normal px-2 pl-4">{{friendly_date_time($reimbursement['nextPaymentDate'], false)}}</th>
@@ -197,38 +209,39 @@
 
                             <!-- Appointment Updates -->
 
-                            @if(count($proApptUpdates))
-                            <div class="card mb-4 ack-container">
-                                <div class="card-header pl-2">
-                                    <strong>
-                                        Appointment Updates
-                                    </strong>
-                                </div>
-                                <div class="card-body p-0">
-                                    <table class="table table-sm mb-0 table-bordered">
-                                        <tbody>
-                                        <tr>
-                                            <th>Client</th>
-                                            <th>Appt. Date/Time</th>
-                                            <th>Status</th>
-                                            <th></th>
-                                        </tr>
-                                        </thead>
-                                        <tbody>
-                                        @foreach($proApptUpdates as $update)
+                            @if(false && count($proApptUpdates))
+                                <div class="card mb-4 ack-container">
+                                    <div class="card-header pl-2">
+                                        <strong>
+                                            Appointment Updates
+                                        </strong>
+                                    </div>
+                                    <div class="card-body p-0">
+                                        <table class="table table-sm mb-0 table-bordered">
+                                            <tbody>
                                             <tr>
-                                                <td>{{$update->name_first}} {{$update->name_last}}</td>
-                                                <td>{{friendlier_date_time($update->start_time)}}</td>
-                                                <td>{{$update->status}}</td>
-                                                <td>
-                                                    <a href="#" class="ack-pro-appt-update" data-uid="{{$update->uid}}">Acknowledge</a>
-                                                </td>
+                                                <th>Client</th>
+                                                <th>Appt. Date/Time</th>
+                                                <th>Status</th>
+                                                <th></th>
                                             </tr>
-                                        @endforeach
-                                        </tbody>
-                                    </table>
+                                            </thead>
+                                            <tbody>
+                                            @foreach($proApptUpdates as $update)
+                                                <tr>
+                                                    <td>{{$update->name_first}} {{$update->name_last}}</td>
+                                                    <td>{{friendlier_date_time($update->start_time)}}</td>
+                                                    <td>{{$update->status}}</td>
+                                                    <td>
+                                                        <a href="#" class="ack-pro-appt-update"
+                                                           data-uid="{{$update->uid}}">Acknowledge</a>
+                                                    </td>
+                                                </tr>
+                                            @endforeach
+                                            </tbody>
+                                        </table>
+                                    </div>
                                 </div>
-                            </div>
                             @endif
 
                         <!-- new associations -->
@@ -278,155 +291,617 @@
                         </div>
                     </div>
 
-                    <ul class="nav nav-tabs">
-                        <li class="nav-item">
-                            <a native data-tab="appointments" class="nav-link"
-                               :class="tab == 'appointments' ? 'active' : ''" href="#"
-                               v-on:click.prevent="tab='appointments'; initLoadAppointments();">
-                                Appointments
-                            </a>
-                        </li>
-                        <li class="nav-item">
-                            <a native data-tab="measurements" class="nav-link"
-                               :class="tab == 'measurements' ? 'active' : ''" href="#"
-                               v-on:click.prevent="tab='measurements'; loadMeasurements();">
-                                Measurements
-                            </a>
-                        </li>
-                        <li class="nav-item">
-                            <a native data-tab="incoming_reports"
-                               class="nav-link {{count($incomingReports) ? 'text-danger font-weight-bold' : ''}}"
-                               :class="tab == 'incoming_reports' ? 'active' : ''" href="#"
-                               v-on:click.prevent="tab='incoming_reports'">
-                                Reports ({{count($incomingReports)}})
-                            </a>
-                        </li>
-                        <li class="nav-item">
-                            <a native data-tab="erx" class="nav-link {{$numERx ? 'text-danger font-weight-bold' : ''}}"
-                               :class="tab == 'erx' ? 'active' : ''" href="#"
-                               v-on:click.prevent="tab='erx'">
-                                ERx & Orders ({{$numERx}})
-                            </a>
-                        </li>
-                        <li class="nav-item">
-                            <a native data-tab="supply_orders"
-                               class="nav-link {{$numSupplyOrders ? 'text-danger font-weight-bold' : ''}}"
-                               :class="tab == 'supply_orders' ? 'active' : ''" href="#"
-                               v-on:click.prevent="tab='supply_orders'">
-                                Supply Orders ({{$numSupplyOrders}})
-                            </a>
-                        </li>
-                    </ul>
-
-                    <div class="border-left border-right border-bottom p-3">
-                        <div v-show="tab==='appointments'" class="appointments-tab">
-                            <div v-show="selectedDate">
-                                <div class="d-flex align-items-end mb-3">
-                                    <b class="large"><span class="text-secondary"></span>@{{ selectedDate }}</b>
-                                    <div class="ml-auto d-inline-flex align-items-center">
-                                        <label class="text-secondary mr-2 my-0 text-nowrap">Filter by status:</label>
-                                        <select v-model="filterStatus"
-                                                class="form-control form-control-sm">
-                                            <option value="">All</option>
-                                            <option value="CREATED">Created</option>
-                                            <option value="CONFIRMED">Confirmed</option>
-                                            <option value="CANCELLED">Cancelled</option>
-                                            <option value="COMPLETED">Completed</option>
-                                            <option value="ABANDONED">Abandoned</option>
-                                        </select>
-                                    </div>
+                    <div class="row mcp-theme-1" id="pro-dashboard-container" v-cloak>
+                        <div class="col-md-6 mcp-theme-1">
+                            <div class="card mb-4">
+                                <div class="card-header pl-2">
+                                    <strong>
+                                        Appointments
+                                    </strong>
                                 </div>
-
-                                <table class="table table-sm table-bordered appointments">
-                                    <tr v-for="event in events" class="">
-                                        <td>
-                                            <a :href="'/patients/view/' + event.clientUid" class="font-weight-bold">@{{
-                                                event.clientName }}</a>
-                                            <span class="small d-inline-block text-secondary font-weight-normal"> (@{{ event.clientAge }} y.o. @{{event.clientSex}})</span>
-                                        </td>
-                                        <td>
-                                            @{{ event.friendlyStartTime }} - @{{ event.friendlyEndTime }} <span
-                                                class="text-secondary">@{{ event.timezone }}</span>
-                                            <span v-if="event.title" class="d-inline-block ml- 2 text-secondary font-weight-bold">
+                                <div class="card-body p-0">
+                                    <table class="table table-sm table-bordered appointments">
+                                        <tr v-for="event in events" class="">
+                                            <td>
+                                                <a :href="'/patients/view/' + event.clientUid" class="font-weight-bold">@{{
+                                                    event.clientName }}</a>
+                                                &nbsp;&nbsp;
+                                                {{--                                                <span class="small d-inline-block text-secondary font-weight-normal"> (@{{ event.clientAge }} y.o. @{{event.clientSex}})</span>--}}
+                                                @{{ event.friendlyStartTime }} - @{{ event.friendlyEndTime }} <span
+                                                    class="text-secondary">@{{ event.timezone }}</span>
+                                                <span v-if="event.title"
+                                                      class="d-inline-block ml- 2 text-secondary font-weight-bold">
                                                         &nbsp;/&nbsp;
                                                     @{{ event.title }}
                                                     </span>
-                                            <a :href="'/patients/view/' + event.clientUid + '/calendar/' + event.uid">
-                                                <i class="fa fa-edit"></i>
-                                                Edit
-                                            </a>
-                                        </td>
-                                        <td>
-                                            <div class="d-flex align-items-baseline">
-                                                <div v-if="event.status === 'CREATED'"
-                                                     class="text-warning-mellow font-weight-bold">
-                                                    <i class="fa fa-exclamation-triangle"></i>
-                                                    Confirmation pending
+                                                <a :href="'/patients/view/' + event.clientUid + '/calendar/' + event.uid">
+                                                    <i class="fa fa-edit"></i>
+                                                </a>
+                                                <div class="d-flex align-items-baseline">
+                                                    <div v-if="event.status === 'CREATED'"
+                                                         class="text-warning-mellow font-weight-bold">
+                                                        <i class="fa fa-exclamation-triangle"></i>
+                                                        Confirmation pending
+                                                    </div>
+                                                    <div v-else-if="event.status === 'CONFIRMED'"
+                                                         class="text-success font-weight-bold">
+                                                        <i class="fa fa-check"></i>
+                                                        Confirmed by the patient
+                                                    </div>
+                                                    <div v-else-if="event.status === 'REJECTED'"
+                                                         class="text-danger font-weight-bold">
+                                                        <i class="fa fa-stop"></i>
+                                                        Rejected by the patient
+                                                    </div>
+                                                    <div v-else class="text-secondary">
+                                                        Status: <b>@{{ event.status }}</b>
+                                                    </div>
                                                 </div>
-                                                <div v-else-if="event.status === 'CONFIRMED'"
-                                                     class="text-success font-weight-bold">
-                                                    <i class="fa fa-check"></i>
-                                                    Confirmed by the patient
+                                                <div>
+                                                    <div class=""
+                                                         :class="event.coverage !== 'YES' ? (event.coverage === 'NO' ? 'text-danger' : 'text-warning-mellow') : 'text-success'">
+                                                        Coverage Status: <b>@{{ event.coverage }}</b>
+                                                    </div>
                                                 </div>
-                                                <div v-else-if="event.status === 'REJECTED'"
-                                                     class="text-danger font-weight-bold">
-                                                    <i class="fa fa-stop"></i>
-                                                    Rejected by the patient
+                                                <div class="ml-auto">
+                                                    <select v-model="event.newStatus"
+                                                            class="form-control form-control-sm bg-light"
+                                                            v-on:change="updateStatus(event)">
+                                                        <option value="CREATED">CREATED</option>
+                                                        <option value="CONFIRMED">CONFIRMED</option>
+                                                        <option value="CANCELLED">CANCELLED</option>
+                                                        <option value="COMPLETED">COMPLETED</option>
+                                                        <option value="ABANDONED">ABANDONED</option>
+                                                    </select>
+                                                    <div v-if="selectedDate === '{{ date('Y-m-d') }}'"
+                                                         class="pt-1 text-right"
+                                                         :class="event.started ? 'text-danger': 'text-secondary'">
+                                                        @{{ event.inHowManyHours }}
+                                                    </div>
                                                 </div>
-                                                <div v-else class="text-secondary">
-                                                    Status: <b>@{{ event.status }}</b>
+                                            </td>
+                                        </tr>
+                                    </table>
+                                </div>
+                            </div>
+                            <div class="card mb-4">
+                                <div class="card-header pl-2">
+                                    <strong>
+                                        Measurements
+                                    </strong>
+                                </div>
+                                <div class="card-body p-0">
+                                    <table class="table table-sm mb-0 dashboard-stats-table">
+                                        <tbody>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_patients_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.patients') }}">Patients</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_new_patients_awaiting_visit_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.new_patients_awaiting_visit') }}">New Patients
+                                                    Awaiting
+                                                    Visit</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_notes_pending_signature_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.notes_pending_signature') }}">Notes Pending
+                                                    Signature</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_notes_pending_billing_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.notes_pending_billing') }}">Notes Pending
+                                                    Billing</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_incoming_reports_pending_signature_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.reports_pending_signature') }}">Reports Pending
+                                                    Signature</a>
+                                            </th>
+                                        </tr>
+
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_patients_without_appointment_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.patients_without_appointments') }}">Patients w/o
+                                                    Appointments</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_patients_overdue_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.patients_overdue_for_visit') }}">Patients Overdue for
+                                                    Visit</a>
+                                            </th>
+                                        </tr>
+                                        </tbody>
+                                    </table>
+                                </div>
+                            </div>
+                            <div class="card mb-4">
+                                <div class="card-header pl-2">
+                                    <strong>
+                                        ERx & Orders
+                                    </strong>
+                                </div>
+                                <div class="card-body p-0">
+                                    <table class="table table-sm mb-0 dashboard-stats-table">
+                                        <tbody>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_patients_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.patients') }}">Patients</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_new_patients_awaiting_visit_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.new_patients_awaiting_visit') }}">New Patients
+                                                    Awaiting
+                                                    Visit</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_notes_pending_signature_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.notes_pending_signature') }}">Notes Pending
+                                                    Signature</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_notes_pending_billing_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.notes_pending_billing') }}">Notes Pending
+                                                    Billing</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_incoming_reports_pending_signature_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.reports_pending_signature') }}">Reports Pending
+                                                    Signature</a>
+                                            </th>
+                                        </tr>
+
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_patients_without_appointment_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.patients_without_appointments') }}">Patients w/o
+                                                    Appointments</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_patients_overdue_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.patients_overdue_for_visit') }}">Patients Overdue for
+                                                    Visit</a>
+                                            </th>
+                                        </tr>
+                                        </tbody>
+                                    </table>
+                                </div>
+                            </div>
+                            <div class="card mb-4">
+                                <div class="card-header pl-2">
+                                    <strong>
+                                        Supply Orders
+                                    </strong>
+                                </div>
+                                <div class="card-body p-0">
+                                    <table class="table table-sm mb-0 dashboard-stats-table">
+                                        <tbody>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_patients_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.patients') }}">Patients</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_new_patients_awaiting_visit_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.new_patients_awaiting_visit') }}">New Patients
+                                                    Awaiting
+                                                    Visit</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_notes_pending_signature_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.notes_pending_signature') }}">Notes Pending
+                                                    Signature</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_notes_pending_billing_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.notes_pending_billing') }}">Notes Pending
+                                                    Billing</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_incoming_reports_pending_signature_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.reports_pending_signature') }}">Reports Pending
+                                                    Signature</a>
+                                            </th>
+                                        </tr>
+
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_patients_without_appointment_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.patients_without_appointments') }}">Patients w/o
+                                                    Appointments</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_patients_overdue_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.patients_overdue_for_visit') }}">Patients Overdue for
+                                                    Visit</a>
+                                            </th>
+                                        </tr>
+                                        </tbody>
+                                    </table>
+                                </div>
+                            </div>
+                        </div>
+                        <div class="col-md-6 mcp-theme-1">
+                            <div class="card mb-4">
+                                <div class="card-header pl-2">
+                                    <strong>
+                                        Notifications
+                                    </strong>
+                                </div>
+                                <div class="card-body p-0">
+                                    <table class="table table-sm mb-0 dashboard-stats-table">
+                                        <tbody>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_patients_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.patients') }}">Patients</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_new_patients_awaiting_visit_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.new_patients_awaiting_visit') }}">New Patients
+                                                    Awaiting
+                                                    Visit</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_notes_pending_signature_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.notes_pending_signature') }}">Notes Pending
+                                                    Signature</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_notes_pending_billing_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.notes_pending_billing') }}">Notes Pending
+                                                    Billing</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_incoming_reports_pending_signature_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.reports_pending_signature') }}">Reports Pending
+                                                    Signature</a>
+                                            </th>
+                                        </tr>
+
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_patients_without_appointment_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.patients_without_appointments') }}">Patients w/o
+                                                    Appointments</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_patients_overdue_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.patients_overdue_for_visit') }}">Patients Overdue for
+                                                    Visit</a>
+                                            </th>
+                                        </tr>
+                                        </tbody>
+                                    </table>
+                                </div>
+                            </div>
+                            <div class="card mb-4">
+                                <div class="card-header pl-2">
+                                    <strong>
+                                        Messages
+                                    </strong>
+                                </div>
+                                <div class="card-body p-0">
+                                    <table class="table table-sm mb-0 dashboard-stats-table">
+                                        <tbody>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_patients_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.patients') }}">Patients</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_new_patients_awaiting_visit_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.new_patients_awaiting_visit') }}">New Patients
+                                                    Awaiting
+                                                    Visit</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_notes_pending_signature_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.notes_pending_signature') }}">Notes Pending
+                                                    Signature</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_notes_pending_billing_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.notes_pending_billing') }}">Notes Pending
+                                                    Billing</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_incoming_reports_pending_signature_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.reports_pending_signature') }}">Reports Pending
+                                                    Signature</a>
+                                            </th>
+                                        </tr>
+
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_patients_without_appointment_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.patients_without_appointments') }}">Patients w/o
+                                                    Appointments</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_patients_overdue_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.patients_overdue_for_visit') }}">Patients Overdue for
+                                                    Visit</a>
+                                            </th>
+                                        </tr>
+                                        </tbody>
+                                    </table>
+                                </div>
+                            </div>
+                            <div class="card mb-4">
+                                <div class="card-header pl-2">
+                                    <strong>
+                                        Phone Calls & Memos
+                                    </strong>
+                                </div>
+                                <div class="card-body p-0">
+                                    <table class="table table-sm mb-0 dashboard-stats-table">
+                                        <tbody>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_patients_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.patients') }}">Patients</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_new_patients_awaiting_visit_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.new_patients_awaiting_visit') }}">New Patients
+                                                    Awaiting
+                                                    Visit</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_notes_pending_signature_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.notes_pending_signature') }}">Notes Pending
+                                                    Signature</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_notes_pending_billing_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.notes_pending_billing') }}">Notes Pending
+                                                    Billing</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_incoming_reports_pending_signature_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.reports_pending_signature') }}">Reports Pending
+                                                    Signature</a>
+                                            </th>
+                                        </tr>
+
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_patients_without_appointment_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.patients_without_appointments') }}">Patients w/o
+                                                    Appointments</a>
+                                            </th>
+                                        </tr>
+                                        <tr>
+                                            <th class="px-2 text-center">{{$pro->get_patients_overdue_count_as_mcp()}}</th>
+                                            <th class="pl-2">
+                                                <a href="{{ route('mcp.patients_overdue_for_visit') }}">Patients Overdue for
+                                                    Visit</a>
+                                            </th>
+                                        </tr>
+                                        </tbody>
+                                    </table>
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+
+                    <div style="">
+                        <ul class="nav nav-tabs">
+                            <li class="nav-item">
+                                <a native data-tab="appointments" class="nav-link"
+                                   :class="tab == 'appointments' ? 'active' : ''" href="#"
+                                   v-on:click.prevent="tab='appointments'; initLoadAppointments();">
+                                    Appointments
+                                </a>
+                            </li>
+                            <li class="nav-item">
+                                <a native data-tab="measurements" class="nav-link"
+                                   :class="tab == 'measurements' ? 'active' : ''" href="#"
+                                   v-on:click.prevent="tab='measurements'; loadMeasurements();">
+                                    Measurements
+                                </a>
+                            </li>
+                            <li class="nav-item">
+                                <a native data-tab="incoming_reports"
+                                   class="nav-link {{count($incomingReports) ? 'text-danger font-weight-bold' : ''}}"
+                                   :class="tab == 'incoming_reports' ? 'active' : ''" href="#"
+                                   v-on:click.prevent="tab='incoming_reports'">
+                                    Reports ({{count($incomingReports)}})
+                                </a>
+                            </li>
+                            <li class="nav-item">
+                                <a native data-tab="erx"
+                                   class="nav-link {{$numERx ? 'text-danger font-weight-bold' : ''}}"
+                                   :class="tab == 'erx' ? 'active' : ''" href="#"
+                                   v-on:click.prevent="tab='erx'">
+                                    ERx & Orders ({{$numERx}})
+                                </a>
+                            </li>
+                            <li class="nav-item">
+                                <a native data-tab="supply_orders"
+                                   class="nav-link {{$numSupplyOrders ? 'text-danger font-weight-bold' : ''}}"
+                                   :class="tab == 'supply_orders' ? 'active' : ''" href="#"
+                                   v-on:click.prevent="tab='supply_orders'">
+                                    Supply Orders ({{$numSupplyOrders}})
+                                </a>
+                            </li>
+                        </ul>
+
+                        <div class="border-left border-right border-bottom p-3">
+                            <div v-show="tab==='appointments'" class="appointments-tab">
+                                <div v-show="selectedDate">
+                                    <div class="d-flex align-items-end mb-3">
+                                        <b class="large"><span class="text-secondary"></span>@{{ selectedDate }}</b>
+                                        <div class="ml-auto d-inline-flex align-items-center">
+                                            <label class="text-secondary mr-2 my-0 text-nowrap">Filter by
+                                                status:</label>
+                                            <select v-model="filterStatus"
+                                                    class="form-control form-control-sm">
+                                                <option value="">All</option>
+                                                <option value="CREATED">Created</option>
+                                                <option value="CONFIRMED">Confirmed</option>
+                                                <option value="CANCELLED">Cancelled</option>
+                                                <option value="COMPLETED">Completed</option>
+                                                <option value="ABANDONED">Abandoned</option>
+                                            </select>
+                                        </div>
+                                    </div>
+
+                                    <table class="table table-sm table-bordered appointments">
+                                        <tr v-for="event in events" class="">
+                                            <td>
+                                                <a :href="'/patients/view/' + event.clientUid" class="font-weight-bold">@{{
+                                                    event.clientName }}</a>
+                                                <span class="small d-inline-block text-secondary font-weight-normal"> (@{{ event.clientAge }} y.o. @{{event.clientSex}})</span>
+                                            </td>
+                                            <td>
+                                                @{{ event.friendlyStartTime }} - @{{ event.friendlyEndTime }} <span
+                                                    class="text-secondary">@{{ event.timezone }}</span>
+                                                <span v-if="event.title"
+                                                      class="d-inline-block ml- 2 text-secondary font-weight-bold">
+                                                        &nbsp;/&nbsp;
+                                                    @{{ event.title }}
+                                                    </span>
+                                                <a :href="'/patients/view/' + event.clientUid + '/calendar/' + event.uid">
+                                                    <i class="fa fa-edit"></i>
+                                                    Edit
+                                                </a>
+                                            </td>
+                                            <td>
+                                                <div class="d-flex align-items-baseline">
+                                                    <div v-if="event.status === 'CREATED'"
+                                                         class="text-warning-mellow font-weight-bold">
+                                                        <i class="fa fa-exclamation-triangle"></i>
+                                                        Confirmation pending
+                                                    </div>
+                                                    <div v-else-if="event.status === 'CONFIRMED'"
+                                                         class="text-success font-weight-bold">
+                                                        <i class="fa fa-check"></i>
+                                                        Confirmed by the patient
+                                                    </div>
+                                                    <div v-else-if="event.status === 'REJECTED'"
+                                                         class="text-danger font-weight-bold">
+                                                        <i class="fa fa-stop"></i>
+                                                        Rejected by the patient
+                                                    </div>
+                                                    <div v-else class="text-secondary">
+                                                        Status: <b>@{{ event.status }}</b>
+                                                    </div>
                                                 </div>
-                                            </div>
-                                        </td>
-                                        <td>
-                                            <div>
+                                            </td>
+                                            <td>
+                                                <div>
 
-                                                <div class="mt-1"
-                                                     :class="event.coverage !== 'YES' ? (event.coverage === 'NO' ? 'text-danger' : 'text-warning-mellow') : 'text-success'">
-                                                    Coverage Status: <b>@{{ event.coverage }}</b>
+                                                    <div class="mt-1"
+                                                         :class="event.coverage !== 'YES' ? (event.coverage === 'NO' ? 'text-danger' : 'text-warning-mellow') : 'text-success'">
+                                                        Coverage Status: <b>@{{ event.coverage }}</b>
+                                                    </div>
                                                 </div>
-                                            </div>
-                                        </td>
-                                        <td>
-                                            <div class="ml-auto">
-                                                <select v-model="event.newStatus"
-                                                        class="form-control form-control-sm bg-light"
-                                                        v-on:change="updateStatus(event)">
-                                                    <option value="CREATED">CREATED</option>
-                                                    <option value="CONFIRMED">CONFIRMED</option>
-                                                    <option value="CANCELLED">CANCELLED</option>
-                                                    <option value="COMPLETED">COMPLETED</option>
-                                                    <option value="ABANDONED">ABANDONED</option>
-                                                </select>
-                                                <div v-if="selectedDate === '{{ date('Y-m-d') }}'"
-                                                     class="pt-1 text-right"
-                                                     :class="event.started ? 'text-danger': 'text-secondary'">
-                                                    @{{ event.inHowManyHours }}
+                                            </td>
+                                            <td>
+                                                <div class="ml-auto">
+                                                    <select v-model="event.newStatus"
+                                                            class="form-control form-control-sm bg-light"
+                                                            v-on:change="updateStatus(event)">
+                                                        <option value="CREATED">CREATED</option>
+                                                        <option value="CONFIRMED">CONFIRMED</option>
+                                                        <option value="CANCELLED">CANCELLED</option>
+                                                        <option value="COMPLETED">COMPLETED</option>
+                                                        <option value="ABANDONED">ABANDONED</option>
+                                                    </select>
+                                                    <div v-if="selectedDate === '{{ date('Y-m-d') }}'"
+                                                         class="pt-1 text-right"
+                                                         :class="event.started ? 'text-danger': 'text-secondary'">
+                                                        @{{ event.inHowManyHours }}
+                                                    </div>
                                                 </div>
-                                            </div>
-                                        </td>
-                                    </tr>
-                                </table>
+                                            </td>
+                                        </tr>
+                                    </table>
 
-                                <div v-if="numEventsForDate === 0" class="bg-light p-3 text-secondary border bounded">
+                                    <div v-if="numEventsForDate === 0"
+                                         class="bg-light p-3 text-secondary border bounded">
                                     <span
                                         v-if="filterStatus === ''">You have no appointments on <b>@{{ selectedDate }}</b></span>
-                                    <span
-                                        v-if="filterStatus !== ''">You have no appointments on <b>@{{ selectedDate }}</b> with status <b>@{{ filterStatus }}</b></span>
+                                        <span
+                                            v-if="filterStatus !== ''">You have no appointments on <b>@{{ selectedDate }}</b> with status <b>@{{ filterStatus }}</b></span>
+                                    </div>
+                                </div>
+                                <div v-show="!selectedDate" class="bg-light p-3 text-secondary border bounded">
+                                    Please select a date from the calendar on the left
                                 </div>
                             </div>
-                            <div v-show="!selectedDate" class="bg-light p-3 text-secondary border bounded">
-                                Please select a date from the calendar on the left
+                            <div v-show="tab==='measurements'">
+                                <div id="measurements-tab">Loading...</div>
+                            </div>
+                            <div v-show="tab==='incoming_reports'">
+                                @include('app.dashboard.incoming_reports')
+                            </div>
+                            <div v-show="tab==='erx'">
+                                @include('app.dashboard.erx')
                             </div>
-                        </div>
-                        <div v-show="tab==='measurements'">
-                            <div id="measurements-tab">Loading...</div>
-                        </div>
-                        <div v-show="tab==='incoming_reports'">
-                            @include('app.dashboard.incoming_reports')
-                        </div>
-                        <div v-show="tab==='erx'">
-                            @include('app.dashboard.erx')
                         </div>
                     </div>
                 </div>

+ 5 - 0
resources/views/app/mcp/appointments.blade.php

@@ -0,0 +1,5 @@
+@extends ('layouts/template')
+
+@section('content')
+    <h1>Hi</h1>
+@endsection

+ 5 - 0
resources/views/app/mcp/bills.blade.php

@@ -0,0 +1,5 @@
+@extends ('layouts/template')
+
+@section('content')
+    <h1>Hi</h1>
+@endsection

+ 0 - 0
resources/views/app/mcp/cancelled_appointments_pending_review.blade.php


+ 0 - 0
resources/views/app/mcp/cancelled_bills_pending_review.blade.php


+ 0 - 0
resources/views/app/mcp/cancelled_supply_orders_pending_review.blade.php


+ 5 - 0
resources/views/app/mcp/erx_and_orders.blade.php

@@ -0,0 +1,5 @@
+@extends ('layouts/template')
+
+@section('content')
+    <h1>Hi</h1>
+@endsection

+ 0 - 0
resources/views/app/mcp/erx_and_orders_pending_signature.blade.php


+ 0 - 0
resources/views/app/mcp/new_patients_awaiting_visit.blade.php


+ 5 - 0
resources/views/app/mcp/notes.blade.php

@@ -0,0 +1,5 @@
+@extends ('layouts/template')
+
+@section('content')
+    <h1>Hi</h1>
+@endsection

+ 0 - 0
resources/views/app/mcp/notes_pending_billing.blade.php


+ 0 - 0
resources/views/app/mcp/notes_pending_signature.blade.php


+ 6 - 0
resources/views/app/mcp/patients.blade.php

@@ -0,0 +1,6 @@
+@extends ('layouts/template')
+
+@section('content')
+    <h1>Hi</h1>
+@endsection
+

+ 0 - 0
resources/views/app/mcp/patients_overdue.blade.php


+ 0 - 0
resources/views/app/mcp/patients_without_appointments.blade.php


+ 5 - 0
resources/views/app/mcp/reports.blade.php

@@ -0,0 +1,5 @@
+@extends ('layouts/template')
+
+@section('content')
+    <h1>Hi</h1>
+@endsection

+ 0 - 0
resources/views/app/mcp/reports_pending_signature.blade.php


+ 5 - 0
resources/views/app/mcp/supply_orders.blade.php

@@ -0,0 +1,5 @@
+@extends ('layouts/template')
+
+@section('content')
+    <h1>Hi</h1>
+@endsection

+ 0 - 0
resources/views/app/mcp/supply_orders_pending_signature.blade.php


+ 25 - 16
routes/web.php

@@ -73,22 +73,31 @@ Route::middleware('pro.auth')->group(function () {
 
     Route::get('/can-access-patient/{uid}', 'HomeController@canAccessPatient')->name('can-access-patient');
 
-    Route::name('mcp.')->prefix('m')->group(function(){
+    Route::name('mcp.')->prefix('m')->group(function () {
+
         Route::get('patients', 'McpController@patients')->name('patients');
-        Route::get('new-patients-awaiting-visit', 'McpController@new_patients_awaiting_visit')->name('new_patients_awaiting_visit');
-        Route::get('notes-pending-signature', 'McpController@notes_pending_signature')->name('notes_pending_signature');
-        Route::get('notes-pending-billing', 'McpController@notes_pending_billing')->name('notes_pending_billing');
-        Route::get('reports-pending-signature', 'McpController@reports_pending_signature')->name('reports_pending_signature');
-        Route::get('patients-without-appointments', 'McpController@patients_without_appointments')->name('patients_without_appointments');
-        Route::get('patients-overdue', 'McpController@patients_overdue')->name('patients_overdue');
-        Route::get('cancelled-appointments-pending-review', 'McpController@cancelled_appointments_pending_review')->name('cancelled_appointments_pending_review');
-        Route::get('cancelled-bills-pending-review', 'McpController@cancelled_bills_pending_review')->name('cancelled_bills_pending_review');
-        Route::get('cancelled-supply-orders-pending-review', 'McpController@cancelled_supply_orders_pending_review')->name('cancelled_supply_orders_pending_review');
-        Route::get('erx-and-orders-pending-signature', 'McpController@erx_and_orders_pending_signature')->name('erx_and_orders_pending_signature');
-        Route::get('supply-orders-pending-signature', 'McpController@supply_orders_pending_signature')->name('supply_orders_pending_signature');
+        Route::get('notes', 'McpController@notes')->name('notes');
+        Route::get('appointments', 'McpController@appointments')->name('appointments');
+        Route::get('bills', 'McpController@bills')->name('bills');
+        Route::get('erx-and-orders', 'McpController@erx_and_orders')->name('erx_and_orders');
+        Route::get('reports', 'McpController@reports')->name('reports');
+        Route::get('supply-orders', 'McpController@supply_orders')->name('supply_orders');
+
+        Route::get('new_patients_awaiting_visit', 'McpController@new_patients_awaiting_visit')->name('new_patients_awaiting_visit');
+        Route::get('notes_pending_signature', 'McpController@notes_pending_signature')->name('notes_pending_signature');
+        Route::get('notes_pending_billing', 'McpController@notes_pending_billing')->name('notes_pending_billing');
+        Route::get('reports_pending_signature', 'McpController@reports_pending_signature')->name('reports_pending_signature');
+        Route::get('patients_without_appointments', 'McpController@patients_without_appointments')->name('patients_without_appointments');
+        Route::get('patients_overdue_for_visit', 'McpController@patients_overdue_for_visit')->name('patients_overdue_for_visit');
+        Route::get('cancelled_appointments_pending_review', 'McpController@cancelled_appointments_pending_review')->name('cancelled_appointments_pending_review');
+        Route::get('cancelled_bills_pending_review', 'McpController@cancelled_bills_pending_review')->name('cancelled_bills_pending_review');
+        Route::get('cancelled_supply_orders_pending_review', 'McpController@cancelled_supply_orders_pending_review')->name('cancelled_supply_orders_pending_review');
+        Route::get('erx_and_orders_pending_signature', 'McpController@erx_and_orders_pending_signature')->name('erx_and_orders_pending_signature');
+        Route::get('supply_orders_pending_signature', 'McpController@supply_orders_pending_signature')->name('supply_orders_pending_signature');
+
     });
 
-    Route::name('dna.')->prefix('n')->group(function(){
+    Route::name('dna.')->prefix('n')->group(function () {
         Route::get('patients', 'DnaController@patients')->name('patients');
         Route::get('new-patients-awaiting-visit', 'DnaController@new_patients_awaiting_visit');
         Route::get('notes-pending-signature', 'DnaController@notes_pending_signature');
@@ -141,7 +150,7 @@ Route::middleware('pro.auth')->group(function () {
 
         Route::get('my-teams', 'PracticeManagementController@myTeams')->name('my-teams');
 
-        Route::middleware('pro.auth.admin')->group(function(){
+        Route::middleware('pro.auth.admin')->group(function () {
 
             // BILLING REPORT
             Route::get('billing-report', 'PracticeManagementController@billingReport')->name('billing-report');
@@ -239,7 +248,7 @@ Route::middleware('pro.auth')->group(function () {
 
     });
 
-    Route::middleware('pro.auth.admin')->group(function(){
+    Route::middleware('pro.auth.admin')->group(function () {
         Route::get('patients/view/mcp-requests/{patient?}', 'PatientController@mcpRequests')->name('patients.view.mcp-requests');
         Route::get('patients/view/eligible-refreshes/{patient}', 'PatientController@eligibleRefreshes')->name('patients.view.eligible-refreshes');
         Route::get('patients/view/insurance-coverage/{patient}', 'PatientController@insuranceCoverage')->name('patients.view.insurance-coverage');
@@ -248,7 +257,7 @@ Route::middleware('pro.auth')->group(function () {
 
     Route::name('patients.view.')->prefix('patients/view/{patient}')->group(function () {
 
-        Route::middleware('pro.auth.can-access-patient')->group(function() {
+        Route::middleware('pro.auth.can-access-patient')->group(function () {
 
             Route::get('intake', 'PatientController@intake')->name('intake');
             Route::get('', 'PatientController@dashboard')->name('dashboard');