Ver Fonte

Popup matrix: Cancelled Bills Pending Review

Vijayakrishnan há 3 anos atrás
pai
commit
4f06746eee

+ 8 - 1
app/Http/Controllers/McpController.php

@@ -142,7 +142,14 @@ class McpController extends Controller
         return view('app.mcp.cancelled_appointments_pending_review', $data);
     }
     public function cancelled_bills_pending_review(Request $request){
-        $data = [];
+        $data = [
+            'records' => Bill::where('hcp_pro_id', $this->performer->pro->id)
+                ->where('bill_service_type', 'NOTE')
+                ->where('is_cancelled', true)
+                ->where('is_cancellation_acknowledged', '<>', true)
+                ->orderBy('created_at')
+                ->get()
+        ];
         return view('app.mcp.cancelled_bills_pending_review', $data);
     }
     public function cancelled_supply_orders_pending_review(Request $request){

+ 38 - 13
resources/views/app/mcp/cancelled_bills_pending_review.blade.php

@@ -1,19 +1,44 @@
-@extends ('layouts/template')
+<div class="p-3 mcp-theme-1">
+    <div class="card">
 
-@section('content')
-    <div class="p-3 mcp-theme-1" id="patients-list">
-        <div class="card">
+        <div class="card-header px-3 py-2 d-flex align-items-center border-bottom-0">
+            <strong class="mr-4">
+                <i class="fas fa-user-injured"></i>
+                Cancelled Bills Pending Review
+            </strong>
+        </div>
 
-            <div class="card-header px-3 py-2 d-flex align-items-center">
-                <strong class="mr-4">
-                    <i class="fas fa-user-injured"></i>
-                    Cancelled Bills Pending Review
-                </strong>
-            </div>
+        <div class="card-body p-0 border-top-0 pb-0">
 
-            <div class="card-body p-0">
 
-            </div>
+            <table class="table table-sm table-striped mb-0">
+                <thead>
+                <tr>
+                    <th class="border-bottom-0">Date</th>
+                    <th class="border-bottom-0">Patient</th>
+                    <th class="border-bottom-0">Service</th>
+                    <th class="border-bottom-0">Amount</th>
+                    <th class="border-bottom-0">Status</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($records as $row)
+                    <tr>
+                        <td>{{ friendly_date_time($row->effective_date, false) }}</td>
+                        <td>
+                            <a target="_blank" native href="{{route('patients.view.dashboard', $row->client)}}">
+                                {{$row->client->displayName()}}
+                            </a>
+                        </td>
+                        <td>{{ $row->code }}</td>
+                        <td>{{ $row->hcp_expected_payment_amount }}</td>
+                        <td>Cancelled</td>
+                    </tr>
+                @endforeach
+                </tbody>
+            </table>
         </div>
     </div>
-@endsection
+</div>
+
+