|
@@ -228,43 +228,50 @@ class my_clients_SINGLE_Controller extends Controller
|
|
// GET /my_clients/view/{uid}/SUB_pro_access
|
|
// GET /my_clients/view/{uid}/SUB_pro_access
|
|
public function SUB_pro_access(Request $request, $uid) {
|
|
public function SUB_pro_access(Request $request, $uid) {
|
|
$record = DB::table('client')->where('uid', $uid)->first();
|
|
$record = DB::table('client')->where('uid', $uid)->first();
|
|
- return view('pro/my_clients_SINGLE/SUB_pro_access', compact('record'));
|
|
|
|
|
|
+ $subRecords = DB::table('client_pro_access')->where('client_id', $record->id)->get();
|
|
|
|
+ return view('pro/my_clients_SINGLE/SUB_pro_access', compact('record', 'subRecords'));
|
|
}
|
|
}
|
|
|
|
|
|
// GET /my_clients/view/{uid}/SUB_notes
|
|
// GET /my_clients/view/{uid}/SUB_notes
|
|
public function SUB_notes(Request $request, $uid) {
|
|
public function SUB_notes(Request $request, $uid) {
|
|
$record = DB::table('client')->where('uid', $uid)->first();
|
|
$record = DB::table('client')->where('uid', $uid)->first();
|
|
- return view('pro/my_clients_SINGLE/SUB_notes', compact('record'));
|
|
|
|
|
|
+ $subRecords = DB::table('note')->where('client_id', $record->id)->get();
|
|
|
|
+ return view('pro/my_clients_SINGLE/SUB_notes', compact('record', 'subRecords'));
|
|
}
|
|
}
|
|
|
|
|
|
// GET /my_clients/view/{uid}/SUB_care_months
|
|
// GET /my_clients/view/{uid}/SUB_care_months
|
|
public function SUB_care_months(Request $request, $uid) {
|
|
public function SUB_care_months(Request $request, $uid) {
|
|
$record = DB::table('client')->where('uid', $uid)->first();
|
|
$record = DB::table('client')->where('uid', $uid)->first();
|
|
- return view('pro/my_clients_SINGLE/SUB_care_months', compact('record'));
|
|
|
|
|
|
+ $subRecords = DB::table('care_month')->where('client_id', $record->id)->get();
|
|
|
|
+ return view('pro/my_clients_SINGLE/SUB_care_months', compact('record', 'subRecords'));
|
|
}
|
|
}
|
|
|
|
|
|
// GET /my_clients/view/{uid}/SUB_care_month_entries
|
|
// GET /my_clients/view/{uid}/SUB_care_month_entries
|
|
public function SUB_care_month_entries(Request $request, $uid) {
|
|
public function SUB_care_month_entries(Request $request, $uid) {
|
|
$record = DB::table('client')->where('uid', $uid)->first();
|
|
$record = DB::table('client')->where('uid', $uid)->first();
|
|
- return view('pro/my_clients_SINGLE/SUB_care_month_entries', compact('record'));
|
|
|
|
|
|
+ $subRecords = DB::table('care_month_entry')->where('client_id', $record->id)->get();
|
|
|
|
+ return view('pro/my_clients_SINGLE/SUB_care_month_entries', compact('record', 'subRecords'));
|
|
}
|
|
}
|
|
|
|
|
|
// GET /my_clients/view/{uid}/SUB_bills
|
|
// GET /my_clients/view/{uid}/SUB_bills
|
|
public function SUB_bills(Request $request, $uid) {
|
|
public function SUB_bills(Request $request, $uid) {
|
|
$record = DB::table('client')->where('uid', $uid)->first();
|
|
$record = DB::table('client')->where('uid', $uid)->first();
|
|
- return view('pro/my_clients_SINGLE/SUB_bills', compact('record'));
|
|
|
|
|
|
+ $subRecords = DB::table('bill')->where('client_id', $record->id)->get();
|
|
|
|
+ return view('pro/my_clients_SINGLE/SUB_bills', compact('record', 'subRecords'));
|
|
}
|
|
}
|
|
|
|
|
|
// GET /my_clients/view/{uid}/SUB_related_transactions
|
|
// GET /my_clients/view/{uid}/SUB_related_transactions
|
|
public function SUB_related_transactions(Request $request, $uid) {
|
|
public function SUB_related_transactions(Request $request, $uid) {
|
|
$record = DB::table('client')->where('uid', $uid)->first();
|
|
$record = DB::table('client')->where('uid', $uid)->first();
|
|
- return view('pro/my_clients_SINGLE/SUB_related_transactions', compact('record'));
|
|
|
|
|
|
+ $subRecords = DB::table('pro_transaction')->where('client_id', $record->id)->get();
|
|
|
|
+ return view('pro/my_clients_SINGLE/SUB_related_transactions', compact('record', 'subRecords'));
|
|
}
|
|
}
|
|
|
|
|
|
// GET /my_clients/view/{uid}/SUB_action_items
|
|
// GET /my_clients/view/{uid}/SUB_action_items
|
|
public function SUB_action_items(Request $request, $uid) {
|
|
public function SUB_action_items(Request $request, $uid) {
|
|
$record = DB::table('client')->where('uid', $uid)->first();
|
|
$record = DB::table('client')->where('uid', $uid)->first();
|
|
- return view('pro/my_clients_SINGLE/SUB_action_items', compact('record'));
|
|
|
|
|
|
+ $subRecords = DB::table('action_item')->where('client_id', $record->id)->get();
|
|
|
|
+ return view('pro/my_clients_SINGLE/SUB_action_items', compact('record', 'subRecords'));
|
|
}
|
|
}
|
|
|
|
|
|
// GET /my_clients/view/{uid}/SUB_erx
|
|
// GET /my_clients/view/{uid}/SUB_erx
|
|
@@ -276,13 +283,15 @@ class my_clients_SINGLE_Controller extends Controller
|
|
// GET /my_clients/view/{uid}/SUB_mcp_updates
|
|
// GET /my_clients/view/{uid}/SUB_mcp_updates
|
|
public function SUB_mcp_updates(Request $request, $uid) {
|
|
public function SUB_mcp_updates(Request $request, $uid) {
|
|
$record = DB::table('client')->where('uid', $uid)->first();
|
|
$record = DB::table('client')->where('uid', $uid)->first();
|
|
- return view('pro/my_clients_SINGLE/SUB_mcp_updates', compact('record'));
|
|
|
|
|
|
+ $subRecords = DB::table('client_mcp_update')->where('client_id', $record->id)->get();
|
|
|
|
+ return view('pro/my_clients_SINGLE/SUB_mcp_updates', compact('record', 'subRecords'));
|
|
}
|
|
}
|
|
|
|
|
|
// GET /my_clients/view/{uid}/SUB_ally_updates
|
|
// GET /my_clients/view/{uid}/SUB_ally_updates
|
|
public function SUB_ally_updates(Request $request, $uid) {
|
|
public function SUB_ally_updates(Request $request, $uid) {
|
|
$record = DB::table('client')->where('uid', $uid)->first();
|
|
$record = DB::table('client')->where('uid', $uid)->first();
|
|
- return view('pro/my_clients_SINGLE/SUB_ally_updates', compact('record'));
|
|
|
|
|
|
+ $subRecords = DB::table('client_ally_update')->where('client_id', $record->id)->get();
|
|
|
|
+ return view('pro/my_clients_SINGLE/SUB_ally_updates', compact('record', 'subRecords'));
|
|
}
|
|
}
|
|
|
|
|
|
// GET /my_clients/view/{uid}/SUB_audit_log
|
|
// GET /my_clients/view/{uid}/SUB_audit_log
|