Przeglądaj źródła

Admin dashboard updates (wip)

Vijayakrishnan 3 lat temu
rodzic
commit
1f78e0cf3a
2 zmienionych plików z 76 dodań i 23 usunięć
  1. 1 1
      public/css/style.css
  2. 75 22
      resources/views/app/dashboard-admin.blade.php

+ 1 - 1
public/css/style.css

@@ -2259,7 +2259,7 @@ form.non-interactive .form-content * {
     position: absolute;
 }
 table.dashboard-stats-table th {
-    padding: 0.5rem 0.75rem
+    padding: 0.2rem 0.75rem
 }
 .max-height-100px {
     max-height: 100px;

+ 75 - 22
resources/views/app/dashboard-admin.blade.php

@@ -22,23 +22,23 @@
                             </strong>
                         </div>
                         <div class="card-body p-0">
-                            <table class="table mb-0 dashboard-stats-table">
+                            <table class="table mb-0 dashboard-stats-table table-sm">
                                 <tbody>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_patients_count_as_admin()}}</th>
-                                    <th class="pl-2">Patients</th>
+                                    <th class="pl-2 font-weight-normal">Patients</th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_new_patients_awaiting_visit_count_as_admin()}}</th>
-                                    <th class="pl-2">New Patients Awaiting Visit</th>
+                                    <th class="pl-2 font-weight-normal">New Patients Awaiting Visit</th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_notes_pending_signature_count_as_admin()}}</th>
-                                    <th class="pl-2">Notes Pending Signature</th>
+                                    <th class="pl-2 font-weight-normal">Notes Pending Signature</th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_notes_pending_summary_suggestion_count_as_admin()}}</th>
-                                    <th class="pl-2">
+                                    <th class="pl-2 font-weight-normal">
                                         <a href="{{ route('admin.notes_pending_summary_suggestion') }}"
                                            native target="_blank"
                                            open-in-stag-popup
@@ -50,7 +50,7 @@
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_notes_rejected_summary_suggestion_count_as_admin()}}</th>
-                                    <th class="pl-2">
+                                    <th class="pl-2 font-weight-normal">
                                         <a href="{{ route('admin.notes_rejected_summary_suggestion') }}"
                                            native target="_blank"
                                            open-in-stag-popup
@@ -62,45 +62,45 @@
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_notes_pending_billing_count_as_admin()}}</th>
-                                    <th class="pl-2">Notes Pending Billing</th>
+                                    <th class="pl-2 font-weight-normal">Notes Pending Billing</th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_incoming_reports_pending_signature_count_as_admin()}}</th>
-                                    <th class="pl-2">Reports Pending Signature</th>
+                                    <th class="pl-2 font-weight-normal">Reports Pending Signature</th>
                                 </tr>
 
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_patients_without_appointment_count_as_admin()}}</th>
-                                    <th class="pl-2">Patients w/o Appointments</th>
+                                    <th class="pl-2 font-weight-normal">Patients w/o Appointments</th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_patients_not_seen_in_45_days_count_as_mcp()}}</th>
-                                    <th class="pl-2">Patients Not Seen in 45 Days</th>
+                                    <th class="pl-2 font-weight-normal">Patients Not Seen in 45 Days</th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_cancelled_appointments_pending_acknowledgement_count_as_mcp()}}</th>
-                                    <th class="pl-2">Cancelled Appts. Pending Review</th>
+                                    <th class="pl-2 font-weight-normal">Cancelled Appts. Pending Review</th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_cancelled_bills_awaiting_review_count_as_mcp()}}</th>
-                                    <th class="pl-2">Cancelled Bills Pending Review</th>
+                                    <th class="pl-2 font-weight-normal">Cancelled Bills Pending Review</th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_cancelled_supply_orders_awaiting_review_count_as_mcp()}}</th>
-                                    <th class="pl-2">Cancelled Supply Orders</th>
+                                    <th class="pl-2 font-weight-normal">Cancelled Supply Orders</th>
                                 </tr>
 
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_erx_and_orders_awaiting_signature_count_as_mcp()}}</th>
-                                    <th class="pl-2">ERx & Orders Pending Signature</th>
+                                    <th class="pl-2 font-weight-normal">ERx & Orders Pending Signature</th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_supply_orders_awaiting_signature_count_as_mcp()}}</th>
-                                    <th class="pl-2">Supply Orders Pending Signature</th>
+                                    <th class="pl-2 font-weight-normal">Supply Orders Pending Signature</th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_open_tickets_count_as_mcp()}}</th>
-                                    <th class="pl-2">
+                                    <th class="pl-2 font-weight-normal">
                                         <a href="{{ route('practice-management.myTickets') }}">
                                             Open Ticket{{$pro->get_open_tickets_count_as_mcp() !== 1 ? 's' : ''}}
                                         </a>
@@ -108,7 +108,7 @@
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{ $pro->myNotesPendingSupervisorPhysicianStamping() }}</th>
-                                    <th class="pl-2">
+                                    <th class="pl-2 font-weight-normal">
                                         <a href="{{ route('practice-management.notes-pending-physician-supervisor-stamping', ['hideTitle' => true]) }}"
                                            native target="_blank"
                                            open-in-stag-popup
@@ -119,6 +119,59 @@
                                     </th>
                                 </tr>
 
+                                <!-- new -->
+                                <tr>
+                                    <th class="px-2 text-center">
+                                        <?php
+                                        $count = \App\Models\Client::whereNull('shadow_pro_id')
+                                            ->where('is_active', true)
+                                            ->where(function ($q) {
+                                                $q->whereNull('client_engagement_status_category')
+                                                    ->orWhere('client_engagement_status_category', 'DUMMY');
+                                            })
+                                            ->whereNull('default_mcp_company_pro_payer_id')
+                                            ->count();
+                                        ?>
+                                        {{$count}}
+                                    </th>
+                                    <th class="pl-2 font-weight-normal">
+                                        Clients without default company pro payer
+                                    </th>
+                                </tr>
+                                <tr>
+                                    <th class="px-2 text-center">
+                                        <?php
+                                        $count = \App\Models\Bill::where('bill_service_type', 'NOTE')
+                                            ->where('is_cancelled', false)
+                                            ->whereNotNull('hcp_pro_id')
+                                            ->whereNull('hcp_company_pro_id')
+                                            ->where('has_hcp_been_paid', false)
+                                            ->count();
+                                        ?>
+                                        {{$count}}
+                                    </th>
+                                    <th class="pl-2 font-weight-normal">
+                                        Note bills without CPP
+                                    </th>
+                                </tr>
+                                <tr>
+                                    <th class="px-2 text-center">
+                                        <?php
+                                        $count = \App\Models\Bill::where('bill_service_type', 'GENERIC')
+                                            ->where('is_cancelled', false)
+                                            ->whereNotNull('generic_pro_id')
+                                            ->whereNull('generic_company_pro_id')
+                                            ->where('has_generic_pro_been_paid', false)
+                                            ->where('code', 'RM MCP')
+                                            ->count();
+                                        ?>
+                                        {{$count}}
+                                    </th>
+                                    <th class="pl-2 font-weight-normal">
+                                        RPM bills without CPP
+                                    </th>
+                                </tr>
+
                                 </tbody>
                             </table>
                         </div>
@@ -134,11 +187,11 @@
                                 <tbody>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_measurements_awaiting_review_count_as_mcp() ?? '-'}}</th>
-                                    <th class="pl-2">Measurements Pending Review</th>
+                                    <th class="pl-2 font-weight-normal">Measurements Pending Review</th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$pro->get_patients_without_remote_measurement_in_48_hours_count_as_mcp() ?? '-'}}</th>
-                                    <th class="pl-2">Patients w/o Measurement in 48 hrs.</th>
+                                    <th class="pl-2 font-weight-normal">Patients w/o Measurement in 48 hrs.</th>
                                 </tr>
                                 </tbody>
                             </table>
@@ -164,7 +217,7 @@
                                 </tr>
                                 <!-- <tr>
                                     <th class="px-2">{{friendly_date_time($reimbursement['nextPaymentDate'], false)}}</th>
-                                    <th class="pl-2">Next Payment Date</th>
+                                    <th class="pl-2 font-weight-normal">Next Payment Date</th>
                                 </tr> -->
                                 <tr class="thin">
                                     <th class="font-weight-normal px-2 pl-4">${{friendly_money($reimbursement['nextPaymentAmount'])}}</th>
@@ -189,11 +242,11 @@
                                 {{--
                                 <tr>
                                     <th class="px-2">{{$reimbursement['lastPayment']}}</th>
-                                    <th class="pl-2"><a href="/practice-management/financial-transactions">Last payment</a></th>
+                                    <th class="pl-2 font-weight-normal"><a href="/practice-management/financial-transactions">Last payment</a></th>
                                 </tr>
                                 <tr>
                                     <th class="px-2">{{friendly_date_time($reimbursement['lastPaymentDate'], false)}}</th>
-                                    <th class="pl-2"><a href="/practice-management/financial-transactions">Last payment date</a></th>
+                                    <th class="pl-2 font-weight-normal"><a href="/practice-management/financial-transactions">Last payment date</a></th>
                                 </tr>
                                 --}}
                                 </tbody>