|
@@ -131,6 +131,66 @@ class care_months_SINGLE_Controller extends Controller
|
|
|
return response()->view('pro/care_months_SINGLE/ACTION_removeRmmPro', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
|
|
|
}
|
|
|
|
|
|
+ // GET /care_months/view/{uid}/ACTION_assignRmsPro
|
|
|
+ public function ACTION_assignRmsPro(Request $request, $uid) {
|
|
|
+ $record = DB::table('care_month')->where('uid', $uid)->first();
|
|
|
+ if(!$record) {
|
|
|
+ $record = DB::table('care_month')->where('id', $uid)->first();
|
|
|
+ if($record) return redirect('/care_months/view/' . $record->uid . '/ACTION_assignRmsPro');
|
|
|
+ }
|
|
|
+ return response()->view('pro/care_months_SINGLE/ACTION_assignRmsPro', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
|
|
|
+ }
|
|
|
+
|
|
|
+ // GET /care_months/view/{uid}/ACTION_changeRmsPro
|
|
|
+ public function ACTION_changeRmsPro(Request $request, $uid) {
|
|
|
+ $record = DB::table('care_month')->where('uid', $uid)->first();
|
|
|
+ if(!$record) {
|
|
|
+ $record = DB::table('care_month')->where('id', $uid)->first();
|
|
|
+ if($record) return redirect('/care_months/view/' . $record->uid . '/ACTION_changeRmsPro');
|
|
|
+ }
|
|
|
+ return response()->view('pro/care_months_SINGLE/ACTION_changeRmsPro', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
|
|
|
+ }
|
|
|
+
|
|
|
+ // GET /care_months/view/{uid}/ACTION_removeRmsPro
|
|
|
+ public function ACTION_removeRmsPro(Request $request, $uid) {
|
|
|
+ $record = DB::table('care_month')->where('uid', $uid)->first();
|
|
|
+ if(!$record) {
|
|
|
+ $record = DB::table('care_month')->where('id', $uid)->first();
|
|
|
+ if($record) return redirect('/care_months/view/' . $record->uid . '/ACTION_removeRmsPro');
|
|
|
+ }
|
|
|
+ return response()->view('pro/care_months_SINGLE/ACTION_removeRmsPro', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
|
|
|
+ }
|
|
|
+
|
|
|
+ // GET /care_months/view/{uid}/ACTION_assignRmgPro
|
|
|
+ public function ACTION_assignRmgPro(Request $request, $uid) {
|
|
|
+ $record = DB::table('care_month')->where('uid', $uid)->first();
|
|
|
+ if(!$record) {
|
|
|
+ $record = DB::table('care_month')->where('id', $uid)->first();
|
|
|
+ if($record) return redirect('/care_months/view/' . $record->uid . '/ACTION_assignRmgPro');
|
|
|
+ }
|
|
|
+ return response()->view('pro/care_months_SINGLE/ACTION_assignRmgPro', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
|
|
|
+ }
|
|
|
+
|
|
|
+ // GET /care_months/view/{uid}/ACTION_changeRmgPro
|
|
|
+ public function ACTION_changeRmgPro(Request $request, $uid) {
|
|
|
+ $record = DB::table('care_month')->where('uid', $uid)->first();
|
|
|
+ if(!$record) {
|
|
|
+ $record = DB::table('care_month')->where('id', $uid)->first();
|
|
|
+ if($record) return redirect('/care_months/view/' . $record->uid . '/ACTION_changeRmgPro');
|
|
|
+ }
|
|
|
+ return response()->view('pro/care_months_SINGLE/ACTION_changeRmgPro', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
|
|
|
+ }
|
|
|
+
|
|
|
+ // GET /care_months/view/{uid}/ACTION_removeRmgPro
|
|
|
+ public function ACTION_removeRmgPro(Request $request, $uid) {
|
|
|
+ $record = DB::table('care_month')->where('uid', $uid)->first();
|
|
|
+ if(!$record) {
|
|
|
+ $record = DB::table('care_month')->where('id', $uid)->first();
|
|
|
+ if($record) return redirect('/care_months/view/' . $record->uid . '/ACTION_removeRmgPro');
|
|
|
+ }
|
|
|
+ return response()->view('pro/care_months_SINGLE/ACTION_removeRmgPro', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
|
|
|
+ }
|
|
|
+
|
|
|
// GET /care_months/view/{uid}/ACTION_updateCmReasons
|
|
|
public function ACTION_updateCmReasons(Request $request, $uid) {
|
|
|
$record = DB::table('care_month')->where('uid', $uid)->first();
|