|
@@ -25,10 +25,12 @@ use App\Models\ProProAccess;
|
|
|
use App\Models\ProRate;
|
|
|
use App\Models\ProSpecificAvailability;
|
|
|
use App\Models\ProSpecificUnavailability;
|
|
|
+use App\Models\ProTeam;
|
|
|
use App\Models\ProTextShortcut;
|
|
|
use App\Models\ProTransaction;
|
|
|
use App\Models\Shipment;
|
|
|
use App\Models\SupplyOrder;
|
|
|
+use App\Models\Team;
|
|
|
use App\Models\Ticket;
|
|
|
use App\Models\ClientMeasurementDaysPerMonth;
|
|
|
use Illuminate\Support\Facades\DB;
|
|
@@ -1928,4 +1930,16 @@ ORDER BY c.name_last, c.name_first
|
|
|
return view('app.practice-management.care-month-report', compact('records', 'date'));
|
|
|
}
|
|
|
|
|
|
+ public function myTeams(Request $request) {
|
|
|
+ $pro = $this->pro;
|
|
|
+
|
|
|
+ // get all teams where the authed-pro is the assistant pro
|
|
|
+ $teams = ProTeam::where('assistant_pro_id', $pro->id)
|
|
|
+ ->where('is_active', true)
|
|
|
+ ->orderBy('slug')
|
|
|
+ ->get();
|
|
|
+
|
|
|
+ return view('app.practice-management.my-teams', compact('teams'));
|
|
|
+ }
|
|
|
+
|
|
|
}
|