Ver código fonte

updated claims-resolver

unknown 4 anos atrás
pai
commit
244f345e77

+ 4 - 1
app/Http/Controllers/PracticeManagementController.php

@@ -860,7 +860,10 @@ class PracticeManagementController extends Controller
     public function patientClaimSummary(Request $request, $proUid=null)
     {
 
-        $claimsTotal = DB::raw("SELECT COUNT(*) FROM claim WHERE is_cancelled IS NOT TRUE");
+        $clientCount = SELECT COUNT(*) FROM client;
+
+        $claimsTotal = DB::select(DB::raw("SELECT COUNT(*) FROM claim WHERE is_cancelled IS NOT TRUE"));
+        $notesTotal = DB::select(DB::raw("SELECT COUNT(*) FROM claim WHERE is_cancelled IS NOT TRUE AND "));
 
         $performerPro = $this->performer->pro;
         $allPros = [];

+ 1 - 1
resources/views/app/practice-management/patient-claim-summary.blade.php

@@ -2,7 +2,7 @@
 
 @section('content')
 
-    <h1><?php dump($claimsTotal) ?></h1>
+    <h1>{{ $claimsTotal[0]->count }}</h1>
 
     <div id="practice-bills" class="p-3 mcp-theme-1">
         <div class="card">