|
@@ -7,6 +7,7 @@ use App\Models\Appointment;
|
|
use App\Models\AppSession;
|
|
use App\Models\AppSession;
|
|
use App\Models\ClientSMS;
|
|
use App\Models\ClientSMS;
|
|
use App\Models\Facility;
|
|
use App\Models\Facility;
|
|
|
|
+use App\Models\IncomingReport;
|
|
use App\Models\MBPayer;
|
|
use App\Models\MBPayer;
|
|
use App\Models\ProProAccess;
|
|
use App\Models\ProProAccess;
|
|
use App\Models\Ticket;
|
|
use App\Models\Ticket;
|
|
@@ -306,7 +307,36 @@ class HomeController extends Controller
|
|
->whereRaw('(SELECT count(id) FROM bill WHERE note_id = note.id AND (is_cancelled = true OR is_verified = true)) = 0')
|
|
->whereRaw('(SELECT count(id) FROM bill WHERE note_id = note.id AND (is_cancelled = true OR is_verified = true)) = 0')
|
|
->count();
|
|
->count();
|
|
|
|
|
|
- return view('app/dashboard', compact('keyNumbers', 'reimbursement', 'milliseconds', 'measurements', 'businessNumbers'));
|
|
|
|
|
|
+ // incoming reports not signed
|
|
|
|
+ $incomingReports = IncomingReport::where('hcp_pro_id', $performerProID)
|
|
|
|
+ ->where('has_hcp_pro_signed', false)
|
|
|
|
+ ->where('is_entry_error', false)
|
|
|
|
+ ->orderBy('created_at', 'ASC')
|
|
|
|
+ ->get();
|
|
|
|
+ // erx, labs & imaging that are not closed
|
|
|
|
+ $tickets = Ticket::where('ordering_pro_id', $performerProID)
|
|
|
|
+ // ->where('is_entry_error', false)
|
|
|
|
+ // ->where('is_open', true)
|
|
|
|
+ ->orderBy('created_at', 'ASC')
|
|
|
|
+ ->get();
|
|
|
|
+ $numERx = Ticket::where('ordering_pro_id', $performerProID)
|
|
|
|
+ ->where('category', 'erx')
|
|
|
|
+ ->where('is_entry_error', false)
|
|
|
|
+ ->where('is_open', true)
|
|
|
|
+ ->count();
|
|
|
|
+ $numLabs = Ticket::where('ordering_pro_id', $performerProID)
|
|
|
|
+ ->where('category', 'lab')
|
|
|
|
+ ->where('is_entry_error', false)
|
|
|
|
+ ->where('is_open', true)
|
|
|
|
+ ->count();
|
|
|
|
+ $numImaging = Ticket::where('ordering_pro_id', $performerProID)
|
|
|
|
+ ->where('category', 'imaging')
|
|
|
|
+ ->where('is_entry_error', false)
|
|
|
|
+ ->where('is_open', true)
|
|
|
|
+ ->count();
|
|
|
|
+
|
|
|
|
+ return view('app/dashboard', compact('keyNumbers', 'reimbursement', 'milliseconds', 'measurements', 'businessNumbers',
|
|
|
|
+ 'incomingReports', 'tickets', 'numERx', 'numLabs', 'numImaging'));
|
|
}
|
|
}
|
|
|
|
|
|
public function dashboardAppointments(Request $request, $from, $to) {
|
|
public function dashboardAppointments(Request $request, $from, $to) {
|