|
@@ -25,6 +25,7 @@ use App\Models\ProTransaction;
|
|
|
use App\Models\Shipment;
|
|
|
use App\Models\SupplyOrder;
|
|
|
use App\Models\Ticket;
|
|
|
+use App\Models\ClientMeasurementDaysPerMonth;
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
use Illuminate\Support\Facades\Http;
|
|
|
use PDF;
|
|
@@ -35,6 +36,15 @@ use Illuminate\Http\Request;
|
|
|
class PracticeManagementController extends Controller
|
|
|
{
|
|
|
|
|
|
+ public function remoteMonitoringReport(Request $request)
|
|
|
+ {
|
|
|
+ $rows = null;
|
|
|
+ $proID = $this->performer()->pro->id;
|
|
|
+ $isAdmin = $this->performer()->pro->pro_type == 'ADMIN';
|
|
|
+ $rows = $isAdmin ? ClientMeasurementDaysPerMonth::all() : ClientMeasurementDaysPerMonth::where('mcp_pro_id', $proID)->orderBy('year_month', 'asc')->orderBy('num_of_days_with_measurement', 'asc')->get();
|
|
|
+ return view ('app.practice-management.remote-monitoring-report', compact('rows'));
|
|
|
+ }
|
|
|
+
|
|
|
public function billingReport(Request $request)
|
|
|
{
|
|
|
$rows = BillingReport::paginate(50);
|
|
@@ -828,6 +838,7 @@ class PracticeManagementController extends Controller
|
|
|
$supplyOrders = SupplyOrder::where('signed_by_pro_id', $this->performer()->pro->id)
|
|
|
->where('is_cancelled', true)
|
|
|
->where('is_cancellation_acknowledged', false)
|
|
|
+ ->orderBy('created_at', 'desc')
|
|
|
->paginate();
|
|
|
return view('app.practice-management.supply-orders-cancelled-but-unacknowledged', compact('supplyOrders'));
|
|
|
}
|