unknown пре 3 година
родитељ
комит
595876f2aa

+ 9 - 3
app/Http/Controllers/PracticeManagementController.php

@@ -46,6 +46,12 @@ use Illuminate\Http\Request;
 class PracticeManagementController extends Controller
 {
 
+    public function rpmMatrix(Request $request)
+    {
+        $clients = Client::paginate(50);
+        return view ('app.practice-management.rpm-matrix', compact('clients'));
+    }
+
     public function mcCodeChecks(Request $request)
 	{
 		$checks = McCodeCheck::orderBy('next_eligible_date_professional', 'asc')->get();
@@ -2025,7 +2031,7 @@ ORDER BY c.name_last, c.name_first
 
     public function clientsBdtDevices(Request $request){
         $filters = $request->all();
-        
+
         $devices = ClientBDTDevice::select('client_bdt_device.*')
         ->join('client', 'client.id', '=', 'client_bdt_device.client_id');
 
@@ -2045,7 +2051,7 @@ ORDER BY c.name_last, c.name_first
 
     public function memos(Request $request){
         $filters = $request->all();
-        
+
         $memos = ClientMemo::select('client_memo.*')
         ->join('client', 'client.id', '=', 'client_memo.client_id');
 
@@ -2060,6 +2066,6 @@ ORDER BY c.name_last, c.name_first
         return view('app.practice-management.memos', compact('memos', 'filters'));
     }
 
-    
+
 
 }

+ 68 - 0
resources/views/app/practice-management/rpm-matrix.blade.php

@@ -0,0 +1,68 @@
+@extends ('layouts/template')
+
+@section('content')
+    <div class="p-3 mcp-theme-1">
+        <div class="card">
+            <div class="card-header p-3 d-flex align-items-center">
+                <strong class="mr-4">
+                    <i class="fas fa-chart-bar"></i>
+                    RPM Matrix
+                </strong>
+            </div>
+
+            <div class="card-body p-0">
+                <table class="table table-sm table-condensed p-0 m-0" style="">
+                    <thead class="bg-light">
+                        <tr>
+                            <th>name</th>
+                            <th>dob</th>
+                            <th>mcp</th>
+                            <th>most_recent_cellular_bp_battery_voltage</th>
+                            <th>most_recent_cellular_bp_dbp_mm_hg</th>
+                            <th>most_recent_cellular_bp_measurement_at</th>
+                            <th>most_recent_cellular_bp_measurement_id</th>
+                            <th>most_recent_cellular_bp_sbp_mm_hg</th>
+                            <th>most_recent_cellular_bp_signal_strength</th>
+                            <th>most_recent_cellular_bp_value_irregular</th>
+                            <th>most_recent_cellular_bp_value_pulse</th>
+                            <th>most_recent_cellular_measurement_at</th>
+                            <th>most_recent_cellular_measurement_id</th>
+                            <th>most_recent_cellular_weight_battery_voltage</th>
+                            <th>most_recent_cellular_weight_measurement_at</th>
+                            <th>most_recent_cellular_weight_measurement_id</th>
+                            <th>most_recent_cellular_weight_signal_strength</th>
+                            <th>most_recent_cellular_weight_value</th>
+                        </tr>
+                    </thead>
+                    <tbody>
+                        @foreach($clients as $client)
+                            <tr>
+                                <td>{{ $client->name }}</td>
+                                <td>{{ $client->dob }}</td>
+                                <td>{{ $client->mcp }}</td>
+                                <td>{{ $client->most_recent_cellular_bp_battery_voltage }}</td>
+                                <td>{{ $client->most_recent_cellular_bp_dbp_mm_hg }}</td>
+                                <td>{{ $client->most_recent_cellular_bp_measurement_at }}</td>
+                                <td>{{ $client->most_recent_cellular_bp_measurement_id }}</td>
+                                <td>{{ $client->most_recent_cellular_bp_sbp_mm_hg }}</td>
+                                <td>{{ $client->most_recent_cellular_bp_signal_strengtd }}</td>
+                                <td>{{ $client->most_recent_cellular_bp_value_irregular }}</td>
+                                <td>{{ $client->most_recent_cellular_bp_value_pulse }}</td>
+                                <td>{{ $client->most_recent_cellular_measurement_at }}</td>
+                                <td>{{ $client->most_recent_cellular_measurement_id }}</td>
+                                <td>{{ $client->most_recent_cellular_weight_battery_voltage }}</td>
+                                <td>{{ $client->most_recent_cellular_weight_measurement_at }}</td>
+                                <td>{{ $client->most_recent_cellular_weight_measurement_id }}</td>
+                                <td>{{ $client->most_recent_cellular_weight_signal_strengtd }}</td>
+                                <td>{{ $client->most_recent_cellular_weight_value }}</td>
+                            </tr>
+                        @endforeach
+                    </tbody>
+                </table>
+                <div>
+                    {{$clients->links()}}
+                </div>
+            </div>
+        </div>
+    </div>
+@endsection

+ 1 - 0
resources/views/layouts/template.blade.php

@@ -136,6 +136,7 @@
 
                         @if($pro->pro_type == 'ADMIN')
 
+                            <a class="dropdown-item" href="{{ route('practice-management.rpmMatrix') }}">RPM Matrix</a>
                             {{--<a class="dropdown-item" href="{{ route('practice-management.previousBills') }}">Previous Bills</a>--}}
                             <a class="dropdown-item" href="{{ route('practice-management.financialTransactions') }}">Financial Transactions</a>
                             <a class="dropdown-item" href="/practice-management/bills/not-yet-signed">Pending Bills to Sign</a>

+ 4 - 1
routes/web.php

@@ -140,6 +140,9 @@ Route::middleware('pro.auth')->group(function () {
     });
 
     Route::name('practice-management.')->prefix('practice-management')->group(function () {
+
+        Route::get('rpm-matrix', 'PracticeManagementController@rpmMatrix')->name('rpmMatrix');
+
         Route::get('remote-monitoring-report', 'PracticeManagementController@remoteMonitoringReport')->name('remoteMonitoringReport');
         Route::get('rates/{selectedProUid?}', 'PracticeManagementController@rates')->name('rates');
         Route::get('dashboard', 'PracticeManagementController@dashboard')->name('dashboard');
@@ -181,7 +184,7 @@ Route::middleware('pro.auth')->group(function () {
         Route::get('patients-accounts-invites', 'PracticeManagementController@patientsAccountsInvites')->name('patientsAccountsInvites');
         Route::get('clients-bdt-devices', 'PracticeManagementController@clientsBdtDevices')->name('clientsBdtDevices');
         Route::get('memos', 'PracticeManagementController@memos')->name('memos');
-        
+
         Route::middleware('pro.auth.admin')->group(function () {
 
             // BILLING REPORT