瀏覽代碼

Pro dashboard > show num unstamped with key numbers

Vijayakrishnan 4 年之前
父節點
當前提交
75b7254baf
共有 2 個文件被更改,包括 17 次插入7 次删除
  1. 3 0
      app/Http/Controllers/HomeController.php
  2. 14 7
      resources/views/app/dashboard.blade.php

+ 3 - 0
app/Http/Controllers/HomeController.php

@@ -242,6 +242,9 @@ class HomeController extends Controller
             })
             ->count();
 
+        // num measurements that need stamping
+        $keyNumbers['measurementsToBeStamped'] = count($this->performer()->pro->getMeasurements(true));
+
         $reimbursement = [];
         $reimbursement["currentBalance"] =  $performer->pro->balance;
         $reimbursement["nextPaymentDate"] = '--';

+ 14 - 7
resources/views/app/dashboard.blade.php

@@ -16,11 +16,11 @@
                         </strong>
                     </div>
                     <div class="card-body p-0">
-                        <table class="table table-condensed table-bordered m-0">
+                        <table class="table mb-0">
                             <tbody>
                                 <tr>
-                                    <th class="px-2 text-center">{{$keyNumbers['totalPatients']}}</th>
-                                    <th class="pl-2"><a native target="_top" href="/patients">Total patients</a></th>
+                                    <th class="border-top-0 px-2 text-center">{{$keyNumbers['totalPatients']}}</th>
+                                    <th class="border-top-0 pl-2"><a native target="_top" href="/patients">Total patients</a></th>
                                 </tr>
                                 <tr>
                                     <th class="px-2 text-center">{{$keyNumbers['patientsNotSeenYet']}}</th>
@@ -38,7 +38,14 @@
                                     <th class="px-2 text-center">{{$keyNumbers['numOpenTickets']}}</th>
                                     <th class="pl-2"><a native target="_top" href="/practice-management/my-tickets/open">Open tickets</a></th>
                                 </tr>
-
+                                <tr>
+                                    <th class="px-2 text-center">{{$keyNumbers['measurementsToBeStamped']}}</th>
+                                    <th class="pl-2">
+                                        <a native target="_top"
+                                           href="#"
+                                           v-on:click.prevent="tab='measurements'">Unstamped Measurements</a>
+                                    </th>
+                                </tr>
                             </tbody>
                         </table>
                     </div>
@@ -50,11 +57,11 @@
                         </strong>
                     </div>
                     <div class="card-body p-0">
-                        <table class="table table-condensed table-bordered m-0">
+                        <table class="table mb-0">
                             <tbody>
                                 <tr>
-                                    <th class="px-2">${{friendly_money($reimbursement['currentBalance'])}}</th>
-                                    <th class="pl-2"><a target="_top" href="/mc/practice-management/financial-transactions">Current balance</a></th>
+                                    <th class="border-top-0 px-2">${{friendly_money($reimbursement['currentBalance'])}}</th>
+                                    <th class="border-top-0 pl-2 w-100"><a target="_top" href="/mc/practice-management/financial-transactions">Current balance</a></th>
                                 </tr>
                                 <!-- <tr>
                                     <th class="px-2">{{friendly_date_time($reimbursement['nextPaymentDate'], false)}}</th>