Bladeren bron

Support if condition for actions and subs

Vijayakrishnan Krishnan 5 jaren geleden
bovenliggende
commit
b4d46cbe04
100 gewijzigde bestanden met toevoegingen van 3007 en 144 verwijderingen
  1. 25 4
      app/Console/Commands/GenerateTreeCommand.php
  2. 30 0
      app/Http/Controllers/action_items_SINGLE_Controller.php
  3. 0 6
      app/Http/Controllers/bills_Controller.php
  4. 2 1
      app/Http/Controllers/bills_SINGLE_Controller.php
  5. 0 18
      app/Http/Controllers/care_month_entries_Controller.php
  6. 0 6
      app/Http/Controllers/care_months_Controller.php
  7. 124 3
      app/Http/Controllers/care_months_SINGLE_Controller.php
  8. 23 0
      app/Http/Controllers/erx_Controller.php
  9. 54 0
      app/Http/Controllers/erx_SINGLE_Controller.php
  10. 30 0
      app/Http/Controllers/facilities_SINGLE_Controller.php
  11. 18 0
      app/Http/Controllers/med_profile_line_updates_Controller.php
  12. 18 0
      app/Http/Controllers/med_profile_lines_Controller.php
  13. 20 13
      app/Http/Controllers/my_clients_SINGLE_Controller.php
  14. 1 1
      app/Http/Controllers/my_payment_schedule_Controller.php
  15. 0 6
      app/Http/Controllers/notes_Controller.php
  16. 13 0
      app/Http/Controllers/notes_SINGLE_Controller.php
  17. 5 0
      app/Http/Controllers/pro_access_Controller.php
  18. 48 0
      app/Http/Controllers/pro_access_SINGLE_Controller.php
  19. 0 6
      app/Http/Controllers/pro_rates_Controller.php
  20. 8 1
      app/Http/Controllers/pros_SINGLE_Controller.php
  21. 44 32
      generatecv/tree.txt
  22. 5 0
      resources/views/admin/facilities/actions.blade.php
  23. 31 0
      resources/views/admin/facilities_SINGLE/ACTION_deactivate.blade.php
  24. 31 0
      resources/views/admin/facilities_SINGLE/ACTION_reactivate.blade.php
  25. 79 0
      resources/views/admin/facilities_SINGLE/ACTION_updateBasic.blade.php
  26. 31 0
      resources/views/admin/facilities_SINGLE/ACTION_updateDeactivationMemo.blade.php
  27. 31 0
      resources/views/admin/facilities_SINGLE/ACTION_updateReactivationMemo.blade.php
  28. 1 1
      resources/views/admin/pro_rates/index.blade.php
  29. 2 1
      resources/views/admin/pros/actions.blade.php
  30. 44 0
      resources/views/admin/pros_SINGLE/ACTION_payment_scheduleAddNew.blade.php
  31. 57 1
      resources/views/admin/pros_SINGLE/SUB_payment_schedule.blade.php
  32. 3 0
      resources/views/layouts/generated-links.blade.php
  33. 5 0
      resources/views/pro/action_items/actions.blade.php
  34. 31 0
      resources/views/pro/action_items_SINGLE/ACTION_efax.blade.php
  35. 28 0
      resources/views/pro/action_items_SINGLE/ACTION_signAsPrescriber.blade.php
  36. 35 0
      resources/views/pro/action_items_SINGLE/ACTION_updateContent.blade.php
  37. 39 0
      resources/views/pro/action_items_SINGLE/ACTION_updateStatus.blade.php
  38. 37 0
      resources/views/pro/action_items_SINGLE/ACTION_updateToFacility.blade.php
  39. 1 1
      resources/views/pro/bills/index.blade.php
  40. 53 1
      resources/views/pro/bills_SINGLE/SUB_transactions.blade.php
  41. 1 4
      resources/views/pro/care_month_entries/index.blade.php
  42. 20 1
      resources/views/pro/care_months/actions.blade.php
  43. 1 1
      resources/views/pro/care_months/index.blade.php
  44. 2 1
      resources/views/pro/care_months/subs.blade.php
  45. 66 0
      resources/views/pro/care_months_SINGLE/ACTION_cm_time_entries AddNew.blade.php
  46. 66 0
      resources/views/pro/care_months_SINGLE/ACTION_cm_time_entriesAddNew.blade.php
  47. 37 0
      resources/views/pro/care_months_SINGLE/ACTION_putAllyPro.blade.php
  48. 37 0
      resources/views/pro/care_months_SINGLE/ACTION_putMcpPro.blade.php
  49. 43 0
      resources/views/pro/care_months_SINGLE/ACTION_putReasons.blade.php
  50. 66 0
      resources/views/pro/care_months_SINGLE/ACTION_rm_time_entries AddNew.blade.php
  51. 66 0
      resources/views/pro/care_months_SINGLE/ACTION_rm_time_entriesAddNew.blade.php
  52. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_setIsClientEnrolledInCmToFalse.blade.php
  53. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_setIsClientEnrolledInCmToTrue.blade.php
  54. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_setIsClientEnrolledInRmToFalse.blade.php
  55. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_setIsClientEnrolledInRmToTrue.blade.php
  56. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_setIsCmCanceledThisMonthToFalse.blade.php
  57. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_setIsCmCanceledThisMonthToTrue.blade.php
  58. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_setIsRmCanceledThisMonthToFalse.blade.php
  59. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_setIsRmCanceledThisMonthToTrue.blade.php
  60. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_setIsTmThisMonthToFalse.blade.php
  61. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_setIsTmThisMonthToTrue.blade.php
  62. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_updateWhyIsCmCanceledThisMonth.blade.php
  63. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_updateWhyIsRmCanceledThisMonth.blade.php
  64. 35 0
      resources/views/pro/care_months_SINGLE/ACTION_updateWhyNotEnrolledInCm.blade.php
  65. 35 0
      resources/views/pro/care_months_SINGLE/ACTION_updateWhyNotEnrolledInRm.blade.php
  66. 76 0
      resources/views/pro/care_months_SINGLE/SUB_cm_time_entries .blade.php
  67. 76 0
      resources/views/pro/care_months_SINGLE/SUB_cm_time_entries.blade.php
  68. 76 0
      resources/views/pro/care_months_SINGLE/SUB_rm_time_entries .blade.php
  69. 76 0
      resources/views/pro/care_months_SINGLE/SUB_rm_time_entries.blade.php
  70. 5 0
      resources/views/pro/erx/actions.blade.php
  71. 70 0
      resources/views/pro/erx/index.blade.php
  72. 2 0
      resources/views/pro/erx/subs.blade.php
  73. 27 0
      resources/views/pro/erx/view.blade.php
  74. 31 0
      resources/views/pro/erx_SINGLE/ACTION_efax.blade.php
  75. 28 0
      resources/views/pro/erx_SINGLE/ACTION_signAsPrescriber.blade.php
  76. 35 0
      resources/views/pro/erx_SINGLE/ACTION_updateContent.blade.php
  77. 39 0
      resources/views/pro/erx_SINGLE/ACTION_updateStatus.blade.php
  78. 37 0
      resources/views/pro/erx_SINGLE/ACTION_updateToFacility.blade.php
  79. 6 0
      resources/views/pro/erx_SINGLE/SUB_audit_log.blade.php
  80. 34 0
      resources/views/pro/erx_SINGLE/SUB_dashboard.blade.php
  81. 50 0
      resources/views/pro/med_profile_line_updates/index.blade.php
  82. 52 0
      resources/views/pro/med_profile_lines/index.blade.php
  83. 8 7
      resources/views/pro/my_clients/actions.blade.php
  84. 56 0
      resources/views/pro/my_clients_SINGLE/ACTION_action_itemsAddNew.blade.php
  85. 6 2
      resources/views/pro/my_clients_SINGLE/ACTION_care_monthsAddNew.blade.php
  86. 56 0
      resources/views/pro/my_clients_SINGLE/ACTION_erxAddNew.blade.php
  87. 50 0
      resources/views/pro/my_clients_SINGLE/ACTION_pro_accessAddNew.blade.php
  88. 1 1
      resources/views/pro/my_clients_SINGLE/SUB_action_items.blade.php
  89. 69 1
      resources/views/pro/my_clients_SINGLE/SUB_erx.blade.php
  90. 1 1
      resources/views/pro/my_clients_SINGLE/SUB_pro_access.blade.php
  91. 0 20
      resources/views/pro/my_teams_SINGLE/ACTION_clientsAddNew.blade.php
  92. 2 1
      resources/views/pro/notes/actions.blade.php
  93. 1 1
      resources/views/pro/notes/index.blade.php
  94. 1 0
      resources/views/pro/notes/subs.blade.php
  95. 64 0
      resources/views/pro/notes_SINGLE/ACTION_billsAddNew.blade.php
  96. 120 0
      resources/views/pro/notes_SINGLE/SUB_bills.blade.php
  97. 5 0
      resources/views/pro/pro_access/actions.blade.php
  98. 1 1
      resources/views/pro/pro_access/index.blade.php
  99. 1 0
      resources/views/pro/pro_access/subs.blade.php
  100. 27 0
      resources/views/pro/pro_access/view.blade.php

+ 25 - 4
app/Console/Commands/GenerateTreeCommand.php

@@ -162,12 +162,22 @@ class GenerateTreeCommand extends Command
                         break;
 
                     case 12: // ACTIONS | SUB
+                        // check if this has show conditions
+                        $show = false;
+                        if(strpos($line, ":")) {
+                            $parts = explode(":", $line);
+                            $line = $parts[0];
+                            if($parts[1] === 'if') {
+                                $show = $parts[2];
+                            }
+                        }
                         if($currentSubType === 'ACTIONS') {
                             $currentMethod = $currentSubController->addMethod(
                                 "ACTION_" . $line,
                                 "/ACTION_" . $line
                             );
                             $currentMethod->type = 'action';
+                            $currentMethod->show = $show;
                             $currentMethod->data = [];
                         }
                         else if($currentSubType === 'SUB') {
@@ -176,6 +186,7 @@ class GenerateTreeCommand extends Command
                                 "/SUB_" . $line
                             );
                             $currentMethod->type = 'sub';
+                            $currentMethod->show = $show;
                             $currentMethod->data = [];
                         }
                         break;
@@ -192,6 +203,11 @@ class GenerateTreeCommand extends Command
                         }
                         break;
 
+                    default:
+                        dump("ERROR: Cannot have $ls leading spaces!");
+                        dump("Line: $line");
+                        exit(1);
+
                 }
 
             }
@@ -431,7 +447,8 @@ class GenController {
         foreach ($controller->methods as $meth) {
             if (strpos($meth->name, "SUB_") !== 0) continue;
             $display = $this->snakeToTitleCase(substr($meth->name, 4));
-            $subLinks[] = "<a " .
+            $subLinks[] = ($meth->show ? "@if(\$record->{$meth->show}) " : "") .
+                "<a " .
                 "href='/{$controller->parentControllerName}/view/<?= \$record->uid ?>/{$meth->name}' " .
                 "class='d-block px-3 py-2 border-bottom " .
                 "{{ request()->route()->getActionMethod() === '{$meth->name}' ? 'bg-secondary text-white font-weight-bold' : '' }}" .
@@ -440,7 +457,8 @@ class GenController {
                     "{{ strpos(request()->route()->getActionMethod(), 'ACTION_') === 0 ? 'bg-secondary text-white font-weight-bold' : '' }}" :
                     ""
                 )
-                . "'>$display</a>";
+                . "'>$display</a>" .
+                ($meth->show ? " @endif" : "");
         }
         $this->file_force_contents($subLinksView, implode("\n", $subLinks));
         echo "Generated " . $subLinksView . "\n";
@@ -454,9 +472,11 @@ class GenController {
         foreach ($controller->methods as $meth) {
             if (strpos($meth->name, "ACTION_") !== 0) continue;
             $display = $this->camelToTitleCase(substr($meth->name, 7));
-            $actionLinks[] = "<a " .
+            $actionLinks[] = ($meth->show ? "@if(\$record->{$meth->show}) " : "") .
+                "<a " .
                 "href='/{$controller->parentControllerName}/view/<?= \$record->uid ?>/{$meth->name}' " .
-                "class='d-block btn btn-sm btn-default mb-3'>$display</a>";
+                "class='d-block btn btn-sm btn-default mb-3'>$display</a>" .
+                ($meth->show ? " @endif" : "");
         }
         $this->file_force_contents($actionLinksView, implode("\n", $actionLinks));
         echo "Generated " . $actionLinksView . "\n";
@@ -704,6 +724,7 @@ class GenControllerMethod {
     public $childAddRoute = false;
     public $table = false;
     public $api = 'create';
+    public $show = null;
     public function __construct($name, $route)
     {
         $this->name = $name;

+ 30 - 0
app/Http/Controllers/action_items_SINGLE_Controller.php

@@ -10,6 +10,36 @@ class action_items_SINGLE_Controller extends Controller
 {
     public $selfName = 'action_items_SINGLE_Controller';
 
+	// GET /action_items/view/{uid}/ACTION_signAsPrescriber
+	public function ACTION_signAsPrescriber(Request $request, $uid) {
+		$record = DB::table('action_item')->where('uid', $uid)->first();
+		return view('pro/action_items_SINGLE/ACTION_signAsPrescriber', compact('record'));
+	}
+
+	// GET /action_items/view/{uid}/ACTION_updateToFacility
+	public function ACTION_updateToFacility(Request $request, $uid) {
+		$record = DB::table('action_item')->where('uid', $uid)->first();
+		return view('pro/action_items_SINGLE/ACTION_updateToFacility', compact('record'));
+	}
+
+	// GET /action_items/view/{uid}/ACTION_updateContent
+	public function ACTION_updateContent(Request $request, $uid) {
+		$record = DB::table('action_item')->where('uid', $uid)->first();
+		return view('pro/action_items_SINGLE/ACTION_updateContent', compact('record'));
+	}
+
+	// GET /action_items/view/{uid}/ACTION_updateStatus
+	public function ACTION_updateStatus(Request $request, $uid) {
+		$record = DB::table('action_item')->where('uid', $uid)->first();
+		return view('pro/action_items_SINGLE/ACTION_updateStatus', compact('record'));
+	}
+
+	// GET /action_items/view/{uid}/ACTION_efax
+	public function ACTION_efax(Request $request, $uid) {
+		$record = DB::table('action_item')->where('uid', $uid)->first();
+		return view('pro/action_items_SINGLE/ACTION_efax', compact('record'));
+	}
+
 	// GET /action_items/view/{uid}/SUB_dashboard
 	public function SUB_dashboard(Request $request, $uid) {
 		$record = DB::table('action_item')->where('uid', $uid)->first();

+ 0 - 6
app/Http/Controllers/bills_Controller.php

@@ -16,12 +16,6 @@ class bills_Controller extends Controller
 		return view('pro/bills/index', compact('records'));
 	}
 
-	// GET /bills/add_new_for_note
-	public function add_new_for_note(Request $request) {
-		$records = DB::table('bill')->get();		$records = DB::table('bill')->get();
-		return view('pro/bills/add_new_for_note', compact('records'));
-	}
-
 	// GET /bills/view/{uid}
 	public function view(Request $request, $uid) {
 		return redirect("/bills/view/$uid/SUB_dashboard");

+ 2 - 1
app/Http/Controllers/bills_SINGLE_Controller.php

@@ -49,7 +49,8 @@ class bills_SINGLE_Controller extends Controller
 	// GET /bills/view/{uid}/SUB_transactions
 	public function SUB_transactions(Request $request, $uid) {
 		$record = DB::table('bill')->where('uid', $uid)->first();
-		return view('pro/bills_SINGLE/SUB_transactions', compact('record'));
+		$subRecords = DB::table('pro_transaction')->where('bill_id', $record->id)->get();
+		return view('pro/bills_SINGLE/SUB_transactions', compact('record', 'subRecords'));
 	}
 
 	// GET /bills/view/{uid}/SUB_audit_log

+ 0 - 18
app/Http/Controllers/care_month_entries_Controller.php

@@ -16,24 +16,6 @@ class care_month_entries_Controller extends Controller
 		return view('pro/care_month_entries/index', compact('records'));
 	}
 
-	// GET /care_month_entries/add_new_for_cm
-	public function add_new_for_cm(Request $request) {
-		$records = DB::table('care_month_entry')->get();		$records = DB::table('care_month_entry')->get();
-		return view('pro/care_month_entries/add_new_for_cm', compact('records'));
-	}
-
-	// GET /care_month_entries/add_new_for_rm
-	public function add_new_for_rm(Request $request) {
-		$records = DB::table('care_month_entry')->get();		$records = DB::table('care_month_entry')->get();		$records = DB::table('care_month_entry')->get();
-		return view('pro/care_month_entries/add_new_for_rm', compact('records'));
-	}
-
-	// GET /care_month_entries/remove/{uid}
-	public function remove(Request $request, $uid) {
-		$record = DB::table('care_month_entry')->where('uid', $uid)->first();
-		return view('pro/care_month_entries/remove', compact('record'));
-	}
-
 	// GET /care_month_entries/view/{uid}
 	public function view(Request $request, $uid) {
 		return redirect("/care_month_entries/view/$uid/SUB_dashboard");

+ 0 - 6
app/Http/Controllers/care_months_Controller.php

@@ -16,12 +16,6 @@ class care_months_Controller extends Controller
 		return view('pro/care_months/index', compact('records'));
 	}
 
-	// GET /care_months/add_new
-	public function add_new(Request $request) {
-		$records = DB::table('care_month')->get();		$records = DB::table('care_month')->get();
-		return view('pro/care_months/add_new', compact('records'));
-	}
-
 	// GET /care_months/view/{uid}
 	public function view(Request $request, $uid) {
 		return redirect("/care_months/view/$uid/SUB_dashboard");

+ 124 - 3
app/Http/Controllers/care_months_SINGLE_Controller.php

@@ -10,6 +10,60 @@ class care_months_SINGLE_Controller extends Controller
 {
     public $selfName = 'care_months_SINGLE_Controller';
 
+	// GET /care_months/view/{uid}/ACTION_putMcpPro
+	public function ACTION_putMcpPro(Request $request, $uid) {
+		$record = DB::table('care_month')->where('uid', $uid)->first();
+		return view('pro/care_months_SINGLE/ACTION_putMcpPro', compact('record'));
+	}
+
+	// GET /care_months/view/{uid}/ACTION_putAllyPro
+	public function ACTION_putAllyPro(Request $request, $uid) {
+		$record = DB::table('care_month')->where('uid', $uid)->first();
+		return view('pro/care_months_SINGLE/ACTION_putAllyPro', compact('record'));
+	}
+
+	// GET /care_months/view/{uid}/ACTION_putReasons
+	public function ACTION_putReasons(Request $request, $uid) {
+		$record = DB::table('care_month')->where('uid', $uid)->first();
+		return view('pro/care_months_SINGLE/ACTION_putReasons', compact('record'));
+	}
+
+	// GET /care_months/view/{uid}/ACTION_setIsClientEnrolledInCmToTrue
+	public function ACTION_setIsClientEnrolledInCmToTrue(Request $request, $uid) {
+		$record = DB::table('care_month')->where('uid', $uid)->first();
+		return view('pro/care_months_SINGLE/ACTION_setIsClientEnrolledInCmToTrue', compact('record'));
+	}
+
+	// GET /care_months/view/{uid}/ACTION_setIsClientEnrolledInCmToFalse
+	public function ACTION_setIsClientEnrolledInCmToFalse(Request $request, $uid) {
+		$record = DB::table('care_month')->where('uid', $uid)->first();
+		return view('pro/care_months_SINGLE/ACTION_setIsClientEnrolledInCmToFalse', compact('record'));
+	}
+
+	// GET /care_months/view/{uid}/ACTION_updateWhyNotEnrolledInCm
+	public function ACTION_updateWhyNotEnrolledInCm(Request $request, $uid) {
+		$record = DB::table('care_month')->where('uid', $uid)->first();
+		return view('pro/care_months_SINGLE/ACTION_updateWhyNotEnrolledInCm', compact('record'));
+	}
+
+	// GET /care_months/view/{uid}/ACTION_setIsClientEnrolledInRmToTrue
+	public function ACTION_setIsClientEnrolledInRmToTrue(Request $request, $uid) {
+		$record = DB::table('care_month')->where('uid', $uid)->first();
+		return view('pro/care_months_SINGLE/ACTION_setIsClientEnrolledInRmToTrue', compact('record'));
+	}
+
+	// GET /care_months/view/{uid}/ACTION_setIsClientEnrolledInRmToFalse
+	public function ACTION_setIsClientEnrolledInRmToFalse(Request $request, $uid) {
+		$record = DB::table('care_month')->where('uid', $uid)->first();
+		return view('pro/care_months_SINGLE/ACTION_setIsClientEnrolledInRmToFalse', compact('record'));
+	}
+
+	// GET /care_months/view/{uid}/ACTION_updateWhyNotEnrolledInRm
+	public function ACTION_updateWhyNotEnrolledInRm(Request $request, $uid) {
+		$record = DB::table('care_month')->where('uid', $uid)->first();
+		return view('pro/care_months_SINGLE/ACTION_updateWhyNotEnrolledInRm', compact('record'));
+	}
+
 	// GET /care_months/view/{uid}/ACTION_generateBillForCm
 	public function ACTION_generateBillForCm(Request $request, $uid) {
 		$record = DB::table('care_month')->where('uid', $uid)->first();
@@ -22,17 +76,72 @@ class care_months_SINGLE_Controller extends Controller
 		return view('pro/care_months_SINGLE/ACTION_generateBillForRm', compact('record'));
 	}
 
+	// GET /care_months/view/{uid}/ACTION_setIsCmCanceledThisMonthToTrue
+	public function ACTION_setIsCmCanceledThisMonthToTrue(Request $request, $uid) {
+		$record = DB::table('care_month')->where('uid', $uid)->first();
+		return view('pro/care_months_SINGLE/ACTION_setIsCmCanceledThisMonthToTrue', compact('record'));
+	}
+
+	// GET /care_months/view/{uid}/ACTION_updateWhyIsCmCanceledThisMonth
+	public function ACTION_updateWhyIsCmCanceledThisMonth(Request $request, $uid) {
+		$record = DB::table('care_month')->where('uid', $uid)->first();
+		return view('pro/care_months_SINGLE/ACTION_updateWhyIsCmCanceledThisMonth', compact('record'));
+	}
+
+	// GET /care_months/view/{uid}/ACTION_setIsCmCanceledThisMonthToFalse
+	public function ACTION_setIsCmCanceledThisMonthToFalse(Request $request, $uid) {
+		$record = DB::table('care_month')->where('uid', $uid)->first();
+		return view('pro/care_months_SINGLE/ACTION_setIsCmCanceledThisMonthToFalse', compact('record'));
+	}
+
+	// GET /care_months/view/{uid}/ACTION_setIsRmCanceledThisMonthToTrue
+	public function ACTION_setIsRmCanceledThisMonthToTrue(Request $request, $uid) {
+		$record = DB::table('care_month')->where('uid', $uid)->first();
+		return view('pro/care_months_SINGLE/ACTION_setIsRmCanceledThisMonthToTrue', compact('record'));
+	}
+
+	// GET /care_months/view/{uid}/ACTION_updateWhyIsRmCanceledThisMonth
+	public function ACTION_updateWhyIsRmCanceledThisMonth(Request $request, $uid) {
+		$record = DB::table('care_month')->where('uid', $uid)->first();
+		return view('pro/care_months_SINGLE/ACTION_updateWhyIsRmCanceledThisMonth', compact('record'));
+	}
+
+	// GET /care_months/view/{uid}/ACTION_setIsRmCanceledThisMonthToFalse
+	public function ACTION_setIsRmCanceledThisMonthToFalse(Request $request, $uid) {
+		$record = DB::table('care_month')->where('uid', $uid)->first();
+		return view('pro/care_months_SINGLE/ACTION_setIsRmCanceledThisMonthToFalse', compact('record'));
+	}
+
+	// GET /care_months/view/{uid}/ACTION_setIsTmThisMonthToTrue
+	public function ACTION_setIsTmThisMonthToTrue(Request $request, $uid) {
+		$record = DB::table('care_month')->where('uid', $uid)->first();
+		return view('pro/care_months_SINGLE/ACTION_setIsTmThisMonthToTrue', compact('record'));
+	}
+
+	// GET /care_months/view/{uid}/ACTION_setIsTmThisMonthToFalse
+	public function ACTION_setIsTmThisMonthToFalse(Request $request, $uid) {
+		$record = DB::table('care_month')->where('uid', $uid)->first();
+		return view('pro/care_months_SINGLE/ACTION_setIsTmThisMonthToFalse', compact('record'));
+	}
+
 	// GET /care_months/view/{uid}/SUB_dashboard
 	public function SUB_dashboard(Request $request, $uid) {
 		$record = DB::table('care_month')->where('uid', $uid)->first();
 		return view('pro/care_months_SINGLE/SUB_dashboard', compact('record'));
 	}
 
-	// GET /care_months/view/{uid}/SUB_time_entries
-	public function SUB_time_entries(Request $request, $uid) {
+	// GET /care_months/view/{uid}/SUB_cm_time_entries
+	public function SUB_cm_time_entries(Request $request, $uid) {
 		$record = DB::table('care_month')->where('uid', $uid)->first();
 		$subRecords = DB::table('care_month_entry')->where('care_month_id', $record->id)->get();
-		return view('pro/care_months_SINGLE/SUB_time_entries', compact('record', 'subRecords'));
+		return view('pro/care_months_SINGLE/SUB_cm_time_entries', compact('record', 'subRecords'));
+	}
+
+	// GET /care_months/view/{uid}/SUB_rm_time_entries
+	public function SUB_rm_time_entries(Request $request, $uid) {
+		$record = DB::table('care_month')->where('uid', $uid)->first();
+		$subRecords = DB::table('care_month_entry')->where('care_month_id', $record->id)->get();
+		return view('pro/care_months_SINGLE/SUB_rm_time_entries', compact('record', 'subRecords'));
 	}
 
 	// GET /care_months/view/{uid}/SUB_audit_log
@@ -40,4 +149,16 @@ class care_months_SINGLE_Controller extends Controller
 		$record = DB::table('care_month')->where('uid', $uid)->first();
 		return view('pro/care_months_SINGLE/SUB_audit_log', compact('record'));
 	}
+
+	// GET /care_months/view/{uid}/ACTION_cm_time_entriesAddNew
+	public function ACTION_cm_time_entriesAddNew(Request $request, $uid) {
+		$record = DB::table('care_month')->where('uid', $uid)->first();
+		return view('pro/care_months_SINGLE/ACTION_cm_time_entriesAddNew', compact('record'));
+	}
+
+	// GET /care_months/view/{uid}/ACTION_rm_time_entriesAddNew
+	public function ACTION_rm_time_entriesAddNew(Request $request, $uid) {
+		$record = DB::table('care_month')->where('uid', $uid)->first();
+		return view('pro/care_months_SINGLE/ACTION_rm_time_entriesAddNew', compact('record'));
+	}
 }

+ 23 - 0
app/Http/Controllers/erx_Controller.php

@@ -0,0 +1,23 @@
+<?php
+
+namespace App\Http\Controllers;
+
+use Illuminate\Http\Request;
+use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
+
+class erx_Controller extends Controller
+{
+    public $selfName = 'erx_Controller';
+
+	// GET /erx
+	public function index(Request $request) {
+		$records = DB::table('action_item')->get();
+		return view('pro/erx/index', compact('records'));
+	}
+
+	// GET /erx/view/{uid}
+	public function view(Request $request, $uid) {
+		return redirect("/erx/view/$uid/SUB_dashboard");
+	}
+}

+ 54 - 0
app/Http/Controllers/erx_SINGLE_Controller.php

@@ -0,0 +1,54 @@
+<?php
+
+namespace App\Http\Controllers;
+
+use Illuminate\Http\Request;
+use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
+
+class erx_SINGLE_Controller extends Controller
+{
+    public $selfName = 'erx_SINGLE_Controller';
+
+	// GET /erx/view/{uid}/ACTION_signAsPrescriber
+	public function ACTION_signAsPrescriber(Request $request, $uid) {
+		$record = DB::table('action_item')->where('uid', $uid)->first();
+		return view('pro/erx_SINGLE/ACTION_signAsPrescriber', compact('record'));
+	}
+
+	// GET /erx/view/{uid}/ACTION_updateToFacility
+	public function ACTION_updateToFacility(Request $request, $uid) {
+		$record = DB::table('action_item')->where('uid', $uid)->first();
+		return view('pro/erx_SINGLE/ACTION_updateToFacility', compact('record'));
+	}
+
+	// GET /erx/view/{uid}/ACTION_updateContent
+	public function ACTION_updateContent(Request $request, $uid) {
+		$record = DB::table('action_item')->where('uid', $uid)->first();
+		return view('pro/erx_SINGLE/ACTION_updateContent', compact('record'));
+	}
+
+	// GET /erx/view/{uid}/ACTION_updateStatus
+	public function ACTION_updateStatus(Request $request, $uid) {
+		$record = DB::table('action_item')->where('uid', $uid)->first();
+		return view('pro/erx_SINGLE/ACTION_updateStatus', compact('record'));
+	}
+
+	// GET /erx/view/{uid}/ACTION_efax
+	public function ACTION_efax(Request $request, $uid) {
+		$record = DB::table('action_item')->where('uid', $uid)->first();
+		return view('pro/erx_SINGLE/ACTION_efax', compact('record'));
+	}
+
+	// GET /erx/view/{uid}/SUB_dashboard
+	public function SUB_dashboard(Request $request, $uid) {
+		$record = DB::table('action_item')->where('uid', $uid)->first();
+		return view('pro/erx_SINGLE/SUB_dashboard', compact('record'));
+	}
+
+	// GET /erx/view/{uid}/SUB_audit_log
+	public function SUB_audit_log(Request $request, $uid) {
+		$record = DB::table('action_item')->where('uid', $uid)->first();
+		return view('pro/erx_SINGLE/SUB_audit_log', compact('record'));
+	}
+}

+ 30 - 0
app/Http/Controllers/facilities_SINGLE_Controller.php

@@ -10,6 +10,36 @@ class facilities_SINGLE_Controller extends Controller
 {
     public $selfName = 'facilities_SINGLE_Controller';
 
+	// GET /facilities/view/{uid}/ACTION_updateBasic
+	public function ACTION_updateBasic(Request $request, $uid) {
+		$record = DB::table('facility')->where('uid', $uid)->first();
+		return view('admin/facilities_SINGLE/ACTION_updateBasic', compact('record'));
+	}
+
+	// GET /facilities/view/{uid}/ACTION_deactivate
+	public function ACTION_deactivate(Request $request, $uid) {
+		$record = DB::table('facility')->where('uid', $uid)->first();
+		return view('admin/facilities_SINGLE/ACTION_deactivate', compact('record'));
+	}
+
+	// GET /facilities/view/{uid}/ACTION_updateDeactivationMemo
+	public function ACTION_updateDeactivationMemo(Request $request, $uid) {
+		$record = DB::table('facility')->where('uid', $uid)->first();
+		return view('admin/facilities_SINGLE/ACTION_updateDeactivationMemo', compact('record'));
+	}
+
+	// GET /facilities/view/{uid}/ACTION_reactivate
+	public function ACTION_reactivate(Request $request, $uid) {
+		$record = DB::table('facility')->where('uid', $uid)->first();
+		return view('admin/facilities_SINGLE/ACTION_reactivate', compact('record'));
+	}
+
+	// GET /facilities/view/{uid}/ACTION_updateReactivationMemo
+	public function ACTION_updateReactivationMemo(Request $request, $uid) {
+		$record = DB::table('facility')->where('uid', $uid)->first();
+		return view('admin/facilities_SINGLE/ACTION_updateReactivationMemo', compact('record'));
+	}
+
 	// GET /facilities/view/{uid}/SUB_dashboard
 	public function SUB_dashboard(Request $request, $uid) {
 		$record = DB::table('facility')->where('uid', $uid)->first();

+ 18 - 0
app/Http/Controllers/med_profile_line_updates_Controller.php

@@ -0,0 +1,18 @@
+<?php
+
+namespace App\Http\Controllers;
+
+use Illuminate\Http\Request;
+use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
+
+class med_profile_line_updates_Controller extends Controller
+{
+    public $selfName = 'med_profile_line_updates_Controller';
+
+	// GET /med_profile_line_updates
+	public function index(Request $request) {
+		$records = DB::table('client_info_line_update')->get();
+		return view('pro/med_profile_line_updates/index', compact('records'));
+	}
+}

+ 18 - 0
app/Http/Controllers/med_profile_lines_Controller.php

@@ -0,0 +1,18 @@
+<?php
+
+namespace App\Http\Controllers;
+
+use Illuminate\Http\Request;
+use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
+
+class med_profile_lines_Controller extends Controller
+{
+    public $selfName = 'med_profile_lines_Controller';
+
+	// GET /med_profile_lines
+	public function index(Request $request) {
+		$records = DB::table('client_info_line')->get();
+		return view('pro/med_profile_lines/index', compact('records'));
+	}
+}

+ 20 - 13
app/Http/Controllers/my_clients_SINGLE_Controller.php

@@ -16,12 +16,6 @@ class my_clients_SINGLE_Controller extends Controller
 		return view('pro/my_clients_SINGLE/ACTION_sendCellNumberConfirmationMessage', compact('record'));
 	}
 
-	// GET /my_clients/view/{uid}/ACTION_confirmCellNumberWithConfirmationToken
-	public function ACTION_confirmCellNumberWithConfirmationToken(Request $request, $uid) {
-		$record = DB::table('client')->where('uid', $uid)->first();
-		return view('pro/my_clients_SINGLE/ACTION_confirmCellNumberWithConfirmationToken', compact('record'));
-	}
-
 	// GET /my_clients/view/{uid}/ACTION_putNewCellNumber
 	public function ACTION_putNewCellNumber(Request $request, $uid) {
 		$record = DB::table('client')->where('uid', $uid)->first();
@@ -34,12 +28,6 @@ class my_clients_SINGLE_Controller extends Controller
 		return view('pro/my_clients_SINGLE/ACTION_sendEmailAddressConfirmationMessage', compact('record'));
 	}
 
-	// GET /my_clients/view/{uid}/ACTION_confirmEmailAddressWithConfirmationToken
-	public function ACTION_confirmEmailAddressWithConfirmationToken(Request $request, $uid) {
-		$record = DB::table('client')->where('uid', $uid)->first();
-		return view('pro/my_clients_SINGLE/ACTION_confirmEmailAddressWithConfirmationToken', compact('record'));
-	}
-
 	// GET /my_clients/view/{uid}/ACTION_putNewEmailAddress
 	public function ACTION_putNewEmailAddress(Request $request, $uid) {
 		$record = DB::table('client')->where('uid', $uid)->first();
@@ -308,7 +296,8 @@ class my_clients_SINGLE_Controller extends Controller
 	// GET /my_clients/view/{uid}/SUB_erx
 	public function SUB_erx(Request $request, $uid) {
 		$record = DB::table('client')->where('uid', $uid)->first();
-		return view('pro/my_clients_SINGLE/SUB_erx', compact('record'));
+		$subRecords = DB::table('action_item')->where('client_id', $record->id)->get();
+		return view('pro/my_clients_SINGLE/SUB_erx', compact('record', 'subRecords'));
 	}
 
 	// GET /my_clients/view/{uid}/SUB_mcp_updates
@@ -331,6 +320,12 @@ class my_clients_SINGLE_Controller extends Controller
 		return view('pro/my_clients_SINGLE/SUB_audit_log', compact('record'));
 	}
 
+	// GET /my_clients/view/{uid}/ACTION_pro_accessAddNew
+	public function ACTION_pro_accessAddNew(Request $request, $uid) {
+		$record = DB::table('client')->where('uid', $uid)->first();
+		return view('pro/my_clients_SINGLE/ACTION_pro_accessAddNew', compact('record'));
+	}
+
 	// GET /my_clients/view/{uid}/ACTION_notesAddNew
 	public function ACTION_notesAddNew(Request $request, $uid) {
 		$record = DB::table('client')->where('uid', $uid)->first();
@@ -342,4 +337,16 @@ class my_clients_SINGLE_Controller extends Controller
 		$record = DB::table('client')->where('uid', $uid)->first();
 		return view('pro/my_clients_SINGLE/ACTION_care_monthsAddNew', compact('record'));
 	}
+
+	// GET /my_clients/view/{uid}/ACTION_action_itemsAddNew
+	public function ACTION_action_itemsAddNew(Request $request, $uid) {
+		$record = DB::table('client')->where('uid', $uid)->first();
+		return view('pro/my_clients_SINGLE/ACTION_action_itemsAddNew', compact('record'));
+	}
+
+	// GET /my_clients/view/{uid}/ACTION_erxAddNew
+	public function ACTION_erxAddNew(Request $request, $uid) {
+		$record = DB::table('client')->where('uid', $uid)->first();
+		return view('pro/my_clients_SINGLE/ACTION_erxAddNew', compact('record'));
+	}
 }

+ 1 - 1
app/Http/Controllers/my_payment_schedule_Controller.php

@@ -12,7 +12,7 @@ class my_payment_schedule_Controller extends Controller
 
 	// GET /my_payment_schedule
 	public function index(Request $request) {
-	    $records = DB::table('pro_rate')->where('pro_id', Auth::id())->get();
+		$records = DB::table('pro_rate')->where('pro_id', Auth::user()->id)->get();
 		return view('pro/my_payment_schedule/index', compact('records'));
 	}
 }

+ 0 - 6
app/Http/Controllers/notes_Controller.php

@@ -16,12 +16,6 @@ class notes_Controller extends Controller
 		return view('pro/notes/index', compact('records'));
 	}
 
-	// GET /notes/add_new
-	public function add_new(Request $request) {
-		$records = DB::table('note')->get();		$records = DB::table('note')->get();
-		return view('pro/notes/add_new', compact('records'));
-	}
-
 	// GET /notes/view/{uid}
 	public function view(Request $request, $uid) {
 		return redirect("/notes/view/$uid/SUB_dashboard");

+ 13 - 0
app/Http/Controllers/notes_SINGLE_Controller.php

@@ -22,9 +22,22 @@ class notes_SINGLE_Controller extends Controller
 		return view('pro/notes_SINGLE/SUB_dashboard', compact('record'));
 	}
 
+	// GET /notes/view/{uid}/SUB_bills
+	public function SUB_bills(Request $request, $uid) {
+		$record = DB::table('note')->where('uid', $uid)->first();
+		$subRecords = DB::table('bill')->where('note_id', $record->id)->get();
+		return view('pro/notes_SINGLE/SUB_bills', compact('record', 'subRecords'));
+	}
+
 	// GET /notes/view/{uid}/SUB_audit_log
 	public function SUB_audit_log(Request $request, $uid) {
 		$record = DB::table('note')->where('uid', $uid)->first();
 		return view('pro/notes_SINGLE/SUB_audit_log', compact('record'));
 	}
+
+	// GET /notes/view/{uid}/ACTION_billsAddNew
+	public function ACTION_billsAddNew(Request $request, $uid) {
+		$record = DB::table('note')->where('uid', $uid)->first();
+		return view('pro/notes_SINGLE/ACTION_billsAddNew', compact('record'));
+	}
 }

+ 5 - 0
app/Http/Controllers/pro_access_Controller.php

@@ -15,4 +15,9 @@ class pro_access_Controller extends Controller
 		$records = DB::table('client_pro_access')->get();
 		return view('pro/pro_access/index', compact('records'));
 	}
+
+	// GET /pro_access/view/{uid}
+	public function view(Request $request, $uid) {
+		return redirect("/pro_access/view/$uid/SUB_dashboard");
+	}
 }

+ 48 - 0
app/Http/Controllers/pro_access_SINGLE_Controller.php

@@ -0,0 +1,48 @@
+<?php
+
+namespace App\Http\Controllers;
+
+use Illuminate\Http\Request;
+use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
+
+class pro_access_SINGLE_Controller extends Controller
+{
+    public $selfName = 'pro_access_SINGLE_Controller';
+
+	// GET /pro_access/view/{uid}/ACTION_updateReason
+	public function ACTION_updateReason(Request $request, $uid) {
+		$record = DB::table('client_pro_access')->where('uid', $uid)->first();
+		return view('pro/pro_access_SINGLE/ACTION_updateReason', compact('record'));
+	}
+
+	// GET /pro_access/view/{uid}/ACTION_deactivate
+	public function ACTION_deactivate(Request $request, $uid) {
+		$record = DB::table('client_pro_access')->where('uid', $uid)->first();
+		return view('pro/pro_access_SINGLE/ACTION_deactivate', compact('record'));
+	}
+
+	// GET /pro_access/view/{uid}/ACTION_updateDeactivationMemo
+	public function ACTION_updateDeactivationMemo(Request $request, $uid) {
+		$record = DB::table('client_pro_access')->where('uid', $uid)->first();
+		return view('pro/pro_access_SINGLE/ACTION_updateDeactivationMemo', compact('record'));
+	}
+
+	// GET /pro_access/view/{uid}/ACTION_reactivate
+	public function ACTION_reactivate(Request $request, $uid) {
+		$record = DB::table('client_pro_access')->where('uid', $uid)->first();
+		return view('pro/pro_access_SINGLE/ACTION_reactivate', compact('record'));
+	}
+
+	// GET /pro_access/view/{uid}/ACTION_updateReactivationMemo
+	public function ACTION_updateReactivationMemo(Request $request, $uid) {
+		$record = DB::table('client_pro_access')->where('uid', $uid)->first();
+		return view('pro/pro_access_SINGLE/ACTION_updateReactivationMemo', compact('record'));
+	}
+
+	// GET /pro_access/view/{uid}/SUB_dashboard
+	public function SUB_dashboard(Request $request, $uid) {
+		$record = DB::table('client_pro_access')->where('uid', $uid)->first();
+		return view('pro/pro_access_SINGLE/SUB_dashboard', compact('record'));
+	}
+}

+ 0 - 6
app/Http/Controllers/pro_rates_Controller.php

@@ -16,12 +16,6 @@ class pro_rates_Controller extends Controller
 		return view('admin/pro_rates/index', compact('records'));
 	}
 
-	// GET /pro_rates/add_new
-	public function add_new(Request $request) {
-		$records = DB::table('pro_rate')->get();		$records = DB::table('pro_rate')->get();
-		return view('admin/pro_rates/add_new', compact('records'));
-	}
-
 	// GET /pro_rates/view/{uid}
 	public function view(Request $request, $uid) {
 		return redirect("/pro_rates/view/$uid/SUB_dashboard");

+ 8 - 1
app/Http/Controllers/pros_SINGLE_Controller.php

@@ -109,7 +109,8 @@ class pros_SINGLE_Controller extends Controller
 	// GET /pros/view/{uid}/SUB_payment_schedule
 	public function SUB_payment_schedule(Request $request, $uid) {
 		$record = DB::table('pro')->where('uid', $uid)->first();
-		return view('admin/pros_SINGLE/SUB_payment_schedule', compact('record'));
+		$subRecords = DB::table('pro_rate')->where('pro_id', $record->id)->get();
+		return view('admin/pros_SINGLE/SUB_payment_schedule', compact('record', 'subRecords'));
 	}
 
 	// GET /pros/view/{uid}/SUB_teams
@@ -195,4 +196,10 @@ class pros_SINGLE_Controller extends Controller
 		$record = DB::table('pro')->where('uid', $uid)->first();
 		return view('admin/pros_SINGLE/SUB_audit_log', compact('record'));
 	}
+
+	// GET /pros/view/{uid}/ACTION_payment_scheduleAddNew
+	public function ACTION_payment_scheduleAddNew(Request $request, $uid) {
+		$record = DB::table('pro')->where('uid', $uid)->first();
+		return view('admin/pros_SINGLE/ACTION_payment_scheduleAddNew', compact('record'));
+	}
 }

+ 44 - 32
generatecv/tree.txt

@@ -64,13 +64,13 @@ PRO
                 newEmailAddress:email=email_address
             putTeam
                 teamUid:record:team:uid,team_number
-            removeTeam:if:teamUid
+            removeTeam:if:team_id
             putMcp
                 mcpProUid:record:pro:uid,name_display
-            removeMcp:if:mcpProUid
+            removeMcp:if:mcp_pro_id
             putAlly
                 allyProUid:record:pro:uid,name_display
-            removeAlly:if:allyProUid
+            removeAlly:if:ally_pro_id
             putName
                 nameDisplay
                 namePrefix
@@ -85,7 +85,7 @@ PRO
                 dateOfBirth:date=date_of_birth
             putProfilePicture
                 profilePictureBase64
-            removeProfilePicture:if:profilePictureBase64
+            removeProfilePicture:if:profile_picture_base64
             updatePhoneInfo
                 homePhoneNumber=home_phone_number
                 workPhoneNumber=work_phone_number
@@ -158,7 +158,8 @@ PRO
             med_profile
             med_profile_log
             pro_access
-                id=client_pro_access.client_id :: also link to TL pro-access single
+# :: also link to TL pro-access single
+                id=client_pro_access.client_id
                 add_new:client_pro_access
                     clientUid:hidden=uid
                     proUid:record:pro:uid,name_display
@@ -167,7 +168,8 @@ PRO
                     reasonDetail
             notes
                 id=note.client_id
-                add_new:note :: exit to notes/view/{uid} - 207
+# :: exit to notes/view/{uid} - 207
+                add_new:note
                     clientUid:hidden=uid
                     hcpProUid:record:pro:uid,name_display
                     allyProUid:record:pro:uid,name_display
@@ -202,7 +204,8 @@ PRO
                     contentText
                     contentDetail
             erx
-                id=action_item.client_id :: and category = RX
+# :: and category = RX
+                id=action_item.client_id
                 add_new:action_item
                     clientUid:hidden=uid
                     prescriberProUid:record:pro:uid,name_display
@@ -222,7 +225,8 @@ PRO
             dashboard
             bills
                 id=bill.note_id
-                add_new:bill :: api is createForNote
+# :: api is createForNote
+                add_new:bill
                     noteUid:hidden=uid
                     effectiveDate:date
                     code
@@ -234,9 +238,10 @@ PRO
                     modifier
                     numberOfUnits:number
             audit_log
-    erx|action_item|view :: where category = RX
+# :: where category = RX
+    erx|action_item|view
     erx/view/{uid}
-         ACTIONS
+        ACTIONS
             signAsPrescriber
             updateToFacility
                 toFacilityUid:record:facility:uid,name
@@ -248,26 +253,26 @@ PRO
                 statusMemo
             efax
                 toFaxNumber:tel
-         SUB
-             dashboard
-             audit_log
+        SUB
+            dashboard
+            audit_log
     action_items|action_item|view
     action_items/view/{uid}
         ACTIONS
-         	signAsPrescriber
-         	updateToFacility
-         	    toFacilityUid:record:facility:uid,name
-         	updateContent
-         	    contentText=content_text
+            signAsPrescriber
+            updateToFacility
+                toFacilityUid:record:facility:uid,name
+            updateContent
+                contentText=content_text
                 contentDetail=content_detail
-         	updateStatus
-         	    statusCategory:select:OPEN,CLOSED
+            updateStatus
+                statusCategory:select:OPEN,CLOSED
                 statusMemo
-         	efax
-         	    toFaxNumber:tel
+            efax
+                toFaxNumber:tel
         SUB
-             dashboard
-             audit_log
+            dashboard
+            audit_log
     care_months|care_month|view
     care_months/view/{uid}
         ACTIONS
@@ -304,9 +309,12 @@ PRO
             setIsTmThisMonthToFalse
         SUB
             dashboard
-            cm_time_entries :: need remove
-                id=care_month_entry.care_month_id :: where cm_or_rm = cm
-                add_new:care_month_entry :: api is createForCm
+# :: need remove
+            cm_time_entries
+# :: where cm_or_rm = cm
+                id=care_month_entry.care_month_id
+# :: api is createForCm
+                add_new:care_month_entry
                     careMonthUid:hidden=uid
                     proUid:record:pro:uid,name_display
                     effectiveDate:date
@@ -316,9 +324,12 @@ PRO
                     endingTime:time
                     contentText
                     contentDetail
-            rm_time_entries :: need remove
-                id=care_month_entry.care_month_id :: where cm_or_rm = rm
-                add_new:care_month_entry :: api is createForRm
+# :: need remove
+            rm_time_entries
+# :: where cm_or_rm = rm
+                id=care_month_entry.care_month_id
+# :: api is createForRm
+                add_new:care_month_entry
                     careMonthUid:hidden=uid
                     proUid:record:pro:uid,name_display
                     effectiveDate:date
@@ -380,7 +391,7 @@ PRO
             dashboard
     mcp_updates|client_mcp_update
     ally_updates|client_ally_update
-    audit_log :: coming soon
+#   audit_log :: coming soon
 
 ADMIN
 #   admin_dashboard
@@ -500,7 +511,8 @@ ADMIN
         SUB
             dashboard
             payment_schedule
-                id=pro_rate.pro_id :: and link to pro_rates/view/{uid}
+# :: and link to pro_rates/view/{uid}
+                id=pro_rate.pro_id
                 add_new:pro_rate
                     proUid:hidden=uid
                     asHcpOrAlly:select:HCP,ALLY

+ 5 - 0
resources/views/admin/facilities/actions.blade.php

@@ -0,0 +1,5 @@
+<a href='/facilities/view/<?= $record->uid ?>/ACTION_updateBasic' class='d-block btn btn-sm btn-default mb-3'>Update Basic</a>
+<a href='/facilities/view/<?= $record->uid ?>/ACTION_deactivate' class='d-block btn btn-sm btn-default mb-3'>Deactivate</a>
+<a href='/facilities/view/<?= $record->uid ?>/ACTION_updateDeactivationMemo' class='d-block btn btn-sm btn-default mb-3'>Update Deactivation Memo</a>
+<a href='/facilities/view/<?= $record->uid ?>/ACTION_reactivate' class='d-block btn btn-sm btn-default mb-3'>Reactivate</a>
+<a href='/facilities/view/<?= $record->uid ?>/ACTION_updateReactivationMemo' class='d-block btn btn-sm btn-default mb-3'>Update Reactivation Memo</a>

+ 31 - 0
resources/views/admin/facilities_SINGLE/ACTION_deactivate.blade.php

@@ -0,0 +1,31 @@
+@extends('admin.facilities.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Deactivate</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/facility/deactivate">
+        <input type="hidden" name="_success" value="{{route('facilities-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('facilities_SINGLE-ACTION_deactivate', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Memo</label>
+<input class='form-control' type='text' name='memo' value='{{ old('memo') ? old('memo') : '' }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('facilities-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 31 - 0
resources/views/admin/facilities_SINGLE/ACTION_reactivate.blade.php

@@ -0,0 +1,31 @@
+@extends('admin.facilities.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Reactivate</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/facility/reactivate">
+        <input type="hidden" name="_success" value="{{route('facilities-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('facilities_SINGLE-ACTION_reactivate', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Memo</label>
+<input class='form-control' type='text' name='memo' value='{{ old('memo') ? old('memo') : '' }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('facilities-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 79 - 0
resources/views/admin/facilities_SINGLE/ACTION_updateBasic.blade.php

@@ -0,0 +1,79 @@
+@extends('admin.facilities.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Update Basic</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/facility/updateBasic">
+        <input type="hidden" name="_success" value="{{route('facilities-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('facilities_SINGLE-ACTION_updateBasic', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Name</label>
+<input class='form-control' type='text' name='name' value='{{ old('name') ? old('name') : $record->name }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Address Full</label>
+<input class='form-control' type='text' name='addressFull' value='{{ old('addressFull') ? old('addressFull') : $record->address_full }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Address Line 1</label>
+<input class='form-control' type='text' name='addressLine1' value='{{ old('addressLine1') ? old('addressLine1') : $record->address_line1 }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Address Line 2</label>
+<input class='form-control' type='text' name='addressLine2' value='{{ old('addressLine2') ? old('addressLine2') : $record->address_line2 }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Address City</label>
+<input class='form-control' type='text' name='addressCity' value='{{ old('addressCity') ? old('addressCity') : $record->address_city }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Address State</label>
+<input class='form-control' type='text' name='addressState' value='{{ old('addressState') ? old('addressState') : $record->address_state }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Address Zip</label>
+<input class='form-control' type='text' name='addressZip' value='{{ old('addressZip') ? old('addressZip') : $record->address_zip }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Address Country</label>
+<input class='form-control' type='text' name='addressCountry' value='{{ old('addressCountry') ? old('addressCountry') : $record->address_country }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Address Geo Lat</label>
+<input class='form-control' type='text' name='addressGeoLat' value='{{ old('addressGeoLat') ? old('addressGeoLat') : $record->address_geo_lat }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Address Geo Long</label>
+<input class='form-control' type='text' name='addressGeoLong' value='{{ old('addressGeoLong') ? old('addressGeoLong') : $record->address_geo_long }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Phone</label>
+<input class='form-control' type='text' name='phone' value='{{ old('phone') ? old('phone') : $record->phone }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Fax</label>
+<input class='form-control' type='text' name='fax' value='{{ old('fax') ? old('fax') : $record->fax }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Hours</label>
+<input class='form-control' type='text' name='hours' value='{{ old('hours') ? old('hours') : $record->hours }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('facilities-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 31 - 0
resources/views/admin/facilities_SINGLE/ACTION_updateDeactivationMemo.blade.php

@@ -0,0 +1,31 @@
+@extends('admin.facilities.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Update Deactivation Memo</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/facility/updateDeactivationMemo">
+        <input type="hidden" name="_success" value="{{route('facilities-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('facilities_SINGLE-ACTION_updateDeactivationMemo', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Memo</label>
+<input class='form-control' type='text' name='memo' value='{{ old('memo') ? old('memo') : $record->deactivation_memo }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('facilities-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 31 - 0
resources/views/admin/facilities_SINGLE/ACTION_updateReactivationMemo.blade.php

@@ -0,0 +1,31 @@
+@extends('admin.facilities.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Update Reactivation Memo</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/facility/updateReactivationMemo">
+        <input type="hidden" name="_success" value="{{route('facilities-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('facilities_SINGLE-ACTION_updateReactivationMemo', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Memo</label>
+<input class='form-control' type='text' name='memo' value='{{ old('memo') ? old('memo') : $record->reactivation_memo }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('facilities-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 1 - 1
resources/views/admin/pro_rates/index.blade.php

@@ -4,7 +4,7 @@
     <h3 class="d-flex mb-3">
         <div>Pro Rates: List</div>
         <div class="ml-auto">
-            <a class='btn btn-primary btn-sm ml-2' href='/pro_rates/add_new'><i class='fa fa-plus-circle' aria-hidden='true'></i> Add New</a>
+            <!-- _ADD_NEW_LINK_ -->
         </div>
     </h3>
 

+ 2 - 1
resources/views/admin/pros/actions.blade.php

@@ -12,4 +12,5 @@
 <a href='/pros/view/<?= $record->uid ?>/ACTION_updatePaymentProcessingDetail' class='d-block btn btn-sm btn-default mb-3'>Update Payment Processing Detail</a>
 <a href='/pros/view/<?= $record->uid ?>/ACTION_uploadDriverLicense' class='d-block btn btn-sm btn-default mb-3'>Upload Driver License</a>
 <a href='/pros/view/<?= $record->uid ?>/ACTION_updateDriverLicenseInfo' class='d-block btn btn-sm btn-default mb-3'>Update Driver License Info</a>
-<a href='/pros/view/<?= $record->uid ?>/ACTION_updateSsn' class='d-block btn btn-sm btn-default mb-3'>Update Ssn</a>
+<a href='/pros/view/<?= $record->uid ?>/ACTION_updateSsn' class='d-block btn btn-sm btn-default mb-3'>Update Ssn</a>
+<a href='/pros/view/<?= $record->uid ?>/ACTION_payment_scheduleAddNew' class='d-block btn btn-sm btn-default mb-3'>Payment_schedule Add New</a>

+ 44 - 0
resources/views/admin/pros_SINGLE/ACTION_payment_scheduleAddNew.blade.php

@@ -0,0 +1,44 @@
+@extends('admin.pros.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Payment Schedule Add New</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/proRate/create">
+        <input type="hidden" name="_success" value="{{route('pros_SINGLE-SUB_payment_schedule', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('pros_SINGLE-ACTION_payment_scheduleAddNew', ['uid' => $record->uid])}}">
+        <input class='form-control' type='hidden' name='proUid' value='{{ old('proUid') ? old('proUid') : $record->uid }}' >
+<div class='form-group mb-3'>
+<label class='control-label'>As Hcp Or Ally</label>
+<select class='form-control' name='asHcpOrAlly' value='{{ old('asHcpOrAlly') ? old('asHcpOrAlly') : '' }}' >
+<option value=''>-- Select --</option>
+<option <?= 'HCP' === (old('asHcpOrAlly') ? old('asHcpOrAlly') : '') ? 'selected' : '' ?> value='HCP'>HCP</option>
+<option <?= 'ALLY' === (old('asHcpOrAlly') ? old('asHcpOrAlly') : '') ? 'selected' : '' ?> value='ALLY'>ALLY</option>
+</select>
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Code</label>
+<input class='form-control' type='text' name='code' value='{{ old('code') ? old('code') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Amount</label>
+<input class='form-control' type='number' name='amount' value='{{ old('amount') ? old('amount') : '' }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('pros_SINGLE-SUB_payment_schedule', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 57 - 1
resources/views/admin/pros_SINGLE/SUB_payment_schedule.blade.php

@@ -1,6 +1,62 @@
 @extends('admin.pros.view')
 @section('content-inner')
 
-    <h4 class='py-3 border-bottom'>Payment Schedule</h4>Controller: <b>pros_SINGLE</b><br>Action: <b>SUB_payment_schedule()</b><br>View: <b>admin/pros_SINGLE/SUB_payment_schedule.blade.php</b><br>
+    <div class="mr-3 pb-3">
+
+        <h4 class='my-3 d-flex'>
+            <div>Payment Schedule</div>
+            <div class="ml-auto">
+                <a class="btn btn-primary btn-sm" href="{{route('pros_SINGLE-ACTION_payment_scheduleAddNew', ['uid' => $record->uid])}}"><i class='fa fa-plus-circle' aria-hidden='true'></i> Add New</a>
+            </div>
+        </h4>
+
+        <div class="table-responsive p-0 bg-white border">
+            <table class="table table-hover text-nowrap">
+                <thead>
+                <tr>
+                    <th>Id</th>
+<th>Created At</th>
+<th>Type</th>
+<th>Uid</th>
+<th>Deactivated At</th>
+<th>Deactivation Memo</th>
+<th>Is Active</th>
+<th>Reactivated At</th>
+<th>Reactivation Memo</th>
+<th>Amount</th>
+<th>As Hcp Or Ally</th>
+<th>Code</th>
+<th>Created By Session Id</th>
+<th>Deactivated By Session Id</th>
+<th>Reactivated By Session Id</th>
+<th>Pro Id</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($subRecords as $subRecord)
+                    <tr>
+                        <td><?= $subRecord->id ?></td>
+<td><?= $subRecord->created_at ?></td>
+<td><?= $subRecord->type ?></td>
+<td><?= $subRecord->uid ?></td>
+<td><?= $subRecord->deactivated_at ?></td>
+<td><?= $subRecord->deactivation_memo ?></td>
+<td><?= $subRecord->is_active ?></td>
+<td><?= $subRecord->reactivated_at ?></td>
+<td><?= $subRecord->reactivation_memo ?></td>
+<td><?= $subRecord->amount ?></td>
+<td><?= $subRecord->as_hcp_or_ally ?></td>
+<td><?= $subRecord->code ?></td>
+<td><?= $subRecord->created_by_session_id ?></td>
+<td><?= $subRecord->deactivated_by_session_id ?></td>
+<td><?= $subRecord->reactivated_by_session_id ?></td>
+<td><?= $subRecord->pro_id ?></td>
+                    </tr>
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+    </div>
 
 @endsection

+ 3 - 0
resources/views/layouts/generated-links.blade.php

@@ -2,11 +2,14 @@
 <li class='nav-item'><a href='/my_teams' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'my_teams') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-user'></i><p>My Teams</p></a></li>
 <li class='nav-item'><a href='/my_clients' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'my_clients') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-user'></i><p>My Clients</p></a></li>
 <li class='nav-item'><a href='/notes' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'notes') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-user'></i><p>Notes</p></a></li>
+<li class='nav-item'><a href='/erx' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'erx') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-user'></i><p>Erx</p></a></li>
 <li class='nav-item'><a href='/action_items' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'action_items') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-user'></i><p>Action Items</p></a></li>
 <li class='nav-item'><a href='/care_months' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'care_months') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-user'></i><p>Care Months</p></a></li>
 <li class='nav-item'><a href='/care_month_entries' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'care_month_entries') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-user'></i><p>Care Month Entries</p></a></li>
 <li class='nav-item'><a href='/bills' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'bills') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-user'></i><p>Bills</p></a></li>
 <li class='nav-item'><a href='/transactions' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'transactions') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-user'></i><p>Transactions</p></a></li>
+<li class='nav-item'><a href='/med_profile_lines' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'med_profile_lines') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-user'></i><p>Med Profile Lines</p></a></li>
+<li class='nav-item'><a href='/med_profile_line_updates' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'med_profile_line_updates') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-user'></i><p>Med Profile Line Updates</p></a></li>
 <li class='nav-item'><a href='/pro_access' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'pro_access') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-user'></i><p>Pro Access</p></a></li>
 <li class='nav-item'><a href='/mcp_updates' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'mcp_updates') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-user'></i><p>Mcp Updates</p></a></li>
 <li class='nav-item'><a href='/ally_updates' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'ally_updates') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-user'></i><p>Ally Updates</p></a></li>

+ 5 - 0
resources/views/pro/action_items/actions.blade.php

@@ -0,0 +1,5 @@
+<a href='/action_items/view/<?= $record->uid ?>/ACTION_signAsPrescriber' class='d-block btn btn-sm btn-default mb-3'>Sign As Prescriber</a>
+<a href='/action_items/view/<?= $record->uid ?>/ACTION_updateToFacility' class='d-block btn btn-sm btn-default mb-3'>Update To Facility</a>
+<a href='/action_items/view/<?= $record->uid ?>/ACTION_updateContent' class='d-block btn btn-sm btn-default mb-3'>Update Content</a>
+<a href='/action_items/view/<?= $record->uid ?>/ACTION_updateStatus' class='d-block btn btn-sm btn-default mb-3'>Update Status</a>
+<a href='/action_items/view/<?= $record->uid ?>/ACTION_efax' class='d-block btn btn-sm btn-default mb-3'>Efax</a>

+ 31 - 0
resources/views/pro/action_items_SINGLE/ACTION_efax.blade.php

@@ -0,0 +1,31 @@
+@extends('pro.action_items.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Efax</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/actionItem/efax">
+        <input type="hidden" name="_success" value="{{route('action_items-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('action_items_SINGLE-ACTION_efax', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>To Fax Number</label>
+<input class='form-control' type='tel' name='toFaxNumber' value='{{ old('toFaxNumber') ? old('toFaxNumber') : '' }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('action_items-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 28 - 0
resources/views/pro/action_items_SINGLE/ACTION_signAsPrescriber.blade.php

@@ -0,0 +1,28 @@
+@extends('pro.action_items.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Sign As Prescriber</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/actionItem/signAsPrescriber">
+        <input type="hidden" name="_success" value="{{route('action_items-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('action_items_SINGLE-ACTION_signAsPrescriber', ['uid' => $record->uid])}}">
+        
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('action_items-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 35 - 0
resources/views/pro/action_items_SINGLE/ACTION_updateContent.blade.php

@@ -0,0 +1,35 @@
+@extends('pro.action_items.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Update Content</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/actionItem/updateContent">
+        <input type="hidden" name="_success" value="{{route('action_items-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('action_items_SINGLE-ACTION_updateContent', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Content Text</label>
+<input class='form-control' type='text' name='contentText' value='{{ old('contentText') ? old('contentText') : $record->content_text }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Content Detail</label>
+<input class='form-control' type='text' name='contentDetail' value='{{ old('contentDetail') ? old('contentDetail') : $record->content_detail }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('action_items-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 39 - 0
resources/views/pro/action_items_SINGLE/ACTION_updateStatus.blade.php

@@ -0,0 +1,39 @@
+@extends('pro.action_items.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Update Status</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/actionItem/updateStatus">
+        <input type="hidden" name="_success" value="{{route('action_items-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('action_items_SINGLE-ACTION_updateStatus', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Status Category</label>
+<select class='form-control' name='statusCategory' value='{{ old('statusCategory') ? old('statusCategory') : '' }}' >
+<option value=''>-- Select --</option>
+<option <?= 'OPEN' === (old('statusCategory') ? old('statusCategory') : '') ? 'selected' : '' ?> value='OPEN'>OPEN</option>
+<option <?= 'CLOSED' === (old('statusCategory') ? old('statusCategory') : '') ? 'selected' : '' ?> value='CLOSED'>CLOSED</option>
+</select>
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Status Memo</label>
+<input class='form-control' type='text' name='statusMemo' value='{{ old('statusMemo') ? old('statusMemo') : '' }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('action_items-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 37 - 0
resources/views/pro/action_items_SINGLE/ACTION_updateToFacility.blade.php

@@ -0,0 +1,37 @@
+@extends('pro.action_items.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Update To Facility</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/actionItem/updateToFacility">
+        <input type="hidden" name="_success" value="{{route('action_items-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('action_items_SINGLE-ACTION_updateToFacility', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>To Facility</label>
+<select class='form-control' name='toFacilityUid' value='{{ old('toFacilityUid') ? old('toFacilityUid') : '' }}' >
+<option value=''>-- Select --</option>
+<?php $dbOptions = \Illuminate\Support\Facades\DB::table('facility')->get(); ?>
+<?php foreach($dbOptions as $o): ?>
+<option <?= $o->uid === (old('toFacilityUid') ? old('toFacilityUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->name ?> (<?= $o->uid ?>)</option>
+<?php endforeach; ?>
+</select>
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('action_items-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 1 - 1
resources/views/pro/bills/index.blade.php

@@ -4,7 +4,7 @@
     <h3 class="d-flex mb-3">
         <div>Bills: List</div>
         <div class="ml-auto">
-            <a class='btn btn-primary btn-sm ml-2' href='/bills/add_new_for_note'><i class='fa fa-plus-circle' aria-hidden='true'></i> Add New For Note</a>
+            <!-- _ADD_NEW_LINK_ -->
         </div>
     </h3>
 

+ 53 - 1
resources/views/pro/bills_SINGLE/SUB_transactions.blade.php

@@ -1,6 +1,58 @@
 @extends('pro.bills.view')
 @section('content-inner')
 
-    <h4 class='py-3 border-bottom'>Transactions</h4>Controller: <b>bills_SINGLE</b><br>Action: <b>SUB_transactions()</b><br>View: <b>pro/bills_SINGLE/SUB_transactions.blade.php</b><br>
+    <div class="mr-3 pb-3">
+
+        <h4 class='my-3 d-flex'>
+            <div>Transactions</div>
+            <div class="ml-auto">
+                <!-- _ADD_NEW_LINK_ -->
+            </div>
+        </h4>
+
+        <div class="table-responsive p-0 bg-white border">
+            <table class="table table-hover text-nowrap">
+                <thead>
+                <tr>
+                    <th>Id</th>
+<th>Created At</th>
+<th>Type</th>
+<th>Uid</th>
+<th>Amount</th>
+<th>Custom Memo</th>
+<th>Plus Or Minus</th>
+<th>Reason Type</th>
+<th>Resulting Balance</th>
+<th>System Memo</th>
+<th>Created By Session Id</th>
+<th>Bill Id</th>
+<th>Client Id</th>
+<th>Pro Id</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($subRecords as $subRecord)
+                    <tr>
+                        <td><?= $subRecord->id ?></td>
+<td><?= $subRecord->created_at ?></td>
+<td><?= $subRecord->type ?></td>
+<td><?= $subRecord->uid ?></td>
+<td><?= $subRecord->amount ?></td>
+<td><?= $subRecord->custom_memo ?></td>
+<td><?= $subRecord->plus_or_minus ?></td>
+<td><?= $subRecord->reason_type ?></td>
+<td><?= $subRecord->resulting_balance ?></td>
+<td><?= $subRecord->system_memo ?></td>
+<td><?= $subRecord->created_by_session_id ?></td>
+<td><?= $subRecord->bill_id ?></td>
+<td><?= $subRecord->client_id ?></td>
+<td><?= $subRecord->pro_id ?></td>
+                    </tr>
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+    </div>
 
 @endsection

+ 1 - 4
resources/views/pro/care_month_entries/index.blade.php

@@ -4,8 +4,7 @@
     <h3 class="d-flex mb-3">
         <div>Care Month Entries: List</div>
         <div class="ml-auto">
-            <a class='btn btn-primary btn-sm ml-2' href='/care_month_entries/add_new_for_cm'><i class='fa fa-plus-circle' aria-hidden='true'></i> Add New For Cm</a>
-<a class='btn btn-primary btn-sm ml-2' href='/care_month_entries/add_new_for_rm'><i class='fa fa-plus-circle' aria-hidden='true'></i> Add New For Rm</a>
+            <!-- _ADD_NEW_LINK_ -->
         </div>
     </h3>
 
@@ -13,7 +12,6 @@
         <table class="table table-hover text-nowrap">
             <thead>
             <tr>
-<th></th>
 <th>Id</th>
 <th>Created At</th>
 <th>Type</th>
@@ -42,7 +40,6 @@
             <tbody>
             @foreach($records as $record)
                 <tr>
-<td><a href='/care_month_entries/remove/<?= $record->uid ?>'><i class='fa fa-trash'></i></a></td>
 <td><?= $record->id ?></td>
 <td><?= $record->created_at ?></td>
 <td><?= $record->type ?></td>

+ 20 - 1
resources/views/pro/care_months/actions.blade.php

@@ -1,2 +1,21 @@
+<a href='/care_months/view/<?= $record->uid ?>/ACTION_putMcpPro' class='d-block btn btn-sm btn-default mb-3'>Put Mcp Pro</a>
+<a href='/care_months/view/<?= $record->uid ?>/ACTION_putAllyPro' class='d-block btn btn-sm btn-default mb-3'>Put Ally Pro</a>
+<a href='/care_months/view/<?= $record->uid ?>/ACTION_putReasons' class='d-block btn btn-sm btn-default mb-3'>Put Reasons</a>
+<a href='/care_months/view/<?= $record->uid ?>/ACTION_setIsClientEnrolledInCmToTrue' class='d-block btn btn-sm btn-default mb-3'>Set Is Client Enrolled In Cm To True</a>
+<a href='/care_months/view/<?= $record->uid ?>/ACTION_setIsClientEnrolledInCmToFalse' class='d-block btn btn-sm btn-default mb-3'>Set Is Client Enrolled In Cm To False</a>
+<a href='/care_months/view/<?= $record->uid ?>/ACTION_updateWhyNotEnrolledInCm' class='d-block btn btn-sm btn-default mb-3'>Update Why Not Enrolled In Cm</a>
+<a href='/care_months/view/<?= $record->uid ?>/ACTION_setIsClientEnrolledInRmToTrue' class='d-block btn btn-sm btn-default mb-3'>Set Is Client Enrolled In Rm To True</a>
+<a href='/care_months/view/<?= $record->uid ?>/ACTION_setIsClientEnrolledInRmToFalse' class='d-block btn btn-sm btn-default mb-3'>Set Is Client Enrolled In Rm To False</a>
+<a href='/care_months/view/<?= $record->uid ?>/ACTION_updateWhyNotEnrolledInRm' class='d-block btn btn-sm btn-default mb-3'>Update Why Not Enrolled In Rm</a>
 <a href='/care_months/view/<?= $record->uid ?>/ACTION_generateBillForCm' class='d-block btn btn-sm btn-default mb-3'>Generate Bill For Cm</a>
-<a href='/care_months/view/<?= $record->uid ?>/ACTION_generateBillForRm' class='d-block btn btn-sm btn-default mb-3'>Generate Bill For Rm</a>
+<a href='/care_months/view/<?= $record->uid ?>/ACTION_generateBillForRm' class='d-block btn btn-sm btn-default mb-3'>Generate Bill For Rm</a>
+<a href='/care_months/view/<?= $record->uid ?>/ACTION_setIsCmCanceledThisMonthToTrue' class='d-block btn btn-sm btn-default mb-3'>Set Is Cm Canceled This Month To True</a>
+<a href='/care_months/view/<?= $record->uid ?>/ACTION_updateWhyIsCmCanceledThisMonth' class='d-block btn btn-sm btn-default mb-3'>Update Why Is Cm Canceled This Month</a>
+<a href='/care_months/view/<?= $record->uid ?>/ACTION_setIsCmCanceledThisMonthToFalse' class='d-block btn btn-sm btn-default mb-3'>Set Is Cm Canceled This Month To False</a>
+<a href='/care_months/view/<?= $record->uid ?>/ACTION_setIsRmCanceledThisMonthToTrue' class='d-block btn btn-sm btn-default mb-3'>Set Is Rm Canceled This Month To True</a>
+<a href='/care_months/view/<?= $record->uid ?>/ACTION_updateWhyIsRmCanceledThisMonth' class='d-block btn btn-sm btn-default mb-3'>Update Why Is Rm Canceled This Month</a>
+<a href='/care_months/view/<?= $record->uid ?>/ACTION_setIsRmCanceledThisMonthToFalse' class='d-block btn btn-sm btn-default mb-3'>Set Is Rm Canceled This Month To False</a>
+<a href='/care_months/view/<?= $record->uid ?>/ACTION_setIsTmThisMonthToTrue' class='d-block btn btn-sm btn-default mb-3'>Set Is Tm This Month To True</a>
+<a href='/care_months/view/<?= $record->uid ?>/ACTION_setIsTmThisMonthToFalse' class='d-block btn btn-sm btn-default mb-3'>Set Is Tm This Month To False</a>
+<a href='/care_months/view/<?= $record->uid ?>/ACTION_cm_time_entriesAddNew' class='d-block btn btn-sm btn-default mb-3'>Cm_time_entries Add New</a>
+<a href='/care_months/view/<?= $record->uid ?>/ACTION_rm_time_entriesAddNew' class='d-block btn btn-sm btn-default mb-3'>Rm_time_entries Add New</a>

+ 1 - 1
resources/views/pro/care_months/index.blade.php

@@ -4,7 +4,7 @@
     <h3 class="d-flex mb-3">
         <div>Care Months: List</div>
         <div class="ml-auto">
-            <a class='btn btn-primary btn-sm ml-2' href='/care_months/add_new'><i class='fa fa-plus-circle' aria-hidden='true'></i> Add New</a>
+            <!-- _ADD_NEW_LINK_ -->
         </div>
     </h3>
 

+ 2 - 1
resources/views/pro/care_months/subs.blade.php

@@ -1,3 +1,4 @@
 <a href='/care_months/view/<?= $record->uid ?>/SUB_dashboard' class='d-block px-3 py-2 border-bottom {{ request()->route()->getActionMethod() === 'SUB_dashboard' ? 'bg-secondary text-white font-weight-bold' : '' }}{{ strpos(request()->route()->getActionMethod(), 'ACTION_') === 0 ? 'bg-secondary text-white font-weight-bold' : '' }}'>Dashboard</a>
-<a href='/care_months/view/<?= $record->uid ?>/SUB_time_entries' class='d-block px-3 py-2 border-bottom {{ request()->route()->getActionMethod() === 'SUB_time_entries' ? 'bg-secondary text-white font-weight-bold' : '' }}'>Time Entries</a>
+<a href='/care_months/view/<?= $record->uid ?>/SUB_cm_time_entries' class='d-block px-3 py-2 border-bottom {{ request()->route()->getActionMethod() === 'SUB_cm_time_entries' ? 'bg-secondary text-white font-weight-bold' : '' }}'>Cm Time Entries</a>
+<a href='/care_months/view/<?= $record->uid ?>/SUB_rm_time_entries' class='d-block px-3 py-2 border-bottom {{ request()->route()->getActionMethod() === 'SUB_rm_time_entries' ? 'bg-secondary text-white font-weight-bold' : '' }}'>Rm Time Entries</a>
 <a href='/care_months/view/<?= $record->uid ?>/SUB_audit_log' class='d-block px-3 py-2 border-bottom {{ request()->route()->getActionMethod() === 'SUB_audit_log' ? 'bg-secondary text-white font-weight-bold' : '' }}'>Audit Log</a>

+ 66 - 0
resources/views/pro/care_months_SINGLE/ACTION_cm_time_entries AddNew.blade.php

@@ -0,0 +1,66 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Cm Time Entries Add New</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonthEntry/create">
+        <input type="hidden" name="_success" value="{{route('care_months_SINGLE-SUB_cm_time_entries ', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_cm_time_entries AddNew', ['uid' => $record->uid])}}">
+        <input class='form-control' type='hidden' name='careMonthUid' value='{{ old('careMonthUid') ? old('careMonthUid') : $record->uid }}' >
+<div class='form-group mb-3'>
+<label class='control-label'>Pro</label>
+<select class='form-control' name='proUid' value='{{ old('proUid') ? old('proUid') : '' }}' >
+<option value=''>-- Select --</option>
+<?php $dbOptions = \Illuminate\Support\Facades\DB::table('pro')->get(); ?>
+<?php foreach($dbOptions as $o): ?>
+<option <?= $o->uid === (old('proUid') ? old('proUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->name_display ?> (<?= $o->uid ?>)</option>
+<?php endforeach; ?>
+</select>
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Effective Date</label>
+<input class='form-control' type='date' name='effectiveDate' value='{{ old('effectiveDate') ? old('effectiveDate') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Time In Seconds</label>
+<input class='form-control' type='number' name='timeInSeconds' value='{{ old('timeInSeconds') ? old('timeInSeconds') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Is Time Specific</label>
+<input class='form-control' type='text' name='isTimeSpecific' value='{{ old('isTimeSpecific') ? old('isTimeSpecific') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Starting Time</label>
+<input class='form-control' type='time' name='startingTime' value='{{ old('startingTime') ? old('startingTime') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Ending Time</label>
+<input class='form-control' type='time' name='endingTime' value='{{ old('endingTime') ? old('endingTime') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Content Text</label>
+<input class='form-control' type='text' name='contentText' value='{{ old('contentText') ? old('contentText') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Content Detail</label>
+<input class='form-control' type='text' name='contentDetail' value='{{ old('contentDetail') ? old('contentDetail') : '' }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months_SINGLE-SUB_cm_time_entries ', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 66 - 0
resources/views/pro/care_months_SINGLE/ACTION_cm_time_entriesAddNew.blade.php

@@ -0,0 +1,66 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Cm Time Entries Add New</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonthEntry/create">
+        <input type="hidden" name="_success" value="{{route('care_months_SINGLE-SUB_cm_time_entries', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_cm_time_entriesAddNew', ['uid' => $record->uid])}}">
+        <input class='form-control' type='hidden' name='careMonthUid' value='{{ old('careMonthUid') ? old('careMonthUid') : $record->uid }}' >
+<div class='form-group mb-3'>
+<label class='control-label'>Pro</label>
+<select class='form-control' name='proUid' value='{{ old('proUid') ? old('proUid') : '' }}' >
+<option value=''>-- Select --</option>
+<?php $dbOptions = \Illuminate\Support\Facades\DB::table('pro')->get(); ?>
+<?php foreach($dbOptions as $o): ?>
+<option <?= $o->uid === (old('proUid') ? old('proUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->name_display ?> (<?= $o->uid ?>)</option>
+<?php endforeach; ?>
+</select>
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Effective Date</label>
+<input class='form-control' type='date' name='effectiveDate' value='{{ old('effectiveDate') ? old('effectiveDate') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Time In Seconds</label>
+<input class='form-control' type='number' name='timeInSeconds' value='{{ old('timeInSeconds') ? old('timeInSeconds') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Is Time Specific</label>
+<input class='form-control' type='text' name='isTimeSpecific' value='{{ old('isTimeSpecific') ? old('isTimeSpecific') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Starting Time</label>
+<input class='form-control' type='time' name='startingTime' value='{{ old('startingTime') ? old('startingTime') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Ending Time</label>
+<input class='form-control' type='time' name='endingTime' value='{{ old('endingTime') ? old('endingTime') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Content Text</label>
+<input class='form-control' type='text' name='contentText' value='{{ old('contentText') ? old('contentText') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Content Detail</label>
+<input class='form-control' type='text' name='contentDetail' value='{{ old('contentDetail') ? old('contentDetail') : '' }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months_SINGLE-SUB_cm_time_entries', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 37 - 0
resources/views/pro/care_months_SINGLE/ACTION_putAllyPro.blade.php

@@ -0,0 +1,37 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Put Ally Pro</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonth/putAllyPro">
+        <input type="hidden" name="_success" value="{{route('care_months-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_putAllyPro', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Ally Pro</label>
+<select class='form-control' name='allyProUid' value='{{ old('allyProUid') ? old('allyProUid') : '' }}' >
+<option value=''>-- Select --</option>
+<?php $dbOptions = \Illuminate\Support\Facades\DB::table('pro')->get(); ?>
+<?php foreach($dbOptions as $o): ?>
+<option <?= $o->uid === (old('allyProUid') ? old('allyProUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->name_display ?> (<?= $o->uid ?>)</option>
+<?php endforeach; ?>
+</select>
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 37 - 0
resources/views/pro/care_months_SINGLE/ACTION_putMcpPro.blade.php

@@ -0,0 +1,37 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Put Mcp Pro</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonth/putMcpPro">
+        <input type="hidden" name="_success" value="{{route('care_months-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_putMcpPro', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Mcp Pro</label>
+<select class='form-control' name='mcpProUid' value='{{ old('mcpProUid') ? old('mcpProUid') : '' }}' >
+<option value=''>-- Select --</option>
+<?php $dbOptions = \Illuminate\Support\Facades\DB::table('pro')->get(); ?>
+<?php foreach($dbOptions as $o): ?>
+<option <?= $o->uid === (old('mcpProUid') ? old('mcpProUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->name_display ?> (<?= $o->uid ?>)</option>
+<?php endforeach; ?>
+</select>
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 43 - 0
resources/views/pro/care_months_SINGLE/ACTION_putReasons.blade.php

@@ -0,0 +1,43 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Put Reasons</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonth/putReasons">
+        <input type="hidden" name="_success" value="{{route('care_months-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_putReasons', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Reason 1</label>
+<input class='form-control' type='text' name='reason1' value='{{ old('reason1') ? old('reason1') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Reason 2</label>
+<input class='form-control' type='text' name='reason2' value='{{ old('reason2') ? old('reason2') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Reason 3</label>
+<input class='form-control' type='text' name='reason3' value='{{ old('reason3') ? old('reason3') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Reason 3Plus</label>
+<input class='form-control' type='text' name='reason3Plus' value='{{ old('reason3Plus') ? old('reason3Plus') : '' }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 66 - 0
resources/views/pro/care_months_SINGLE/ACTION_rm_time_entries AddNew.blade.php

@@ -0,0 +1,66 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Rm Time Entries Add New</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonthEntry/create">
+        <input type="hidden" name="_success" value="{{route('care_months_SINGLE-SUB_rm_time_entries ', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_rm_time_entries AddNew', ['uid' => $record->uid])}}">
+        <input class='form-control' type='hidden' name='careMonthUid' value='{{ old('careMonthUid') ? old('careMonthUid') : $record->uid }}' >
+<div class='form-group mb-3'>
+<label class='control-label'>Pro</label>
+<select class='form-control' name='proUid' value='{{ old('proUid') ? old('proUid') : '' }}' >
+<option value=''>-- Select --</option>
+<?php $dbOptions = \Illuminate\Support\Facades\DB::table('pro')->get(); ?>
+<?php foreach($dbOptions as $o): ?>
+<option <?= $o->uid === (old('proUid') ? old('proUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->name_display ?> (<?= $o->uid ?>)</option>
+<?php endforeach; ?>
+</select>
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Effective Date</label>
+<input class='form-control' type='date' name='effectiveDate' value='{{ old('effectiveDate') ? old('effectiveDate') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Time In Seconds</label>
+<input class='form-control' type='number' name='timeInSeconds' value='{{ old('timeInSeconds') ? old('timeInSeconds') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Is Time Specific</label>
+<input class='form-control' type='text' name='isTimeSpecific' value='{{ old('isTimeSpecific') ? old('isTimeSpecific') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Starting Time</label>
+<input class='form-control' type='time' name='startingTime' value='{{ old('startingTime') ? old('startingTime') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Ending Time</label>
+<input class='form-control' type='time' name='endingTime' value='{{ old('endingTime') ? old('endingTime') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Content Text</label>
+<input class='form-control' type='text' name='contentText' value='{{ old('contentText') ? old('contentText') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Content Detail</label>
+<input class='form-control' type='text' name='contentDetail' value='{{ old('contentDetail') ? old('contentDetail') : '' }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months_SINGLE-SUB_rm_time_entries ', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 66 - 0
resources/views/pro/care_months_SINGLE/ACTION_rm_time_entriesAddNew.blade.php

@@ -0,0 +1,66 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Rm Time Entries Add New</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonthEntry/create">
+        <input type="hidden" name="_success" value="{{route('care_months_SINGLE-SUB_rm_time_entries', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_rm_time_entriesAddNew', ['uid' => $record->uid])}}">
+        <input class='form-control' type='hidden' name='careMonthUid' value='{{ old('careMonthUid') ? old('careMonthUid') : $record->uid }}' >
+<div class='form-group mb-3'>
+<label class='control-label'>Pro</label>
+<select class='form-control' name='proUid' value='{{ old('proUid') ? old('proUid') : '' }}' >
+<option value=''>-- Select --</option>
+<?php $dbOptions = \Illuminate\Support\Facades\DB::table('pro')->get(); ?>
+<?php foreach($dbOptions as $o): ?>
+<option <?= $o->uid === (old('proUid') ? old('proUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->name_display ?> (<?= $o->uid ?>)</option>
+<?php endforeach; ?>
+</select>
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Effective Date</label>
+<input class='form-control' type='date' name='effectiveDate' value='{{ old('effectiveDate') ? old('effectiveDate') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Time In Seconds</label>
+<input class='form-control' type='number' name='timeInSeconds' value='{{ old('timeInSeconds') ? old('timeInSeconds') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Is Time Specific</label>
+<input class='form-control' type='text' name='isTimeSpecific' value='{{ old('isTimeSpecific') ? old('isTimeSpecific') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Starting Time</label>
+<input class='form-control' type='time' name='startingTime' value='{{ old('startingTime') ? old('startingTime') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Ending Time</label>
+<input class='form-control' type='time' name='endingTime' value='{{ old('endingTime') ? old('endingTime') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Content Text</label>
+<input class='form-control' type='text' name='contentText' value='{{ old('contentText') ? old('contentText') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Content Detail</label>
+<input class='form-control' type='text' name='contentDetail' value='{{ old('contentDetail') ? old('contentDetail') : '' }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months_SINGLE-SUB_rm_time_entries', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 28 - 0
resources/views/pro/care_months_SINGLE/ACTION_setIsClientEnrolledInCmToFalse.blade.php

@@ -0,0 +1,28 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Set Is Client Enrolled In Cm To False</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonth/setIsClientEnrolledInCmToFalse">
+        <input type="hidden" name="_success" value="{{route('care_months-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_setIsClientEnrolledInCmToFalse', ['uid' => $record->uid])}}">
+        
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 28 - 0
resources/views/pro/care_months_SINGLE/ACTION_setIsClientEnrolledInCmToTrue.blade.php

@@ -0,0 +1,28 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Set Is Client Enrolled In Cm To True</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonth/setIsClientEnrolledInCmToTrue">
+        <input type="hidden" name="_success" value="{{route('care_months-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_setIsClientEnrolledInCmToTrue', ['uid' => $record->uid])}}">
+        
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 28 - 0
resources/views/pro/care_months_SINGLE/ACTION_setIsClientEnrolledInRmToFalse.blade.php

@@ -0,0 +1,28 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Set Is Client Enrolled In Rm To False</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonth/setIsClientEnrolledInRmToFalse">
+        <input type="hidden" name="_success" value="{{route('care_months-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_setIsClientEnrolledInRmToFalse', ['uid' => $record->uid])}}">
+        
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 28 - 0
resources/views/pro/care_months_SINGLE/ACTION_setIsClientEnrolledInRmToTrue.blade.php

@@ -0,0 +1,28 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Set Is Client Enrolled In Rm To True</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonth/setIsClientEnrolledInRmToTrue">
+        <input type="hidden" name="_success" value="{{route('care_months-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_setIsClientEnrolledInRmToTrue', ['uid' => $record->uid])}}">
+        
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 28 - 0
resources/views/pro/care_months_SINGLE/ACTION_setIsCmCanceledThisMonthToFalse.blade.php

@@ -0,0 +1,28 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Set Is Cm Canceled This Month To False</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonth/setIsCmCanceledThisMonthToFalse">
+        <input type="hidden" name="_success" value="{{route('care_months-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_setIsCmCanceledThisMonthToFalse', ['uid' => $record->uid])}}">
+        
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 28 - 0
resources/views/pro/care_months_SINGLE/ACTION_setIsCmCanceledThisMonthToTrue.blade.php

@@ -0,0 +1,28 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Set Is Cm Canceled This Month To True</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonth/setIsCmCanceledThisMonthToTrue">
+        <input type="hidden" name="_success" value="{{route('care_months-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_setIsCmCanceledThisMonthToTrue', ['uid' => $record->uid])}}">
+        
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 28 - 0
resources/views/pro/care_months_SINGLE/ACTION_setIsRmCanceledThisMonthToFalse.blade.php

@@ -0,0 +1,28 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Set Is Rm Canceled This Month To False</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonth/setIsRmCanceledThisMonthToFalse">
+        <input type="hidden" name="_success" value="{{route('care_months-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_setIsRmCanceledThisMonthToFalse', ['uid' => $record->uid])}}">
+        
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 28 - 0
resources/views/pro/care_months_SINGLE/ACTION_setIsRmCanceledThisMonthToTrue.blade.php

@@ -0,0 +1,28 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Set Is Rm Canceled This Month To True</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonth/setIsRmCanceledThisMonthToTrue">
+        <input type="hidden" name="_success" value="{{route('care_months-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_setIsRmCanceledThisMonthToTrue', ['uid' => $record->uid])}}">
+        
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 28 - 0
resources/views/pro/care_months_SINGLE/ACTION_setIsTmThisMonthToFalse.blade.php

@@ -0,0 +1,28 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Set Is Tm This Month To False</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonth/setIsTmThisMonthToFalse">
+        <input type="hidden" name="_success" value="{{route('care_months-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_setIsTmThisMonthToFalse', ['uid' => $record->uid])}}">
+        
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 28 - 0
resources/views/pro/care_months_SINGLE/ACTION_setIsTmThisMonthToTrue.blade.php

@@ -0,0 +1,28 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Set Is Tm This Month To True</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonth/setIsTmThisMonthToTrue">
+        <input type="hidden" name="_success" value="{{route('care_months-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_setIsTmThisMonthToTrue', ['uid' => $record->uid])}}">
+        
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 28 - 0
resources/views/pro/care_months_SINGLE/ACTION_updateWhyIsCmCanceledThisMonth.blade.php

@@ -0,0 +1,28 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Update Why Is Cm Canceled This Month</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonth/updateWhyIsCmCanceledThisMonth">
+        <input type="hidden" name="_success" value="{{route('care_months-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_updateWhyIsCmCanceledThisMonth', ['uid' => $record->uid])}}">
+        
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 28 - 0
resources/views/pro/care_months_SINGLE/ACTION_updateWhyIsRmCanceledThisMonth.blade.php

@@ -0,0 +1,28 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Update Why Is Rm Canceled This Month</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonth/updateWhyIsRmCanceledThisMonth">
+        <input type="hidden" name="_success" value="{{route('care_months-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_updateWhyIsRmCanceledThisMonth', ['uid' => $record->uid])}}">
+        
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 35 - 0
resources/views/pro/care_months_SINGLE/ACTION_updateWhyNotEnrolledInCm.blade.php

@@ -0,0 +1,35 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Update Why Not Enrolled In Cm</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonth/updateWhyNotEnrolledInCm">
+        <input type="hidden" name="_success" value="{{route('care_months-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_updateWhyNotEnrolledInCm', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Why Not Enrolled In Cm Category</label>
+<input class='form-control' type='text' name='whyNotEnrolledInCmCategory' value='{{ old('whyNotEnrolledInCmCategory') ? old('whyNotEnrolledInCmCategory') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Why Not Enrolled In Cm Memo</label>
+<input class='form-control' type='text' name='whyNotEnrolledInCmMemo' value='{{ old('whyNotEnrolledInCmMemo') ? old('whyNotEnrolledInCmMemo') : '' }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 35 - 0
resources/views/pro/care_months_SINGLE/ACTION_updateWhyNotEnrolledInRm.blade.php

@@ -0,0 +1,35 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Update Why Not Enrolled In Rm</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/careMonth/updateWhyNotEnrolledInRm">
+        <input type="hidden" name="_success" value="{{route('care_months-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('care_months_SINGLE-ACTION_updateWhyNotEnrolledInRm', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Why Not Enrolled In Rm Category</label>
+<input class='form-control' type='text' name='whyNotEnrolledInRmCategory' value='{{ old('whyNotEnrolledInRmCategory') ? old('whyNotEnrolledInRmCategory') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Why Not Enrolled In Rm Memo</label>
+<input class='form-control' type='text' name='whyNotEnrolledInRmMemo' value='{{ old('whyNotEnrolledInRmMemo') ? old('whyNotEnrolledInRmMemo') : '' }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('care_months-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 76 - 0
resources/views/pro/care_months_SINGLE/SUB_cm_time_entries .blade.php

@@ -0,0 +1,76 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <div class="mr-3 pb-3">
+
+        <h4 class='my-3 d-flex'>
+            <div>Cm Time Entries </div>
+            <div class="ml-auto">
+                <a class="btn btn-primary btn-sm" href="{{route('care_months_SINGLE-ACTION_cm_time_entries AddNew', ['uid' => $record->uid])}}"><i class='fa fa-plus-circle' aria-hidden='true'></i> Add New</a>
+            </div>
+        </h4>
+
+        <div class="table-responsive p-0 bg-white border">
+            <table class="table table-hover text-nowrap">
+                <thead>
+                <tr>
+                    <th>Id</th>
+<th>Created At</th>
+<th>Type</th>
+<th>Uid</th>
+<th>Is Removed</th>
+<th>Removal Memo</th>
+<th>Removed At</th>
+<th>Achieved Ally Time In Seconds</th>
+<th>Achieved Mcp Time In Seconds</th>
+<th>Achieved Total Time In Seconds</th>
+<th>Cm Or Rm</th>
+<th>Content Detail</th>
+<th>Content Text</th>
+<th>Effective Date</th>
+<th>Ending Time</th>
+<th>Is Time Specific</th>
+<th>Starting Time</th>
+<th>Time In Seconds</th>
+<th>Created By Session Id</th>
+<th>Removed By Session Id</th>
+<th>Care Month Id</th>
+<th>Client Id</th>
+<th>Pro Id</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($subRecords as $subRecord)
+                    <tr>
+                        <td><?= $subRecord->id ?></td>
+<td><?= $subRecord->created_at ?></td>
+<td><?= $subRecord->type ?></td>
+<td><?= $subRecord->uid ?></td>
+<td><?= $subRecord->is_removed ?></td>
+<td><?= $subRecord->removal_memo ?></td>
+<td><?= $subRecord->removed_at ?></td>
+<td><?= $subRecord->achieved_ally_time_in_seconds ?></td>
+<td><?= $subRecord->achieved_mcp_time_in_seconds ?></td>
+<td><?= $subRecord->achieved_total_time_in_seconds ?></td>
+<td><?= $subRecord->cm_or_rm ?></td>
+<td><?= $subRecord->content_detail ?></td>
+<td><?= $subRecord->content_text ?></td>
+<td><?= $subRecord->effective_date ?></td>
+<td><?= $subRecord->ending_time ?></td>
+<td><?= $subRecord->is_time_specific ?></td>
+<td><?= $subRecord->starting_time ?></td>
+<td><?= $subRecord->time_in_seconds ?></td>
+<td><?= $subRecord->created_by_session_id ?></td>
+<td><?= $subRecord->removed_by_session_id ?></td>
+<td><?= $subRecord->care_month_id ?></td>
+<td><?= $subRecord->client_id ?></td>
+<td><?= $subRecord->pro_id ?></td>
+                    </tr>
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+    </div>
+
+@endsection

+ 76 - 0
resources/views/pro/care_months_SINGLE/SUB_cm_time_entries.blade.php

@@ -0,0 +1,76 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <div class="mr-3 pb-3">
+
+        <h4 class='my-3 d-flex'>
+            <div>Cm Time Entries</div>
+            <div class="ml-auto">
+                <a class="btn btn-primary btn-sm" href="{{route('care_months_SINGLE-ACTION_cm_time_entriesAddNew', ['uid' => $record->uid])}}"><i class='fa fa-plus-circle' aria-hidden='true'></i> Add New</a>
+            </div>
+        </h4>
+
+        <div class="table-responsive p-0 bg-white border">
+            <table class="table table-hover text-nowrap">
+                <thead>
+                <tr>
+                    <th>Id</th>
+<th>Created At</th>
+<th>Type</th>
+<th>Uid</th>
+<th>Is Removed</th>
+<th>Removal Memo</th>
+<th>Removed At</th>
+<th>Achieved Ally Time In Seconds</th>
+<th>Achieved Mcp Time In Seconds</th>
+<th>Achieved Total Time In Seconds</th>
+<th>Cm Or Rm</th>
+<th>Content Detail</th>
+<th>Content Text</th>
+<th>Effective Date</th>
+<th>Ending Time</th>
+<th>Is Time Specific</th>
+<th>Starting Time</th>
+<th>Time In Seconds</th>
+<th>Created By Session Id</th>
+<th>Removed By Session Id</th>
+<th>Care Month Id</th>
+<th>Client Id</th>
+<th>Pro Id</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($subRecords as $subRecord)
+                    <tr>
+                        <td><?= $subRecord->id ?></td>
+<td><?= $subRecord->created_at ?></td>
+<td><?= $subRecord->type ?></td>
+<td><?= $subRecord->uid ?></td>
+<td><?= $subRecord->is_removed ?></td>
+<td><?= $subRecord->removal_memo ?></td>
+<td><?= $subRecord->removed_at ?></td>
+<td><?= $subRecord->achieved_ally_time_in_seconds ?></td>
+<td><?= $subRecord->achieved_mcp_time_in_seconds ?></td>
+<td><?= $subRecord->achieved_total_time_in_seconds ?></td>
+<td><?= $subRecord->cm_or_rm ?></td>
+<td><?= $subRecord->content_detail ?></td>
+<td><?= $subRecord->content_text ?></td>
+<td><?= $subRecord->effective_date ?></td>
+<td><?= $subRecord->ending_time ?></td>
+<td><?= $subRecord->is_time_specific ?></td>
+<td><?= $subRecord->starting_time ?></td>
+<td><?= $subRecord->time_in_seconds ?></td>
+<td><?= $subRecord->created_by_session_id ?></td>
+<td><?= $subRecord->removed_by_session_id ?></td>
+<td><?= $subRecord->care_month_id ?></td>
+<td><?= $subRecord->client_id ?></td>
+<td><?= $subRecord->pro_id ?></td>
+                    </tr>
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+    </div>
+
+@endsection

+ 76 - 0
resources/views/pro/care_months_SINGLE/SUB_rm_time_entries .blade.php

@@ -0,0 +1,76 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <div class="mr-3 pb-3">
+
+        <h4 class='my-3 d-flex'>
+            <div>Rm Time Entries </div>
+            <div class="ml-auto">
+                <a class="btn btn-primary btn-sm" href="{{route('care_months_SINGLE-ACTION_rm_time_entries AddNew', ['uid' => $record->uid])}}"><i class='fa fa-plus-circle' aria-hidden='true'></i> Add New</a>
+            </div>
+        </h4>
+
+        <div class="table-responsive p-0 bg-white border">
+            <table class="table table-hover text-nowrap">
+                <thead>
+                <tr>
+                    <th>Id</th>
+<th>Created At</th>
+<th>Type</th>
+<th>Uid</th>
+<th>Is Removed</th>
+<th>Removal Memo</th>
+<th>Removed At</th>
+<th>Achieved Ally Time In Seconds</th>
+<th>Achieved Mcp Time In Seconds</th>
+<th>Achieved Total Time In Seconds</th>
+<th>Cm Or Rm</th>
+<th>Content Detail</th>
+<th>Content Text</th>
+<th>Effective Date</th>
+<th>Ending Time</th>
+<th>Is Time Specific</th>
+<th>Starting Time</th>
+<th>Time In Seconds</th>
+<th>Created By Session Id</th>
+<th>Removed By Session Id</th>
+<th>Care Month Id</th>
+<th>Client Id</th>
+<th>Pro Id</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($subRecords as $subRecord)
+                    <tr>
+                        <td><?= $subRecord->id ?></td>
+<td><?= $subRecord->created_at ?></td>
+<td><?= $subRecord->type ?></td>
+<td><?= $subRecord->uid ?></td>
+<td><?= $subRecord->is_removed ?></td>
+<td><?= $subRecord->removal_memo ?></td>
+<td><?= $subRecord->removed_at ?></td>
+<td><?= $subRecord->achieved_ally_time_in_seconds ?></td>
+<td><?= $subRecord->achieved_mcp_time_in_seconds ?></td>
+<td><?= $subRecord->achieved_total_time_in_seconds ?></td>
+<td><?= $subRecord->cm_or_rm ?></td>
+<td><?= $subRecord->content_detail ?></td>
+<td><?= $subRecord->content_text ?></td>
+<td><?= $subRecord->effective_date ?></td>
+<td><?= $subRecord->ending_time ?></td>
+<td><?= $subRecord->is_time_specific ?></td>
+<td><?= $subRecord->starting_time ?></td>
+<td><?= $subRecord->time_in_seconds ?></td>
+<td><?= $subRecord->created_by_session_id ?></td>
+<td><?= $subRecord->removed_by_session_id ?></td>
+<td><?= $subRecord->care_month_id ?></td>
+<td><?= $subRecord->client_id ?></td>
+<td><?= $subRecord->pro_id ?></td>
+                    </tr>
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+    </div>
+
+@endsection

+ 76 - 0
resources/views/pro/care_months_SINGLE/SUB_rm_time_entries.blade.php

@@ -0,0 +1,76 @@
+@extends('pro.care_months.view')
+@section('content-inner')
+
+    <div class="mr-3 pb-3">
+
+        <h4 class='my-3 d-flex'>
+            <div>Rm Time Entries</div>
+            <div class="ml-auto">
+                <a class="btn btn-primary btn-sm" href="{{route('care_months_SINGLE-ACTION_rm_time_entriesAddNew', ['uid' => $record->uid])}}"><i class='fa fa-plus-circle' aria-hidden='true'></i> Add New</a>
+            </div>
+        </h4>
+
+        <div class="table-responsive p-0 bg-white border">
+            <table class="table table-hover text-nowrap">
+                <thead>
+                <tr>
+                    <th>Id</th>
+<th>Created At</th>
+<th>Type</th>
+<th>Uid</th>
+<th>Is Removed</th>
+<th>Removal Memo</th>
+<th>Removed At</th>
+<th>Achieved Ally Time In Seconds</th>
+<th>Achieved Mcp Time In Seconds</th>
+<th>Achieved Total Time In Seconds</th>
+<th>Cm Or Rm</th>
+<th>Content Detail</th>
+<th>Content Text</th>
+<th>Effective Date</th>
+<th>Ending Time</th>
+<th>Is Time Specific</th>
+<th>Starting Time</th>
+<th>Time In Seconds</th>
+<th>Created By Session Id</th>
+<th>Removed By Session Id</th>
+<th>Care Month Id</th>
+<th>Client Id</th>
+<th>Pro Id</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($subRecords as $subRecord)
+                    <tr>
+                        <td><?= $subRecord->id ?></td>
+<td><?= $subRecord->created_at ?></td>
+<td><?= $subRecord->type ?></td>
+<td><?= $subRecord->uid ?></td>
+<td><?= $subRecord->is_removed ?></td>
+<td><?= $subRecord->removal_memo ?></td>
+<td><?= $subRecord->removed_at ?></td>
+<td><?= $subRecord->achieved_ally_time_in_seconds ?></td>
+<td><?= $subRecord->achieved_mcp_time_in_seconds ?></td>
+<td><?= $subRecord->achieved_total_time_in_seconds ?></td>
+<td><?= $subRecord->cm_or_rm ?></td>
+<td><?= $subRecord->content_detail ?></td>
+<td><?= $subRecord->content_text ?></td>
+<td><?= $subRecord->effective_date ?></td>
+<td><?= $subRecord->ending_time ?></td>
+<td><?= $subRecord->is_time_specific ?></td>
+<td><?= $subRecord->starting_time ?></td>
+<td><?= $subRecord->time_in_seconds ?></td>
+<td><?= $subRecord->created_by_session_id ?></td>
+<td><?= $subRecord->removed_by_session_id ?></td>
+<td><?= $subRecord->care_month_id ?></td>
+<td><?= $subRecord->client_id ?></td>
+<td><?= $subRecord->pro_id ?></td>
+                    </tr>
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+    </div>
+
+@endsection

+ 5 - 0
resources/views/pro/erx/actions.blade.php

@@ -0,0 +1,5 @@
+<a href='/erx/view/<?= $record->uid ?>/ACTION_signAsPrescriber' class='d-block btn btn-sm btn-default mb-3'>Sign As Prescriber</a>
+<a href='/erx/view/<?= $record->uid ?>/ACTION_updateToFacility' class='d-block btn btn-sm btn-default mb-3'>Update To Facility</a>
+<a href='/erx/view/<?= $record->uid ?>/ACTION_updateContent' class='d-block btn btn-sm btn-default mb-3'>Update Content</a>
+<a href='/erx/view/<?= $record->uid ?>/ACTION_updateStatus' class='d-block btn btn-sm btn-default mb-3'>Update Status</a>
+<a href='/erx/view/<?= $record->uid ?>/ACTION_efax' class='d-block btn btn-sm btn-default mb-3'>Efax</a>

+ 70 - 0
resources/views/pro/erx/index.blade.php

@@ -0,0 +1,70 @@
+@extends('layouts.pro-logged-in')
+@section('content')
+
+    <h3 class="d-flex mb-3">
+        <div>Erx: List</div>
+        <div class="ml-auto">
+            <!-- _ADD_NEW_LINK_ -->
+        </div>
+    </h3>
+
+    <div class="table-responsive p-0 bg-white border">
+        <table class="table table-hover text-nowrap">
+            <thead>
+            <tr>
+<th>Id</th>
+<th>Created At</th>
+<th>Type</th>
+<th>Uid</th>
+<th>Action Item Category</th>
+<th>Content Detail</th>
+<th>Content Text</th>
+<th>Is Signed By Ally</th>
+<th>Is Signed By Prescriber</th>
+<th>Signed By Ally At</th>
+<th>Signed By Prescriber At</th>
+<th>Status Category</th>
+<th>Status Memo</th>
+<th>Created By Session Id</th>
+<th>Ally Pro Id</th>
+<th>Client Id</th>
+<th>Current Content Update Id</th>
+<th>Current Status Update Id</th>
+<th>Prescriber Pro Id</th>
+<th>Signed By Ally Session Id</th>
+<th>Signed By Prescriber Session Id</th>
+<th>To Facility Id</th>
+            </tr>
+            </thead>
+            <tbody>
+            @foreach($records as $record)
+                <tr>
+<td><?= $record->id ?></td>
+<td><?= $record->created_at ?></td>
+<td><?= $record->type ?></td>
+<td><a href="/erx/view/<?= $record->uid ?>"><?= $record->uid ?></a></td>
+<td><?= $record->action_item_category ?></td>
+<td><?= $record->content_detail ?></td>
+<td><?= $record->content_text ?></td>
+<td><?= $record->is_signed_by_ally ?></td>
+<td><?= $record->is_signed_by_prescriber ?></td>
+<td><?= $record->signed_by_ally_at ?></td>
+<td><?= $record->signed_by_prescriber_at ?></td>
+<td><?= $record->status_category ?></td>
+<td><?= $record->status_memo ?></td>
+<td><?= $record->created_by_session_id ?></td>
+<td><?= $record->ally_pro_id ?></td>
+<td><?= $record->client_id ?></td>
+<td><?= $record->current_content_update_id ?></td>
+<td><?= $record->current_status_update_id ?></td>
+<td><?= $record->prescriber_pro_id ?></td>
+<td><?= $record->signed_by_ally_session_id ?></td>
+<td><?= $record->signed_by_prescriber_session_id ?></td>
+<td><?= $record->to_facility_id ?></td>
+                </tr>
+            @endforeach
+            </tbody>
+        </table>
+    </div>
+
+@endsection

+ 2 - 0
resources/views/pro/erx/subs.blade.php

@@ -0,0 +1,2 @@
+<a href='/erx/view/<?= $record->uid ?>/SUB_dashboard' class='d-block px-3 py-2 border-bottom {{ request()->route()->getActionMethod() === 'SUB_dashboard' ? 'bg-secondary text-white font-weight-bold' : '' }}{{ strpos(request()->route()->getActionMethod(), 'ACTION_') === 0 ? 'bg-secondary text-white font-weight-bold' : '' }}'>Dashboard</a>
+<a href='/erx/view/<?= $record->uid ?>/SUB_audit_log' class='d-block px-3 py-2 border-bottom {{ request()->route()->getActionMethod() === 'SUB_audit_log' ? 'bg-secondary text-white font-weight-bold' : '' }}'>Audit Log</a>

+ 27 - 0
resources/views/pro/erx/view.blade.php

@@ -0,0 +1,27 @@
+@extends('layouts.pro-logged-in')
+@section('content')
+
+    <h3 class="d-flex mb-3">
+        <div>Erx: Single [<?= $record->uid ?>]</div>
+        <div class="ml-auto">
+            <a class="btn btn-primary btn-sm" href="{{route('erx-index')}}">
+                <i class="fa fa-chevron-left" aria-hidden="true"></i>
+                Back
+            </a>
+        </div>
+    </h3>
+
+    <div class="card">
+        <div class="row">
+            <div class="col-3">
+                <div class="border-right h-100">
+                    @include('pro/erx/subs')
+                </div>
+            </div>
+            <div class="col-9">
+                @yield('content-inner')
+            </div>
+        </div>
+    </div>
+
+@endsection

+ 31 - 0
resources/views/pro/erx_SINGLE/ACTION_efax.blade.php

@@ -0,0 +1,31 @@
+@extends('pro.erx.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Efax</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/actionItem/efax">
+        <input type="hidden" name="_success" value="{{route('erx-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('erx_SINGLE-ACTION_efax', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>To Fax Number</label>
+<input class='form-control' type='tel' name='toFaxNumber' value='{{ old('toFaxNumber') ? old('toFaxNumber') : '' }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('erx-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 28 - 0
resources/views/pro/erx_SINGLE/ACTION_signAsPrescriber.blade.php

@@ -0,0 +1,28 @@
+@extends('pro.erx.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Sign As Prescriber</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/actionItem/signAsPrescriber">
+        <input type="hidden" name="_success" value="{{route('erx-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('erx_SINGLE-ACTION_signAsPrescriber', ['uid' => $record->uid])}}">
+        
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('erx-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 35 - 0
resources/views/pro/erx_SINGLE/ACTION_updateContent.blade.php

@@ -0,0 +1,35 @@
+@extends('pro.erx.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Update Content</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/actionItem/updateContent">
+        <input type="hidden" name="_success" value="{{route('erx-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('erx_SINGLE-ACTION_updateContent', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Content Text</label>
+<input class='form-control' type='text' name='contentText' value='{{ old('contentText') ? old('contentText') : $record->content_text }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Content Detail</label>
+<input class='form-control' type='text' name='contentDetail' value='{{ old('contentDetail') ? old('contentDetail') : $record->content_detail }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('erx-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 39 - 0
resources/views/pro/erx_SINGLE/ACTION_updateStatus.blade.php

@@ -0,0 +1,39 @@
+@extends('pro.erx.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Update Status</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/actionItem/updateStatus">
+        <input type="hidden" name="_success" value="{{route('erx-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('erx_SINGLE-ACTION_updateStatus', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Status Category</label>
+<select class='form-control' name='statusCategory' value='{{ old('statusCategory') ? old('statusCategory') : '' }}' >
+<option value=''>-- Select --</option>
+<option <?= 'OPEN' === (old('statusCategory') ? old('statusCategory') : '') ? 'selected' : '' ?> value='OPEN'>OPEN</option>
+<option <?= 'CLOSED' === (old('statusCategory') ? old('statusCategory') : '') ? 'selected' : '' ?> value='CLOSED'>CLOSED</option>
+</select>
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Status Memo</label>
+<input class='form-control' type='text' name='statusMemo' value='{{ old('statusMemo') ? old('statusMemo') : '' }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('erx-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 37 - 0
resources/views/pro/erx_SINGLE/ACTION_updateToFacility.blade.php

@@ -0,0 +1,37 @@
+@extends('pro.erx.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Update To Facility</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/actionItem/updateToFacility">
+        <input type="hidden" name="_success" value="{{route('erx-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('erx_SINGLE-ACTION_updateToFacility', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>To Facility</label>
+<select class='form-control' name='toFacilityUid' value='{{ old('toFacilityUid') ? old('toFacilityUid') : '' }}' >
+<option value=''>-- Select --</option>
+<?php $dbOptions = \Illuminate\Support\Facades\DB::table('facility')->get(); ?>
+<?php foreach($dbOptions as $o): ?>
+<option <?= $o->uid === (old('toFacilityUid') ? old('toFacilityUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->name ?> (<?= $o->uid ?>)</option>
+<?php endforeach; ?>
+</select>
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('erx-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 6 - 0
resources/views/pro/erx_SINGLE/SUB_audit_log.blade.php

@@ -0,0 +1,6 @@
+@extends('pro.erx.view')
+@section('content-inner')
+
+    <h4 class='py-3 border-bottom'>Audit Log</h4>Controller: <b>erx_SINGLE</b><br>Action: <b>SUB_audit_log()</b><br>View: <b>pro/erx_SINGLE/SUB_audit_log.blade.php</b><br>
+
+@endsection

+ 34 - 0
resources/views/pro/erx_SINGLE/SUB_dashboard.blade.php

@@ -0,0 +1,34 @@
+@extends('pro.erx.view')
+@section('content-inner')
+
+    <div class="row">
+    <div class="col-7">
+
+        <div class="table-responsive p-0 bg-white table-sm mt-3">
+            <table class="table table-hover text-nowrap table-striped border-left border-right border-bottom">
+                <thead>
+                <tr>
+                    <th colspan="2" class="px-2">Record Details</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($record as $k => $v)
+                    <tr>
+                        <td class="px-2 text-secondary border-right">{{ ucwords(str_replace("_", " ", $k)) }}</td>
+                        <td class="px-2 font-weight-bold">{{ $record->$k }}</td>
+                    </tr>
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+    </div>
+    <div class="col-5">
+        <div class="border-left h-100 pt-3 px-3">
+            @include('pro/erx/actions')
+        </div>
+    </div>
+</div>
+
+
+@endsection

+ 50 - 0
resources/views/pro/med_profile_line_updates/index.blade.php

@@ -0,0 +1,50 @@
+@extends('layouts.pro-logged-in')
+@section('content')
+
+    <h3 class="d-flex mb-3">
+        <div>Med Profile Line Updates: List</div>
+        <div class="ml-auto">
+            <!-- _ADD_NEW_LINK_ -->
+        </div>
+    </h3>
+
+    <div class="table-responsive p-0 bg-white border">
+        <table class="table table-hover text-nowrap">
+            <thead>
+            <tr>
+<th>Id</th>
+<th>Created At</th>
+<th>Type</th>
+<th>Uid</th>
+<th>Content Detail</th>
+<th>Content Text</th>
+<th>Has Been Data Entered</th>
+<th>Marked Data Entered At</th>
+<th>Created By Session Id</th>
+<th>Client Id</th>
+<th>Client Info Line Id</th>
+<th>Marked Data Enetered By Id</th>
+            </tr>
+            </thead>
+            <tbody>
+            @foreach($records as $record)
+                <tr>
+<td><?= $record->id ?></td>
+<td><?= $record->created_at ?></td>
+<td><?= $record->type ?></td>
+<td><?= $record->uid ?></td>
+<td><?= $record->content_detail ?></td>
+<td><?= $record->content_text ?></td>
+<td><?= $record->has_been_data_entered ?></td>
+<td><?= $record->marked_data_entered_at ?></td>
+<td><?= $record->created_by_session_id ?></td>
+<td><?= $record->client_id ?></td>
+<td><?= $record->client_info_line_id ?></td>
+<td><?= $record->marked_data_enetered_by_id ?></td>
+                </tr>
+            @endforeach
+            </tbody>
+        </table>
+    </div>
+
+@endsection

+ 52 - 0
resources/views/pro/med_profile_lines/index.blade.php

@@ -0,0 +1,52 @@
+@extends('layouts.pro-logged-in')
+@section('content')
+
+    <h3 class="d-flex mb-3">
+        <div>Med Profile Lines: List</div>
+        <div class="ml-auto">
+            <!-- _ADD_NEW_LINK_ -->
+        </div>
+    </h3>
+
+    <div class="table-responsive p-0 bg-white border">
+        <table class="table table-hover text-nowrap">
+            <thead>
+            <tr>
+<th>Id</th>
+<th>Created At</th>
+<th>Type</th>
+<th>Uid</th>
+<th>Is Removed</th>
+<th>Removal Memo</th>
+<th>Removed At</th>
+<th>Category</th>
+<th>Content Detail</th>
+<th>Content Text</th>
+<th>Created By Session Id</th>
+<th>Removed By Session Id</th>
+<th>Client Id</th>
+            </tr>
+            </thead>
+            <tbody>
+            @foreach($records as $record)
+                <tr>
+<td><?= $record->id ?></td>
+<td><?= $record->created_at ?></td>
+<td><?= $record->type ?></td>
+<td><?= $record->uid ?></td>
+<td><?= $record->is_removed ?></td>
+<td><?= $record->removal_memo ?></td>
+<td><?= $record->removed_at ?></td>
+<td><?= $record->category ?></td>
+<td><?= $record->content_detail ?></td>
+<td><?= $record->content_text ?></td>
+<td><?= $record->created_by_session_id ?></td>
+<td><?= $record->removed_by_session_id ?></td>
+<td><?= $record->client_id ?></td>
+                </tr>
+            @endforeach
+            </tbody>
+        </table>
+    </div>
+
+@endsection

+ 8 - 7
resources/views/pro/my_clients/actions.blade.php

@@ -1,20 +1,18 @@
 <a href='/my_clients/view/<?= $record->uid ?>/ACTION_sendCellNumberConfirmationMessage' class='d-block btn btn-sm btn-default mb-3'>Send Cell Number Confirmation Message</a>
-<a href='/my_clients/view/<?= $record->uid ?>/ACTION_confirmCellNumberWithConfirmationToken' class='d-block btn btn-sm btn-default mb-3'>Confirm Cell Number With Confirmation Token</a>
 <a href='/my_clients/view/<?= $record->uid ?>/ACTION_putNewCellNumber' class='d-block btn btn-sm btn-default mb-3'>Put New Cell Number</a>
 <a href='/my_clients/view/<?= $record->uid ?>/ACTION_sendEmailAddressConfirmationMessage' class='d-block btn btn-sm btn-default mb-3'>Send Email Address Confirmation Message</a>
-<a href='/my_clients/view/<?= $record->uid ?>/ACTION_confirmEmailAddressWithConfirmationToken' class='d-block btn btn-sm btn-default mb-3'>Confirm Email Address With Confirmation Token</a>
 <a href='/my_clients/view/<?= $record->uid ?>/ACTION_putNewEmailAddress' class='d-block btn btn-sm btn-default mb-3'>Put New Email Address</a>
 <a href='/my_clients/view/<?= $record->uid ?>/ACTION_putTeam' class='d-block btn btn-sm btn-default mb-3'>Put Team</a>
-<a href='/my_clients/view/<?= $record->uid ?>/ACTION_removeTeam' class='d-block btn btn-sm btn-default mb-3'>Remove Team</a>
+@if($record->team_id) <a href='/my_clients/view/<?= $record->uid ?>/ACTION_removeTeam' class='d-block btn btn-sm btn-default mb-3'>Remove Team</a> @endif
 <a href='/my_clients/view/<?= $record->uid ?>/ACTION_putMcp' class='d-block btn btn-sm btn-default mb-3'>Put Mcp</a>
-<a href='/my_clients/view/<?= $record->uid ?>/ACTION_removeMcp' class='d-block btn btn-sm btn-default mb-3'>Remove Mcp</a>
+@if($record->mcp_pro_id) <a href='/my_clients/view/<?= $record->uid ?>/ACTION_removeMcp' class='d-block btn btn-sm btn-default mb-3'>Remove Mcp</a> @endif
 <a href='/my_clients/view/<?= $record->uid ?>/ACTION_putAlly' class='d-block btn btn-sm btn-default mb-3'>Put Ally</a>
-<a href='/my_clients/view/<?= $record->uid ?>/ACTION_removeAlly' class='d-block btn btn-sm btn-default mb-3'>Remove Ally</a>
+@if($record->ally_pro_id) <a href='/my_clients/view/<?= $record->uid ?>/ACTION_removeAlly' class='d-block btn btn-sm btn-default mb-3'>Remove Ally</a> @endif
 <a href='/my_clients/view/<?= $record->uid ?>/ACTION_putName' class='d-block btn btn-sm btn-default mb-3'>Put Name</a>
 <a href='/my_clients/view/<?= $record->uid ?>/ACTION_putGender' class='d-block btn btn-sm btn-default mb-3'>Put Gender</a>
 <a href='/my_clients/view/<?= $record->uid ?>/ACTION_putDateOfBirth' class='d-block btn btn-sm btn-default mb-3'>Put Date Of Birth</a>
 <a href='/my_clients/view/<?= $record->uid ?>/ACTION_putProfilePicture' class='d-block btn btn-sm btn-default mb-3'>Put Profile Picture</a>
-<a href='/my_clients/view/<?= $record->uid ?>/ACTION_removeProfilePicture' class='d-block btn btn-sm btn-default mb-3'>Remove Profile Picture</a>
+@if($record->profile_picture_base64) <a href='/my_clients/view/<?= $record->uid ?>/ACTION_removeProfilePicture' class='d-block btn btn-sm btn-default mb-3'>Remove Profile Picture</a> @endif
 <a href='/my_clients/view/<?= $record->uid ?>/ACTION_updatePhoneInfo' class='d-block btn btn-sm btn-default mb-3'>Update Phone Info</a>
 <a href='/my_clients/view/<?= $record->uid ?>/ACTION_updateAddress' class='d-block btn btn-sm btn-default mb-3'>Update Address</a>
 <a href='/my_clients/view/<?= $record->uid ?>/ACTION_updateMedicareNumber' class='d-block btn btn-sm btn-default mb-3'>Update Medicare Number</a>
@@ -36,5 +34,8 @@
 <a href='/my_clients/view/<?= $record->uid ?>/ACTION_updateDeactivationMemo' class='d-block btn btn-sm btn-default mb-3'>Update Deactivation Memo</a>
 <a href='/my_clients/view/<?= $record->uid ?>/ACTION_reactivate' class='d-block btn btn-sm btn-default mb-3'>Reactivate</a>
 <a href='/my_clients/view/<?= $record->uid ?>/ACTION_updateReactivationMemo' class='d-block btn btn-sm btn-default mb-3'>Update Reactivation Memo</a>
+<a href='/my_clients/view/<?= $record->uid ?>/ACTION_pro_accessAddNew' class='d-block btn btn-sm btn-default mb-3'>Pro_access Add New</a>
 <a href='/my_clients/view/<?= $record->uid ?>/ACTION_notesAddNew' class='d-block btn btn-sm btn-default mb-3'>Notes Add New</a>
-<a href='/my_clients/view/<?= $record->uid ?>/ACTION_care_monthsAddNew' class='d-block btn btn-sm btn-default mb-3'>Care_months Add New</a>
+<a href='/my_clients/view/<?= $record->uid ?>/ACTION_care_monthsAddNew' class='d-block btn btn-sm btn-default mb-3'>Care_months Add New</a>
+<a href='/my_clients/view/<?= $record->uid ?>/ACTION_action_itemsAddNew' class='d-block btn btn-sm btn-default mb-3'>Action_items Add New</a>
+<a href='/my_clients/view/<?= $record->uid ?>/ACTION_erxAddNew' class='d-block btn btn-sm btn-default mb-3'>Erx Add New</a>

+ 56 - 0
resources/views/pro/my_clients_SINGLE/ACTION_action_itemsAddNew.blade.php

@@ -0,0 +1,56 @@
+@extends('pro.my_clients.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Action Items Add New</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/actionItem/create">
+        <input type="hidden" name="_success" value="{{route('my_clients_SINGLE-SUB_action_items', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('my_clients_SINGLE-ACTION_action_itemsAddNew', ['uid' => $record->uid])}}">
+        <input class='form-control' type='hidden' name='clientUid' value='{{ old('clientUid') ? old('clientUid') : $record->uid }}' >
+<div class='form-group mb-3'>
+<label class='control-label'>Prescriber Pro</label>
+<select class='form-control' name='prescriberProUid' value='{{ old('prescriberProUid') ? old('prescriberProUid') : '' }}' >
+<option value=''>-- Select --</option>
+<?php $dbOptions = \Illuminate\Support\Facades\DB::table('pro')->get(); ?>
+<?php foreach($dbOptions as $o): ?>
+<option <?= $o->uid === (old('prescriberProUid') ? old('prescriberProUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->name_display ?> (<?= $o->uid ?>)</option>
+<?php endforeach; ?>
+</select>
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>To Facility</label>
+<select class='form-control' name='toFacilityUid' value='{{ old('toFacilityUid') ? old('toFacilityUid') : '' }}' >
+<option value=''>-- Select --</option>
+<?php $dbOptions = \Illuminate\Support\Facades\DB::table('facility')->get(); ?>
+<?php foreach($dbOptions as $o): ?>
+<option <?= $o->uid === (old('toFacilityUid') ? old('toFacilityUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->name ?> (<?= $o->uid ?>)</option>
+<?php endforeach; ?>
+</select>
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Content Text</label>
+<input class='form-control' type='text' name='contentText' value='{{ old('contentText') ? old('contentText') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Content Detail</label>
+<input class='form-control' type='text' name='contentDetail' value='{{ old('contentDetail') ? old('contentDetail') : '' }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('my_clients_SINGLE-SUB_action_items', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 6 - 2
resources/views/pro/my_clients_SINGLE/ACTION_care_monthsAddNew.blade.php

@@ -20,8 +20,12 @@
         <input type="hidden" name="_return" value="{{route('my_clients_SINGLE-ACTION_care_monthsAddNew', ['uid' => $record->uid])}}">
         <input class='form-control' type='hidden' name='clientUid' value='{{ old('clientUid') ? old('clientUid') : $record->uid }}' >
 <div class='form-group mb-3'>
-<label class='control-label'>Start Date</label>
-<input class='form-control' type='date' name='startDate' value='{{ old('startDate') ? old('startDate') : '' }}' >
+<label class='control-label'>Start Month</label>
+<input class='form-control' type='number' name='startMonth' value='{{ old('startMonth') ? old('startMonth') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Start Year</label>
+<input class='form-control' type='number' name='startYear' value='{{ old('startYear') ? old('startYear') : '' }}' >
 </div>
         <div class="form-group mb-3">
             <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>

+ 56 - 0
resources/views/pro/my_clients_SINGLE/ACTION_erxAddNew.blade.php

@@ -0,0 +1,56 @@
+@extends('pro.my_clients.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Erx Add New</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/actionItem/create">
+        <input type="hidden" name="_success" value="{{route('my_clients_SINGLE-SUB_erx', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('my_clients_SINGLE-ACTION_erxAddNew', ['uid' => $record->uid])}}">
+        <input class='form-control' type='hidden' name='clientUid' value='{{ old('clientUid') ? old('clientUid') : $record->uid }}' >
+<div class='form-group mb-3'>
+<label class='control-label'>Prescriber Pro</label>
+<select class='form-control' name='prescriberProUid' value='{{ old('prescriberProUid') ? old('prescriberProUid') : '' }}' >
+<option value=''>-- Select --</option>
+<?php $dbOptions = \Illuminate\Support\Facades\DB::table('pro')->get(); ?>
+<?php foreach($dbOptions as $o): ?>
+<option <?= $o->uid === (old('prescriberProUid') ? old('prescriberProUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->name_display ?> (<?= $o->uid ?>)</option>
+<?php endforeach; ?>
+</select>
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>To Facility</label>
+<select class='form-control' name='toFacilityUid' value='{{ old('toFacilityUid') ? old('toFacilityUid') : '' }}' >
+<option value=''>-- Select --</option>
+<?php $dbOptions = \Illuminate\Support\Facades\DB::table('facility')->get(); ?>
+<?php foreach($dbOptions as $o): ?>
+<option <?= $o->uid === (old('toFacilityUid') ? old('toFacilityUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->name ?> (<?= $o->uid ?>)</option>
+<?php endforeach; ?>
+</select>
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Content Text</label>
+<input class='form-control' type='text' name='contentText' value='{{ old('contentText') ? old('contentText') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Content Detail</label>
+<input class='form-control' type='text' name='contentDetail' value='{{ old('contentDetail') ? old('contentDetail') : '' }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('my_clients_SINGLE-SUB_erx', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 50 - 0
resources/views/pro/my_clients_SINGLE/ACTION_pro_accessAddNew.blade.php

@@ -0,0 +1,50 @@
+@extends('pro.my_clients.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Pro Access Add New</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/clientProAccess/create">
+        <input type="hidden" name="_success" value="{{route('my_clients_SINGLE-SUB_pro_access', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('my_clients_SINGLE-ACTION_pro_accessAddNew', ['uid' => $record->uid])}}">
+        <input class='form-control' type='hidden' name='clientUid' value='{{ old('clientUid') ? old('clientUid') : $record->uid }}' >
+<div class='form-group mb-3'>
+<label class='control-label'>Pro</label>
+<select class='form-control' name='proUid' value='{{ old('proUid') ? old('proUid') : '' }}' >
+<option value=''>-- Select --</option>
+<?php $dbOptions = \Illuminate\Support\Facades\DB::table('pro')->get(); ?>
+<?php foreach($dbOptions as $o): ?>
+<option <?= $o->uid === (old('proUid') ? old('proUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->name_display ?> (<?= $o->uid ?>)</option>
+<?php endforeach; ?>
+</select>
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Reason Category</label>
+<input class='form-control' type='text' name='reasonCategory' value='{{ old('reasonCategory') ? old('reasonCategory') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Reason Memo</label>
+<input class='form-control' type='text' name='reasonMemo' value='{{ old('reasonMemo') ? old('reasonMemo') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Reason Detail</label>
+<input class='form-control' type='text' name='reasonDetail' value='{{ old('reasonDetail') ? old('reasonDetail') : '' }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('my_clients_SINGLE-SUB_pro_access', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 1 - 1
resources/views/pro/my_clients_SINGLE/SUB_action_items.blade.php

@@ -6,7 +6,7 @@
         <h4 class='my-3 d-flex'>
             <div>Action Items</div>
             <div class="ml-auto">
-                <!-- _ADD_NEW_LINK_ -->
+                <a class="btn btn-primary btn-sm" href="{{route('my_clients_SINGLE-ACTION_action_itemsAddNew', ['uid' => $record->uid])}}"><i class='fa fa-plus-circle' aria-hidden='true'></i> Add New</a>
             </div>
         </h4>
 

+ 69 - 1
resources/views/pro/my_clients_SINGLE/SUB_erx.blade.php

@@ -1,6 +1,74 @@
 @extends('pro.my_clients.view')
 @section('content-inner')
 
-    <h4 class='py-3 border-bottom'>Erx</h4>Controller: <b>my_clients_SINGLE</b><br>Action: <b>SUB_erx()</b><br>View: <b>pro/my_clients_SINGLE/SUB_erx.blade.php</b><br>
+    <div class="mr-3 pb-3">
+
+        <h4 class='my-3 d-flex'>
+            <div>Erx</div>
+            <div class="ml-auto">
+                <a class="btn btn-primary btn-sm" href="{{route('my_clients_SINGLE-ACTION_erxAddNew', ['uid' => $record->uid])}}"><i class='fa fa-plus-circle' aria-hidden='true'></i> Add New</a>
+            </div>
+        </h4>
+
+        <div class="table-responsive p-0 bg-white border">
+            <table class="table table-hover text-nowrap">
+                <thead>
+                <tr>
+                    <th>Id</th>
+<th>Created At</th>
+<th>Type</th>
+<th>Uid</th>
+<th>Action Item Category</th>
+<th>Content Detail</th>
+<th>Content Text</th>
+<th>Is Signed By Ally</th>
+<th>Is Signed By Prescriber</th>
+<th>Signed By Ally At</th>
+<th>Signed By Prescriber At</th>
+<th>Status Category</th>
+<th>Status Memo</th>
+<th>Created By Session Id</th>
+<th>Ally Pro Id</th>
+<th>Client Id</th>
+<th>Current Content Update Id</th>
+<th>Current Status Update Id</th>
+<th>Prescriber Pro Id</th>
+<th>Signed By Ally Session Id</th>
+<th>Signed By Prescriber Session Id</th>
+<th>To Facility Id</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($subRecords as $subRecord)
+                    <tr>
+                        <td><?= $subRecord->id ?></td>
+<td><?= $subRecord->created_at ?></td>
+<td><?= $subRecord->type ?></td>
+<td><?= $subRecord->uid ?></td>
+<td><?= $subRecord->action_item_category ?></td>
+<td><?= $subRecord->content_detail ?></td>
+<td><?= $subRecord->content_text ?></td>
+<td><?= $subRecord->is_signed_by_ally ?></td>
+<td><?= $subRecord->is_signed_by_prescriber ?></td>
+<td><?= $subRecord->signed_by_ally_at ?></td>
+<td><?= $subRecord->signed_by_prescriber_at ?></td>
+<td><?= $subRecord->status_category ?></td>
+<td><?= $subRecord->status_memo ?></td>
+<td><?= $subRecord->created_by_session_id ?></td>
+<td><?= $subRecord->ally_pro_id ?></td>
+<td><?= $subRecord->client_id ?></td>
+<td><?= $subRecord->current_content_update_id ?></td>
+<td><?= $subRecord->current_status_update_id ?></td>
+<td><?= $subRecord->prescriber_pro_id ?></td>
+<td><?= $subRecord->signed_by_ally_session_id ?></td>
+<td><?= $subRecord->signed_by_prescriber_session_id ?></td>
+<td><?= $subRecord->to_facility_id ?></td>
+                    </tr>
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+    </div>
 
 @endsection

+ 1 - 1
resources/views/pro/my_clients_SINGLE/SUB_pro_access.blade.php

@@ -6,7 +6,7 @@
         <h4 class='my-3 d-flex'>
             <div>Pro Access</div>
             <div class="ml-auto">
-                <!-- _ADD_NEW_LINK_ -->
+                <a class="btn btn-primary btn-sm" href="{{route('my_clients_SINGLE-ACTION_pro_accessAddNew', ['uid' => $record->uid])}}"><i class='fa fa-plus-circle' aria-hidden='true'></i> Add New</a>
             </div>
         </h4>
 

+ 0 - 20
resources/views/pro/my_teams_SINGLE/ACTION_clientsAddNew.blade.php

@@ -20,26 +20,6 @@
         <input type="hidden" name="_return" value="{{route('my_teams_SINGLE-ACTION_clientsAddNew', ['uid' => $record->uid])}}">
         <input class='form-control' type='hidden' name='teamUid' value='{{ old('teamUid') ? old('teamUid') : $record->uid }}' >
 <div class='form-group mb-3'>
-<label class='control-label'>Mcp Pro</label>
-<select class='form-control' name='mcpProUid' value='{{ old('mcpProUid') ? old('mcpProUid') : '' }}' >
-<option value=''>-- Select --</option>
-<?php $dbOptions = \Illuminate\Support\Facades\DB::table('pro')->get(); ?>
-<?php foreach($dbOptions as $o): ?>
-<option <?= $o->uid === (old('mcpProUid') ? old('mcpProUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->name_display ?> (<?= $o->uid ?>)</option>
-<?php endforeach; ?>
-</select>
-</div>
-<div class='form-group mb-3'>
-<label class='control-label'>Ally Pro</label>
-<select class='form-control' name='allyProUid' value='{{ old('allyProUid') ? old('allyProUid') : '' }}' >
-<option value=''>-- Select --</option>
-<?php $dbOptions = \Illuminate\Support\Facades\DB::table('pro')->get(); ?>
-<?php foreach($dbOptions as $o): ?>
-<option <?= $o->uid === (old('allyProUid') ? old('allyProUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->name_display ?> (<?= $o->uid ?>)</option>
-<?php endforeach; ?>
-</select>
-</div>
-<div class='form-group mb-3'>
 <label class='control-label'>Name Display</label>
 <input class='form-control' type='text' name='nameDisplay' value='{{ old('nameDisplay') ? old('nameDisplay') : '' }}' >
 </div>

+ 2 - 1
resources/views/pro/notes/actions.blade.php

@@ -1 +1,2 @@
-<a href='/notes/view/<?= $record->uid ?>/ACTION_signAsHcp' class='d-block btn btn-sm btn-default mb-3'>Sign As Hcp</a>
+<a href='/notes/view/<?= $record->uid ?>/ACTION_signAsHcp' class='d-block btn btn-sm btn-default mb-3'>Sign As Hcp</a>
+<a href='/notes/view/<?= $record->uid ?>/ACTION_billsAddNew' class='d-block btn btn-sm btn-default mb-3'>Bills Add New</a>

+ 1 - 1
resources/views/pro/notes/index.blade.php

@@ -4,7 +4,7 @@
     <h3 class="d-flex mb-3">
         <div>Notes: List</div>
         <div class="ml-auto">
-            <a class='btn btn-primary btn-sm ml-2' href='/notes/add_new'><i class='fa fa-plus-circle' aria-hidden='true'></i> Add New</a>
+            <!-- _ADD_NEW_LINK_ -->
         </div>
     </h3>
 

+ 1 - 0
resources/views/pro/notes/subs.blade.php

@@ -1,2 +1,3 @@
 <a href='/notes/view/<?= $record->uid ?>/SUB_dashboard' class='d-block px-3 py-2 border-bottom {{ request()->route()->getActionMethod() === 'SUB_dashboard' ? 'bg-secondary text-white font-weight-bold' : '' }}{{ strpos(request()->route()->getActionMethod(), 'ACTION_') === 0 ? 'bg-secondary text-white font-weight-bold' : '' }}'>Dashboard</a>
+<a href='/notes/view/<?= $record->uid ?>/SUB_bills' class='d-block px-3 py-2 border-bottom {{ request()->route()->getActionMethod() === 'SUB_bills' ? 'bg-secondary text-white font-weight-bold' : '' }}'>Bills</a>
 <a href='/notes/view/<?= $record->uid ?>/SUB_audit_log' class='d-block px-3 py-2 border-bottom {{ request()->route()->getActionMethod() === 'SUB_audit_log' ? 'bg-secondary text-white font-weight-bold' : '' }}'>Audit Log</a>

+ 64 - 0
resources/views/pro/notes_SINGLE/ACTION_billsAddNew.blade.php

@@ -0,0 +1,64 @@
+@extends('pro.notes.view')
+@section('content-inner')
+
+    <h4 class='my-3'>
+        <div>Bills Add New</div>
+    </h4>
+
+    <form action="/post-to-api"
+          method="post" enctype="multipart/form-data"
+          class="bg-light rounded border px-3 pt-3 mr-3 mb-3">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/bill/create">
+        <input type="hidden" name="_success" value="{{route('notes_SINGLE-SUB_bills', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('notes_SINGLE-ACTION_billsAddNew', ['uid' => $record->uid])}}">
+        <input class='form-control' type='hidden' name='noteUid' value='{{ old('noteUid') ? old('noteUid') : $record->uid }}' >
+<div class='form-group mb-3'>
+<label class='control-label'>Effective Date</label>
+<input class='form-control' type='date' name='effectiveDate' value='{{ old('effectiveDate') ? old('effectiveDate') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Code</label>
+<input class='form-control' type='text' name='code' value='{{ old('code') ? old('code') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Reason 1</label>
+<input class='form-control' type='text' name='reason1' value='{{ old('reason1') ? old('reason1') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Reason 2</label>
+<input class='form-control' type='text' name='reason2' value='{{ old('reason2') ? old('reason2') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Reason 3</label>
+<input class='form-control' type='text' name='reason3' value='{{ old('reason3') ? old('reason3') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Reason 3Plus</label>
+<input class='form-control' type='text' name='reason3Plus' value='{{ old('reason3Plus') ? old('reason3Plus') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Service Location</label>
+<input class='form-control' type='text' name='serviceLocation' value='{{ old('serviceLocation') ? old('serviceLocation') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Modifier</label>
+<input class='form-control' type='text' name='modifier' value='{{ old('modifier') ? old('modifier') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Number Of Units</label>
+<input class='form-control' type='number' name='numberOfUnits' value='{{ old('numberOfUnits') ? old('numberOfUnits') : '' }}' >
+</div>
+        <div class="form-group mb-3">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('notes_SINGLE-SUB_bills', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5">Cancel</a>
+        </div>
+    </form>
+
+@endsection

+ 120 - 0
resources/views/pro/notes_SINGLE/SUB_bills.blade.php

@@ -0,0 +1,120 @@
+@extends('pro.notes.view')
+@section('content-inner')
+
+    <div class="mr-3 pb-3">
+
+        <h4 class='my-3 d-flex'>
+            <div>Bills</div>
+            <div class="ml-auto">
+                <a class="btn btn-primary btn-sm" href="{{route('notes_SINGLE-ACTION_billsAddNew', ['uid' => $record->uid])}}"><i class='fa fa-plus-circle' aria-hidden='true'></i> Add New</a>
+            </div>
+        </h4>
+
+        <div class="table-responsive p-0 bg-white border">
+            <table class="table table-hover text-nowrap">
+                <thead>
+                <tr>
+                    <th>Id</th>
+<th>Created At</th>
+<th>Type</th>
+<th>Uid</th>
+<th>Ally Expected Payment Amount</th>
+<th>Ally Payment Amount</th>
+<th>Bill Service Type</th>
+<th>Cm Or Rm</th>
+<th>Code</th>
+<th>Collected Amount</th>
+<th>Effective Date</th>
+<th>Has Ally Been Paid</th>
+<th>Has Hcp Been Paid</th>
+<th>Hcp Expected Payment Amount</th>
+<th>Hcp Payment Amount</th>
+<th>Is Cancelled</th>
+<th>Is Resubmission Required</th>
+<th>Is Signed By Ally</th>
+<th>Is Signed By Hcp</th>
+<th>Is Submitted</th>
+<th>Marked Cancelled At</th>
+<th>Marked Resubmission Required At</th>
+<th>Marked Submitted At</th>
+<th>Modifier</th>
+<th>Number Of Units</th>
+<th>Reason1</th>
+<th>Reason2</th>
+<th>Reason3</th>
+<th>Reason3plus</th>
+<th>Service Location</th>
+<th>Signed By Ally At</th>
+<th>Signed By Hcp At</th>
+<th>Created By Session Id</th>
+<th>Ally Payment Pro Transaction Id</th>
+<th>Ally Pro Id</th>
+<th>Care Month Id</th>
+<th>Client Id</th>
+<th>Hcp Payment Pro Transaction Id</th>
+<th>Hcp Pro Id</th>
+<th>Marked Cancelled By Session Id</th>
+<th>Marked Resubmission Required By Session Id</th>
+<th>Marked Submitted By Session Id</th>
+<th>Note Id</th>
+<th>Signed By Ally Session Id</th>
+<th>Signed By Hcp Session Id</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($subRecords as $subRecord)
+                    <tr>
+                        <td><?= $subRecord->id ?></td>
+<td><?= $subRecord->created_at ?></td>
+<td><?= $subRecord->type ?></td>
+<td><?= $subRecord->uid ?></td>
+<td><?= $subRecord->ally_expected_payment_amount ?></td>
+<td><?= $subRecord->ally_payment_amount ?></td>
+<td><?= $subRecord->bill_service_type ?></td>
+<td><?= $subRecord->cm_or_rm ?></td>
+<td><?= $subRecord->code ?></td>
+<td><?= $subRecord->collected_amount ?></td>
+<td><?= $subRecord->effective_date ?></td>
+<td><?= $subRecord->has_ally_been_paid ?></td>
+<td><?= $subRecord->has_hcp_been_paid ?></td>
+<td><?= $subRecord->hcp_expected_payment_amount ?></td>
+<td><?= $subRecord->hcp_payment_amount ?></td>
+<td><?= $subRecord->is_cancelled ?></td>
+<td><?= $subRecord->is_resubmission_required ?></td>
+<td><?= $subRecord->is_signed_by_ally ?></td>
+<td><?= $subRecord->is_signed_by_hcp ?></td>
+<td><?= $subRecord->is_submitted ?></td>
+<td><?= $subRecord->marked_cancelled_at ?></td>
+<td><?= $subRecord->marked_resubmission_required_at ?></td>
+<td><?= $subRecord->marked_submitted_at ?></td>
+<td><?= $subRecord->modifier ?></td>
+<td><?= $subRecord->number_of_units ?></td>
+<td><?= $subRecord->reason1 ?></td>
+<td><?= $subRecord->reason2 ?></td>
+<td><?= $subRecord->reason3 ?></td>
+<td><?= $subRecord->reason3plus ?></td>
+<td><?= $subRecord->service_location ?></td>
+<td><?= $subRecord->signed_by_ally_at ?></td>
+<td><?= $subRecord->signed_by_hcp_at ?></td>
+<td><?= $subRecord->created_by_session_id ?></td>
+<td><?= $subRecord->ally_payment_pro_transaction_id ?></td>
+<td><?= $subRecord->ally_pro_id ?></td>
+<td><?= $subRecord->care_month_id ?></td>
+<td><?= $subRecord->client_id ?></td>
+<td><?= $subRecord->hcp_payment_pro_transaction_id ?></td>
+<td><?= $subRecord->hcp_pro_id ?></td>
+<td><?= $subRecord->marked_cancelled_by_session_id ?></td>
+<td><?= $subRecord->marked_resubmission_required_by_session_id ?></td>
+<td><?= $subRecord->marked_submitted_by_session_id ?></td>
+<td><?= $subRecord->note_id ?></td>
+<td><?= $subRecord->signed_by_ally_session_id ?></td>
+<td><?= $subRecord->signed_by_hcp_session_id ?></td>
+                    </tr>
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+    </div>
+
+@endsection

+ 5 - 0
resources/views/pro/pro_access/actions.blade.php

@@ -0,0 +1,5 @@
+<a href='/pro_access/view/<?= $record->uid ?>/ACTION_updateReason' class='d-block btn btn-sm btn-default mb-3'>Update Reason</a>
+<a href='/pro_access/view/<?= $record->uid ?>/ACTION_deactivate' class='d-block btn btn-sm btn-default mb-3'>Deactivate</a>
+<a href='/pro_access/view/<?= $record->uid ?>/ACTION_updateDeactivationMemo' class='d-block btn btn-sm btn-default mb-3'>Update Deactivation Memo</a>
+<a href='/pro_access/view/<?= $record->uid ?>/ACTION_reactivate' class='d-block btn btn-sm btn-default mb-3'>Reactivate</a>
+<a href='/pro_access/view/<?= $record->uid ?>/ACTION_updateReactivationMemo' class='d-block btn btn-sm btn-default mb-3'>Update Reactivation Memo</a>

+ 1 - 1
resources/views/pro/pro_access/index.blade.php

@@ -36,7 +36,7 @@
 <td><?= $record->id ?></td>
 <td><?= $record->created_at ?></td>
 <td><?= $record->type ?></td>
-<td><?= $record->uid ?></td>
+<td><a href="/pro_access/view/<?= $record->uid ?>"><?= $record->uid ?></a></td>
 <td><?= $record->deactivated_at ?></td>
 <td><?= $record->deactivation_memo ?></td>
 <td><?= $record->is_active ?></td>

+ 1 - 0
resources/views/pro/pro_access/subs.blade.php

@@ -0,0 +1 @@
+<a href='/pro_access/view/<?= $record->uid ?>/SUB_dashboard' class='d-block px-3 py-2 border-bottom {{ request()->route()->getActionMethod() === 'SUB_dashboard' ? 'bg-secondary text-white font-weight-bold' : '' }}{{ strpos(request()->route()->getActionMethod(), 'ACTION_') === 0 ? 'bg-secondary text-white font-weight-bold' : '' }}'>Dashboard</a>

+ 27 - 0
resources/views/pro/pro_access/view.blade.php

@@ -0,0 +1,27 @@
+@extends('layouts.pro-logged-in')
+@section('content')
+
+    <h3 class="d-flex mb-3">
+        <div>Pro Access: Single [<?= $record->uid ?>]</div>
+        <div class="ml-auto">
+            <a class="btn btn-primary btn-sm" href="{{route('pro_access-index')}}">
+                <i class="fa fa-chevron-left" aria-hidden="true"></i>
+                Back
+            </a>
+        </div>
+    </h3>
+
+    <div class="card">
+        <div class="row">
+            <div class="col-3">
+                <div class="border-right h-100">
+                    @include('pro/pro_access/subs')
+                </div>
+            </div>
+            <div class="col-9">
+                @yield('content-inner')
+            </div>
+        </div>
+    </div>
+
+@endsection

Some files were not shown because too many files changed in this diff