Browse Source

Merge branch 'master' of https://rav.triplestart.com/TigerPHP/stagfe

logicpowerhouse 5 years ago
parent
commit
55f7ab6acc
100 changed files with 3346 additions and 650 deletions
  1. 13 0
      .env.example
  2. 4 0
      .gitignore
  3. 0 4
      .idea/stagfe.iml
  4. 114 16
      app/Console/Commands/GenerateTreeCommand.php
  5. 2 1
      app/Http/Controllers/AppSessionController.php
  6. 1 0
      app/Http/Controllers/action_items_Controller.php
  7. 31 0
      app/Http/Controllers/action_items_SINGLE_Controller.php
  8. 1 0
      app/Http/Controllers/ally_updates_Controller.php
  9. 1 6
      app/Http/Controllers/bills_Controller.php
  10. 3 1
      app/Http/Controllers/bills_SINGLE_Controller.php
  11. 1 18
      app/Http/Controllers/care_month_entries_Controller.php
  12. 1 0
      app/Http/Controllers/care_month_entries_SINGLE_Controller.php
  13. 1 6
      app/Http/Controllers/care_months_Controller.php
  14. 126 4
      app/Http/Controllers/care_months_SINGLE_Controller.php
  15. 23 0
      app/Http/Controllers/erx_Controller.php
  16. 54 0
      app/Http/Controllers/erx_SINGLE_Controller.php
  17. 1 0
      app/Http/Controllers/facilities_Controller.php
  18. 31 0
      app/Http/Controllers/facilities_SINGLE_Controller.php
  19. 1 0
      app/Http/Controllers/mcp_updates_Controller.php
  20. 18 0
      app/Http/Controllers/med_profile_line_updates_Controller.php
  21. 18 0
      app/Http/Controllers/med_profile_lines_Controller.php
  22. 1 0
      app/Http/Controllers/my_clients_Controller.php
  23. 21 13
      app/Http/Controllers/my_clients_SINGLE_Controller.php
  24. 18 0
      app/Http/Controllers/my_payment_schedule_Controller.php
  25. 1 0
      app/Http/Controllers/my_teams_Controller.php
  26. 31 0
      app/Http/Controllers/my_teams_SINGLE_Controller.php
  27. 1 6
      app/Http/Controllers/notes_Controller.php
  28. 14 0
      app/Http/Controllers/notes_SINGLE_Controller.php
  29. 6 0
      app/Http/Controllers/pro_access_Controller.php
  30. 48 0
      app/Http/Controllers/pro_access_SINGLE_Controller.php
  31. 1 6
      app/Http/Controllers/pro_rates_Controller.php
  32. 1 0
      app/Http/Controllers/pro_rates_SINGLE_Controller.php
  33. 1 0
      app/Http/Controllers/pros_Controller.php
  34. 9 1
      app/Http/Controllers/pros_SINGLE_Controller.php
  35. 1 0
      app/Http/Controllers/transactions_Controller.php
  36. 1 0
      generatecv/tree-templates/controller.template.php
  37. 234 125
      generatecv/tree.txt
  38. 446 407
      package-lock.json
  39. 31 4
      package.json
  40. 49 1
      resources/js/app.js
  41. 139 0
      resources/js/components/vuex/index.js
  42. 0 0
      resources/js/fix.scss
  43. 3 0
      resources/sass/app.scss
  44. 5 0
      resources/views/admin/facilities/actions.blade.php
  45. 31 0
      resources/views/admin/facilities_SINGLE/ACTION_deactivate.blade.php
  46. 31 0
      resources/views/admin/facilities_SINGLE/ACTION_reactivate.blade.php
  47. 79 0
      resources/views/admin/facilities_SINGLE/ACTION_updateBasic.blade.php
  48. 31 0
      resources/views/admin/facilities_SINGLE/ACTION_updateDeactivationMemo.blade.php
  49. 31 0
      resources/views/admin/facilities_SINGLE/ACTION_updateReactivationMemo.blade.php
  50. 1 1
      resources/views/admin/pro_rates/index.blade.php
  51. 10 9
      resources/views/admin/pros/add_new.blade.php
  52. 44 0
      resources/views/admin/pros_SINGLE/ACTION_payment_scheduleAddNew.blade.php
  53. 7 7
      resources/views/admin/pros_SINGLE/ACTION_updateName.blade.php
  54. 3 2
      resources/views/admin/pros_SINGLE/ACTION_updateProfession.blade.php
  55. 57 1
      resources/views/admin/pros_SINGLE/SUB_payment_schedule.blade.php
  56. 4 0
      resources/views/layouts/generated-links.blade.php
  57. 5 0
      resources/views/pro/action_items/actions.blade.php
  58. 31 0
      resources/views/pro/action_items_SINGLE/ACTION_efax.blade.php
  59. 28 0
      resources/views/pro/action_items_SINGLE/ACTION_signAsPrescriber.blade.php
  60. 35 0
      resources/views/pro/action_items_SINGLE/ACTION_updateContent.blade.php
  61. 39 0
      resources/views/pro/action_items_SINGLE/ACTION_updateStatus.blade.php
  62. 37 0
      resources/views/pro/action_items_SINGLE/ACTION_updateToFacility.blade.php
  63. 1 1
      resources/views/pro/bills/index.blade.php
  64. 53 1
      resources/views/pro/bills_SINGLE/SUB_transactions.blade.php
  65. 1 4
      resources/views/pro/care_month_entries/index.blade.php
  66. 3 2
      resources/views/pro/care_month_entries_SINGLE/ACTION_updateTiming.blade.php
  67. 18 1
      resources/views/pro/care_months/actions.blade.php
  68. 1 1
      resources/views/pro/care_months/index.blade.php
  69. 2 1
      resources/views/pro/care_months/subs.blade.php
  70. 66 0
      resources/views/pro/care_months_SINGLE/ACTION_cm_time_entries AddNew.blade.php
  71. 67 0
      resources/views/pro/care_months_SINGLE/ACTION_cm_time_entriesAddNew.blade.php
  72. 37 0
      resources/views/pro/care_months_SINGLE/ACTION_putAllyPro.blade.php
  73. 37 0
      resources/views/pro/care_months_SINGLE/ACTION_putMcpPro.blade.php
  74. 43 0
      resources/views/pro/care_months_SINGLE/ACTION_putReasons.blade.php
  75. 66 0
      resources/views/pro/care_months_SINGLE/ACTION_rm_time_entries AddNew.blade.php
  76. 67 0
      resources/views/pro/care_months_SINGLE/ACTION_rm_time_entriesAddNew.blade.php
  77. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_setIsClientEnrolledInCmToFalse.blade.php
  78. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_setIsClientEnrolledInCmToTrue.blade.php
  79. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_setIsClientEnrolledInRmToFalse.blade.php
  80. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_setIsClientEnrolledInRmToTrue.blade.php
  81. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_setIsCmCanceledThisMonthToFalse.blade.php
  82. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_setIsCmCanceledThisMonthToTrue.blade.php
  83. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_setIsRmCanceledThisMonthToFalse.blade.php
  84. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_setIsRmCanceledThisMonthToTrue.blade.php
  85. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_setIsTmThisMonthToFalse.blade.php
  86. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_setIsTmThisMonthToTrue.blade.php
  87. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_updateWhyIsCmCanceledThisMonth.blade.php
  88. 28 0
      resources/views/pro/care_months_SINGLE/ACTION_updateWhyIsRmCanceledThisMonth.blade.php
  89. 35 0
      resources/views/pro/care_months_SINGLE/ACTION_updateWhyNotEnrolledInCm.blade.php
  90. 35 0
      resources/views/pro/care_months_SINGLE/ACTION_updateWhyNotEnrolledInRm.blade.php
  91. 76 0
      resources/views/pro/care_months_SINGLE/SUB_cm_time_entries .blade.php
  92. 76 0
      resources/views/pro/care_months_SINGLE/SUB_cm_time_entries.blade.php
  93. 76 0
      resources/views/pro/care_months_SINGLE/SUB_rm_time_entries .blade.php
  94. 76 0
      resources/views/pro/care_months_SINGLE/SUB_rm_time_entries.blade.php
  95. 5 0
      resources/views/pro/erx/actions.blade.php
  96. 70 0
      resources/views/pro/erx/index.blade.php
  97. 2 0
      resources/views/pro/erx/subs.blade.php
  98. 27 0
      resources/views/pro/erx/view.blade.php
  99. 31 0
      resources/views/pro/erx_SINGLE/ACTION_efax.blade.php
  100. 28 0
      resources/views/pro/erx_SINGLE/ACTION_signAsPrescriber.blade.php

+ 13 - 0
.env.example

@@ -44,3 +44,16 @@ PUSHER_APP_CLUSTER=mt1
 
 MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
 MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
+
+OPENTOK_KEY=46678902
+OPENTOK_SECRET=c64dd0c05f7a5955ee60c3c81daa3dfe97e73d3c
+
+STAG_TOKEN=hernya_vash_token
+SOCKET_SERVICE_URL=http://socket-io:3000
+MIX_SOCKET_SERVICE_URL=http://localhost:3000
+
+TWILIO_SID=AC3268825a3a12f00fdb798a37e55f649c
+TWILIO_TOKEN=1c1aa713ee722e1d6dc8a18e82e83308
+TWILIO_NUMBER=+12023359983
+
+MIX_APP_URL="http://app.lobby.localhost"

+ 4 - 0
.gitignore

@@ -1,6 +1,10 @@
 /node_modules
 /public/hot
 /public/storage
+/public/js/chunks
+/public/js/app.js
+/public/css/app.css
+/public/mix-manifest.json
 /storage/*.key
 /vendor
 .env

+ 0 - 4
.idea/stagfe.iml

@@ -102,10 +102,6 @@
     </content>
     <orderEntry type="inheritedJdk" />
     <orderEntry type="sourceFolder" forTests="false" />
-    <orderEntry type="library" name="jquery-3.5.1.slim" level="application" />
-    <orderEntry type="library" name="jquery-3.5.1" level="application" />
-    <orderEntry type="library" name="bootstrap.bundle" level="application" />
-    <orderEntry type="library" name="opentok" level="application" />
     <orderEntry type="library" name="ionicons" level="application" />
     <orderEntry type="library" name="ionicons" level="application" />
   </component>

+ 114 - 16
app/Console/Commands/GenerateTreeCommand.php

@@ -66,11 +66,30 @@ class GenerateTreeCommand extends Command
                 $ls = $this->numLS($line);
                 $line = trim($line);
 
+                $exitURL = false;
+                if(strpos($line, "=>") !== FALSE) {
+                    $parts = explode("=>", $line);
+                    $exitURL = str_replace("UID", "{{ \$subRecord->uid }}", $parts[1]);
+                    $line = $parts[0];
+                }
+
                 $tokens = explode("|", $line);
                 $line = $tokens[0];
                 $dbTable = null;
+                $condition = null;
                 if(count($tokens) >= 2) {
                     $dbTable = $tokens[1];
+
+                    // check if table has loading conditions
+                    if(strpos($dbTable, ":")) {
+                        $parts = explode(":", $dbTable);
+                        $dbTable = $parts[0];
+                        $parts = explode("=", $parts[1]);
+                        $condition = [
+                            "field" => $parts[0],
+                            "value" => str_replace("OWN", "session('proId')" , $parts[1])
+                        ];
+                    }
                 }
 
                 $hasAdd = in_array("add", $tokens);
@@ -116,6 +135,7 @@ class GenerateTreeCommand extends Command
                             }
                             $currentController = new GenController($currentRoot, $line);
                             $currentController->dbTable = $dbTable;
+                            $currentController->condition = $condition;
                             $currentController->hasAdd = $hasAdd;
                             $currentController->hasView = $hasView;
                             $currentController->hasRemove = $hasRemove;
@@ -149,12 +169,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') {
@@ -163,6 +193,7 @@ class GenerateTreeCommand extends Command
                                 "/SUB_" . $line
                             );
                             $currentMethod->type = 'sub';
+                            $currentMethod->show = $show;
                             $currentMethod->data = [];
                         }
                         break;
@@ -170,6 +201,14 @@ class GenerateTreeCommand extends Command
                     case 16: // data for actions and subs
                         if(!empty($currentMethod)) {
                             $currentMethod->data[] = $line;
+                            if($exitURL) {
+                                if(strpos("=", $line) !== FALSE) {
+                                    $currentMethod->viewURL = $exitURL;
+                                }
+                                else {
+                                    $currentMethod->exitURL = $exitURL;
+                                }
+                            }
                         }
                         break;
 
@@ -179,6 +218,11 @@ class GenerateTreeCommand extends Command
                         }
                         break;
 
+                    default:
+                        dump("ERROR: Cannot have $ls leading spaces!");
+                        dump("Line: $line");
+                        exit(1);
+
                 }
 
             }
@@ -218,6 +262,7 @@ class GenController {
     public $methods;
     public $parentRoute = "";
     public $dbTable = null;
+    public $condition = null;
     public $hasAdd = false;
     public $hasView = false;
     public $hasRemove = false;
@@ -266,7 +311,13 @@ class GenController {
                     $newMethod->data[] = $method->data[$i];
                 }
                 $newMethod->parentSub = $this->name . '-' . $method->name;
-                $newMethod->table = explode(":", $method->data[1])[1];
+                $parts = explode(":", $method->data[1]);
+                $newMethod->table = $parts[1];
+                if(count($parts) === 3) {
+                    $newMethod->api = $parts[2];
+                }
+                $newMethod->exitURL = $method->exitURL;
+                $newMethod->showLink = false;
                 $newMethods[] = $newMethod;
                 $method->childAddRoute = $this->name . '-' . $methodName;
             }
@@ -288,19 +339,47 @@ class GenController {
                     $input = ["'record'"];
                     // if sub-index controller, load subRecords
                     if($method->type === 'sub' && count($method->data)) {
-                        $dbParts = explode("=", $method->data[0]);
+                        $parts = explode(",", $method->data[0]);
+
+                        $loadingLine = [];
+
+                        // first 'where'
+                        $dbParts = explode("=", $parts[0]);
                         $localField = $dbParts[0];
                         $dbParts = explode(".", $dbParts[1]);
                         $foreignTable = $dbParts[0];
                         $foreignField = $dbParts[1];
-                        $code[] = "\t\t\$subRecords = DB::table('$foreignTable')->where('$foreignField', \$record->$localField)->get();";
+                        $loadingLine[] = "\t\t\$subRecords = DB::table('$foreignTable')";
+                        $loadingLine[] = "->where('$foreignField', \$record->$localField)";
+
+                        // other 'where's
+                        if(count($parts) > 1) {
+                            for ($i = 1; $i < count($parts); $i++) {
+                                $dbParts = explode("=", $parts[$i]);
+                                $field = $dbParts[0];
+                                $value = $dbParts[1];
+                                $loadingLine[] = "->where('$field', $value)";
+                            }
+                        }
+
+                        $loadingLine[] = "->get();";
+
+                        $code[] = implode("", $loadingLine);
+
+                        // $code[] = "\t\t\$subRecords = DB::table('$foreignTable')->where('$foreignField', \$record->$localField)->get();";
                         $input[] = "'subRecords'";
                     }
                     $code[] = "\t\treturn view('{$this->root}/{$this->name}/{$method->name}', " .
                         "compact(" . implode(", ", $input) . "));";
                 }
                 else {
-                    $code[] = "\t\t\$records = DB::table('{$this->dbTable}')->get();";
+                    $loadingLine = [];
+                    $loadingLine[] = "\t\t\$records = DB::table('{$this->dbTable}')";
+                    if($this->condition) {
+                        $loadingLine[] = "->where('{$this->condition['field']}', {$this->condition['value']})";
+                    }
+                    $loadingLine[] = "->get();";
+                    $code[] = implode("", $loadingLine);
                     $code[] = "\t\treturn view('{$this->root}/{$this->name}/{$method->name}', " .
                         "compact('records'));";
                 }
@@ -410,9 +489,10 @@ class GenController {
         $subLinksView = resource_path("views/{$controller->root}/{$controller->parentControllerName}/subs.blade.php");
         $subLinks = [];
         foreach ($controller->methods as $meth) {
-            if (strpos($meth->name, "SUB_") !== 0) continue;
+            if (strpos($meth->name, "SUB_") !== 0 || $meth->showLink === false) 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' : '' }}" .
@@ -421,7 +501,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";
@@ -433,11 +514,13 @@ class GenController {
         $actionLinksView = resource_path("views/{$controller->root}/{$controller->parentControllerName}/actions.blade.php");
         $actionLinks = [];
         foreach ($controller->methods as $meth) {
-            if (strpos($meth->name, "ACTION_") !== 0) continue;
+            if (strpos($meth->name, "ACTION_") !== 0 || $meth->showLink === false) 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";
@@ -467,7 +550,7 @@ class GenController {
             $text = str_replace("_API_", "/api/{$this->snakeToCamelCase($controller->dbTable)}/" . substr($method->name, 7), $text);
         }
         else {
-            $text = str_replace("_API_", "/api/{$this->snakeToCamelCase($method->table)}/create", $text);
+            $text = str_replace("_API_", "/api/{$this->snakeToCamelCase($method->table)}/{$method->api}", $text);
         }
 
         $text = str_replace("_RETURN_ROUTE_", "{$controller->name}-{$method->name}", $text);
@@ -502,7 +585,11 @@ class GenController {
         $tds = [];
         foreach ($columns as $column) {
             $ths[] = "<th>{$this->snakeToTitleCase($column)}</th>";
-            $tds[] = "<td><?= \$subRecord->$column ?></td>";
+            $tds[] = "<td>" .
+                ($method->exitURL && $column === 'uid' ? '<a href="' . $method->exitURL . '">' : '') .
+                "<?= \$subRecord->$column ?>" .
+                ($method->exitURL && $column === 'uid' ? '</a>' : '') .
+                "</td>";
         }
         $text = str_replace("<!-- __SCAFFOLD_THS__ -->", implode("\n", $ths), $text);
         $text = str_replace("<!-- __SCAFFOLD_TDS__ -->", implode("\n", $tds), $text);
@@ -563,6 +650,8 @@ class GenController {
             $this->w('Rout: ' . $method->route, 1);
             $this->w('Meth: ' . $method->name . '($request' . ($method->hasUID ? ', $uid' : '') . ')', 1);
             if(!empty($method->data)) $this->w('Data: ' . implode(", ", $method->data), 1);
+            $this->w('Exit: ' . $method->exitURL, 1);
+            $this->w('View: ' . $method->viewURL, 1);
             if(!$method->redirect) {
                 $this->w('View: ' . resource_path("views/{$this->root}/{$this->name}/{$method->name}.blade.php"), 1);
             }
@@ -598,7 +687,7 @@ class GenController {
         $file = array_pop($parts);
         $dir = '';
         foreach($parts as $part) {
-            if($part[strlen($part) - 1] !== ':') {
+            if(strlen($part) === 0 || $part[strlen($part) - 1] !== ':') {
                 if(!is_dir($dir .= "/$part")) mkdir($dir);
             }
         }
@@ -634,7 +723,7 @@ class GenController {
                     break;
             }
         }
-        if($type !== 'hidden') {
+        if($type !== 'hidden' && $type !== 'bool') {
             $code[] = "<div class='form-group mb-3'>";
             $code[] = "<label class='control-label'>{$this->camelToTitleCase($this->snakeToTitleCase($display))}</label>";
         }
@@ -663,9 +752,14 @@ class GenController {
                 $code[] = "<?php endforeach; ?>";
                 $code[] = "</select>";
                 break;
+            case "bool":
+                $code[] = "<div class='form-group mb-3'>";
+                $code[] = "<label class='control-label'>{$this->camelToTitleCase($this->snakeToTitleCase($display))} ";
+                $code[] = "<input class='form-control' type='checkbox' name='$name'>";
+                $code[] = "</label>";
+                break;
             default:
-                $code[] = "<input class='form-control' type='$type' name='$name' " . $valueLine .
-                    ">";
+                $code[] = "<input class='form-control' type='$type' name='$name' " . $valueLine . ">";
         }
         if($type !== 'hidden') {
             $code[] = "</div>";
@@ -685,6 +779,10 @@ class GenControllerMethod {
     public $childAddRoute = false;
     public $table = false;
     public $api = 'create';
+    public $show = null;
+    public $viewURL = false;
+    public $exitURL = false;
+    public $showLink = true;
     public function __construct($name, $route)
     {
         $this->name = $name;

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

@@ -30,7 +30,8 @@ class AppSessionController extends Controller
             return back()->with("message", $response['message']);
         }
 
-        $sessionKey = $response['data'];
+        $sessionKey = $response['data']["sessionKey"];
+        $request->session()->put("authID", $response['data']["proId"]);
 
         $cookie = cookie()->forever('sessionKey', $sessionKey, '/');
 

+ 1 - 0
app/Http/Controllers/action_items_Controller.php

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class action_items_Controller extends Controller
 {

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

@@ -4,11 +4,42 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 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();

+ 1 - 0
app/Http/Controllers/ally_updates_Controller.php

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class ally_updates_Controller extends Controller
 {

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

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class bills_Controller extends Controller
 {
@@ -15,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();
-		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");

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

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class bills_SINGLE_Controller extends Controller
 {
@@ -48,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

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

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class care_month_entries_Controller extends Controller
 {
@@ -15,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();
-		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();
-		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");

+ 1 - 0
app/Http/Controllers/care_month_entries_SINGLE_Controller.php

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class care_month_entries_SINGLE_Controller extends Controller
 {

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

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class care_months_Controller extends Controller
 {
@@ -15,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();
-		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");

+ 126 - 4
app/Http/Controllers/care_months_SINGLE_Controller.php

@@ -4,11 +4,66 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 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();
@@ -21,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'));
+		$subRecords = DB::table('care_month_entry')->where('care_month_id', $record->id)->where('cm_or_rm', 'CM')->get();
+		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)->where('cm_or_rm', 'RM')->get();
+		return view('pro/care_months_SINGLE/SUB_rm_time_entries', compact('record', 'subRecords'));
 	}
 
 	// GET /care_months/view/{uid}/SUB_audit_log
@@ -39,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')->where('action_item_category', 'RX')->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'));
+	}
+}

+ 1 - 0
app/Http/Controllers/facilities_Controller.php

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class facilities_Controller extends Controller
 {

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

@@ -4,11 +4,42 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 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();

+ 1 - 0
app/Http/Controllers/mcp_updates_Controller.php

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class mcp_updates_Controller extends Controller
 {

+ 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'));
+	}
+}

+ 1 - 0
app/Http/Controllers/my_clients_Controller.php

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class my_clients_Controller extends Controller
 {

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

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class my_clients_SINGLE_Controller extends Controller
 {
@@ -15,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();
@@ -33,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();
@@ -307,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)->where('action_item_category', 'RX')->get();
+		return view('pro/my_clients_SINGLE/SUB_erx', compact('record', 'subRecords'));
 	}
 
 	// GET /my_clients/view/{uid}/SUB_mcp_updates
@@ -330,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();
@@ -341,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'));
+	}
 }

+ 18 - 0
app/Http/Controllers/my_payment_schedule_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 my_payment_schedule_Controller extends Controller
+{
+    public $selfName = 'my_payment_schedule_Controller';
+
+	// GET /my_payment_schedule
+	public function index(Request $request) {
+		$records = DB::table('pro_rate')->where('pro_id', session('proId'))->get();
+		return view('pro/my_payment_schedule/index', compact('records'));
+	}
+}

+ 1 - 0
app/Http/Controllers/my_teams_Controller.php

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class my_teams_Controller extends Controller
 {

+ 31 - 0
app/Http/Controllers/my_teams_SINGLE_Controller.php

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class my_teams_SINGLE_Controller extends Controller
 {
@@ -15,6 +16,30 @@ class my_teams_SINGLE_Controller extends Controller
 		return view('pro/my_teams_SINGLE/ACTION_updateTeamNumber', compact('record'));
 	}
 
+	// GET /my_teams/view/{uid}/ACTION_deactivate
+	public function ACTION_deactivate(Request $request, $uid) {
+		$record = DB::table('team')->where('uid', $uid)->first();
+		return view('pro/my_teams_SINGLE/ACTION_deactivate', compact('record'));
+	}
+
+	// GET /my_teams/view/{uid}/ACTION_updateDeactivationMemo
+	public function ACTION_updateDeactivationMemo(Request $request, $uid) {
+		$record = DB::table('team')->where('uid', $uid)->first();
+		return view('pro/my_teams_SINGLE/ACTION_updateDeactivationMemo', compact('record'));
+	}
+
+	// GET /my_teams/view/{uid}/ACTION_reactivate
+	public function ACTION_reactivate(Request $request, $uid) {
+		$record = DB::table('team')->where('uid', $uid)->first();
+		return view('pro/my_teams_SINGLE/ACTION_reactivate', compact('record'));
+	}
+
+	// GET /my_teams/view/{uid}/ACTION_updateReactivationMemo
+	public function ACTION_updateReactivationMemo(Request $request, $uid) {
+		$record = DB::table('team')->where('uid', $uid)->first();
+		return view('pro/my_teams_SINGLE/ACTION_updateReactivationMemo', compact('record'));
+	}
+
 	// GET /my_teams/view/{uid}/SUB_dashboard
 	public function SUB_dashboard(Request $request, $uid) {
 		$record = DB::table('team')->where('uid', $uid)->first();
@@ -33,4 +58,10 @@ class my_teams_SINGLE_Controller extends Controller
 		$record = DB::table('team')->where('uid', $uid)->first();
 		return view('pro/my_teams_SINGLE/SUB_audit_log', compact('record'));
 	}
+
+	// GET /my_teams/view/{uid}/ACTION_clientsAddNew
+	public function ACTION_clientsAddNew(Request $request, $uid) {
+		$record = DB::table('team')->where('uid', $uid)->first();
+		return view('pro/my_teams_SINGLE/ACTION_clientsAddNew', compact('record'));
+	}
 }

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

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class notes_Controller extends Controller
 {
@@ -15,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();
-		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");

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

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class notes_SINGLE_Controller extends Controller
 {
@@ -21,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'));
+	}
 }

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

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class pro_access_Controller extends Controller
 {
@@ -14,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'));
+	}
+}

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

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class pro_rates_Controller extends Controller
 {
@@ -15,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();
-		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");

+ 1 - 0
app/Http/Controllers/pro_rates_SINGLE_Controller.php

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class pro_rates_SINGLE_Controller extends Controller
 {

+ 1 - 0
app/Http/Controllers/pros_Controller.php

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class pros_Controller extends Controller
 {

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

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class pros_SINGLE_Controller extends Controller
 {
@@ -108,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
@@ -194,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'));
+	}
 }

+ 1 - 0
app/Http/Controllers/transactions_Controller.php

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class transactions_Controller extends Controller
 {

+ 1 - 0
generatecv/tree-templates/controller.template.php

@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
 
 use Illuminate\Http\Request;
 use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
 
 class _NAME_ extends Controller
 {

+ 234 - 125
generatecv/tree.txt

@@ -1,6 +1,6 @@
 PRO
 #    dashboard
-#    my_payment_schedule
+    my_payment_schedule|pro_rate:pro_id=OWN
     my_teams|team|add|view
     my_teams/add_new:create
         hcpProUid:record:pro:uid,name_display
@@ -10,10 +10,32 @@ PRO
         ACTIONS
             updateTeamNumber
                 teamNumber=team_number
+            deactivate
+                memo
+            updateDeactivationMemo
+                memo=deactivation_memo
+            reactivate
+                memo
+            updateReactivationMemo
+                memo=reactivation_memo
         SUB
             dashboard
             clients
-                id=client.team_id
+                id=client.team_id=>/my_clients/view/UID
+                add_new:client
+                    teamUid:hidden=uid
+                    nameDisplay
+                    namePrefix
+                    nameFirst
+                    nameMiddle
+                    nameLast
+                    nameSuffix
+                    nameCredential
+                    gender:select:M,F
+                    dateOfBirth:date
+                    cellNumber:tel
+                    emailAddress:email
+                    medicareNumber
             audit_log
     my_clients|client|add|view
     my_clients/add_new:create
@@ -21,13 +43,12 @@ PRO
         mcpProUid:record:pro:uid,name_display
         allyProUid:record:pro:uid,name_display
         nameDisplay
-        name.nameDisplay
-        name.namePrefix
-        name.nameFirst
-        name.nameMiddle
-        name.nameLast
-        name.nameSuffix
-        name.nameCredential
+        namePrefix
+        nameFirst
+        nameMiddle
+        nameLast
+        nameSuffix
+        nameCredential
         gender:select:M,F
         dateOfBirth:date
         cellNumber:tel
@@ -36,39 +57,35 @@ PRO
     my_clients/view/{uid}
         ACTIONS
             sendCellNumberConfirmationMessage
-            confirmCellNumberWithConfirmationToken
-                token
             putNewCellNumber
                 newCellNumber:tel=cell_number
             sendEmailAddressConfirmationMessage
-            confirmEmailAddressWithConfirmationToken
-                token
             putNewEmailAddress
                 newEmailAddress:email=email_address
             putTeam
                 teamUid:record:team:uid,team_number
-            removeTeam
+            removeTeam:if:team_id
             putMcp
                 mcpProUid:record:pro:uid,name_display
-            removeMcp
+            removeMcp:if:mcp_pro_id
             putAlly
                 allyProUid:record:pro:uid,name_display
-            removeAlly
+            removeAlly:if:ally_pro_id
             putName
-                name.nameDisplay
-                name.namePrefix
-                name.nameFirst
-                name.nameMiddle
-                name.nameLast
-                name.nameSuffix
-                name.nameCredential
+                nameDisplay
+                namePrefix
+                nameFirst
+                nameMiddle
+                nameLast
+                nameSuffix
+                nameCredential
             putGender
                 gender:select:M,F=gender
             putDateOfBirth
                 dateOfBirth:date=date_of_birth
             putProfilePicture
                 profilePictureBase64
-            removeProfilePicture
+            removeProfilePicture:if:profile_picture_base64
             updatePhoneInfo
                 homePhoneNumber=home_phone_number
                 workPhoneNumber=work_phone_number
@@ -141,10 +158,16 @@ PRO
             med_profile
             med_profile_log
             pro_access
-                id=client_pro_access.client_id
+                id=client_pro_access.client_id=>/pro_access/view/UID
+                add_new:client_pro_access=>/pro_access/view/UID
+                    clientUid:hidden=uid
+                    proUid:record:pro:uid,name_display
+                    reasonCategory
+                    reasonMemo
+                    reasonDetail
             notes
-                id=note.client_id
-                add_new:note
+                id=note.client_id=>/notes/view/UID
+                add_new:note=>/notes/view/UID
                     clientUid:hidden=uid
                     hcpProUid:record:pro:uid,name_display
                     allyProUid:record:pro:uid,name_display
@@ -159,98 +182,156 @@ PRO
                     contentText
                     contentDetail
             care_months
-                id=care_month.client_id
+                id=care_month.client_id=>/care_months/view/UID
                 add_new:care_month
                     clientUid:hidden=uid
-                    startDate:date
-#           care_months/add_new:create
+                    startMonth:number
+                    startYear:number
             care_month_entries
-                id=care_month_entry.client_id
+                id=care_month_entry.client_id=>/care_month_entries/view/UID
             bills
-                id=bill.client_id
+                id=bill.client_id=>/bills/view/UID
             related_transactions
-                id=pro_transaction.client_id
+                id=pro_transaction.client_id=>/transactions/view/UID
             action_items
-                id=action_item.client_id
-#           action_items/add_new:create
+                id=action_item.client_id=>/action_items/view/UID
+                add_new:action_item
+                    clientUid:hidden=uid
+                    prescriberProUid:record:pro:uid,name_display
+                    toFacilityUid:record:facility:uid,name
+                    contentText
+                    contentDetail
             erx
-#           erx/add_new:create
+                id=action_item.client_id,action_item_category='RX'=>/action_items/view/UID
+                add_new:action_item
+                    clientUid:hidden=uid
+                    prescriberProUid:record:pro:uid,name_display
+                    toFacilityUid:record:facility:uid,name
+                    contentText
+                    contentDetail
             mcp_updates
                 id=client_mcp_update.client_id
             ally_updates
                 id=client_ally_update.client_id
             audit_log
-    notes|note|add|view
-    notes/add_new:create
-        clientUid:record:client:uid,name_display
-        hcpProUid:record:pro:uid,name_display
-        allyProUid:record:pro:uid,name_display
-        effectiveDateEST:date
-        effectiveTime:time
-        reason1
-        reason2
-        reason3
-        reason3Plus
-        serviceLocation
-        category
-        contentText
-        contentDetail
+    notes|note|view
     notes/view/{uid}
         ACTIONS
             signAsHcp
+        SUB
+            dashboard
+            bills
+                id=bill.note_id=>/bills/view/UID
+                add_new:bill:createForNote
+                    noteUid:hidden=uid
+                    effectiveDate:date
+                    code
+                    reason1
+                    reason2
+                    reason3
+                    reason3Plus
+                    serviceLocation
+                    modifier
+                    numberOfUnits:number
+            audit_log
+    erx|action_item:action_item_category='RX'|view
+    erx/view/{uid}
+        ACTIONS
+            signAsPrescriber
+            updateToFacility
+                toFacilityUid:record:facility:uid,name
+            updateContent
+                contentText=content_text
+                contentDetail=content_detail
+            updateStatus
+                statusCategory:select:OPEN,CLOSED
+                statusMemo
+            efax
+                toFaxNumber:tel
         SUB
             dashboard
             audit_log
-#   erx
-#   erx/view/{uid}
-#        ACTIONS
-#        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
+                contentDetail=content_detail
+            updateStatus
+                statusCategory:select:OPEN,CLOSED
+                statusMemo
+            efax
+                toFaxNumber:tel
         SUB
             dashboard
             audit_log
-    care_months|care_month|add|view
-    care_months/add_new:create
-        clientUid:record:client:uid,name_display
-        startDate:date
+    care_months|care_month|view
     care_months/view/{uid}
         ACTIONS
+            putMcpPro
+                mcpProUid:record:pro:uid,name_display
+            putAllyPro
+                allyProUid:record:pro:uid,name_display
+            putReasons
+                reason1
+                reason2
+                reason3
+                reason3Plus
+            setIsClientEnrolledInCmToTrue
+            setIsClientEnrolledInCmToFalse
+            updateWhyNotEnrolledInCm
+                whyNotEnrolledInCmCategory
+                whyNotEnrolledInCmMemo
+            setIsClientEnrolledInRmToTrue
+            setIsClientEnrolledInRmToFalse
+            updateWhyNotEnrolledInRm
+                whyNotEnrolledInRmCategory
+                whyNotEnrolledInRmMemo
             generateBillForCm
                 numberOfMinutes:number
             generateBillForRm
                 numberOfMinutes:number
+            setIsCmCanceledThisMonthToTrue
+            updateWhyIsCmCanceledThisMonth
+            setIsCmCanceledThisMonthToFalse
+            setIsRmCanceledThisMonthToTrue
+            updateWhyIsRmCanceledThisMonth
+            setIsRmCanceledThisMonthToFalse
+            setIsTmThisMonthToTrue
+            setIsTmThisMonthToFalse
         SUB
             dashboard
-            time_entries
-                id=care_month_entry.care_month_id
+# :: need remove
+            cm_time_entries
+                id=care_month_entry.care_month_id,cm_or_rm='CM'
+                add_new:care_month_entry:createForCm
+                    careMonthUid:hidden=uid
+                    proUid:record:pro:uid,name_display
+                    effectiveDate:date
+                    timeInSeconds:number
+                    isTimeSpecific:bool
+                    startingTime:time
+                    endingTime:time
+                    contentText
+                    contentDetail
+# :: need remove
+            rm_time_entries
+                id=care_month_entry.care_month_id,cm_or_rm='RM'
+                add_new:care_month_entry:createForRm
+                    careMonthUid:hidden=uid
+                    proUid:record:pro:uid,name_display
+                    effectiveDate:date
+                    timeInSeconds:number
+                    isTimeSpecific:bool
+                    startingTime:time
+                    endingTime:time
+                    contentText
+                    contentDetail
             audit_log
-    care_month_entries|care_month_entry|add|view|remove
-    care_month_entries/add_new_for_cm:createForCm
-        careMonthUid:record:care_month:uid,start_date
-        proUid:record:pro:uid,name_display
-        effectiveDate:date
-        timeInSeconds:number
-        isTimeSpecific
-        startingTime:time
-        endingTime:time
-        contentText
-        contentDetail
-    care_month_entries/add_new_for_rm:createForRm
-        careMonthUid:record:care_month:uid,start_date
-        proUid:record:pro:uid,name_display
-        effectiveDate:date
-        timeInSeconds:number
-        isTimeSpecific
-        startingTime:time
-        endingTime:time
-        contentText
-        contentDetail
-    care_month_entries/remove/{uid}:remove
-        memo
+    care_month_entries|care_month_entry|view
     care_month_entries/view/{uid}
         ACTIONS
             updateContent
@@ -259,23 +340,12 @@ PRO
             updateTiming
                 effectiveDate
                 timeInSeconds
-                isTimeSpecific
+                isTimeSpecific:bool
                 startingTime
                 endingTime
         SUB
             dashboard
-    bills|bill|add|view
-    bills/add_new_for_note:createForNote
-        noteUid:record:note:uid,uid
-        effectiveDate:date
-        code
-        reason1
-        reason2
-        reason3
-        reason3Plus
-        serviceLocation
-        modifier
-        numberOfUnits:number
+    bills|bill|view
     bills/view/{uid}
         ACTIONS
             payHcpAmount
@@ -289,14 +359,30 @@ PRO
         SUB
             dashboard
             transactions
+                id=pro_transaction.bill_id
             audit_log
     transactions|pro_transaction
-#   med_profile_lines
-#   med_profile_line_updates
-    pro_access|client_pro_access
+    med_profile_lines|client_info_line
+    med_profile_line_updates|client_info_line_update
+    pro_access|client_pro_access|view
+    pro_access/view/{uid}
+        ACTIONS
+            updateReason
+                reasonCategory=reason_category
+                reasonDetail=reason_detail
+            deactivate
+                memo
+            updateDeactivationMemo
+                memo=deactivation_memo
+            reactivate
+                memo
+            updateReactivationMemo
+                memo=reactivation_memo
+        SUB
+            dashboard
     mcp_updates|client_mcp_update
     ally_updates|client_ally_update
-#   audit_log
+#   audit_log :: coming soon
 
 ADMIN
 #   admin_dashboard
@@ -304,6 +390,28 @@ ADMIN
     facilities/add_new:create
     facilities/view/{uid}
         ACTIONS
+            updateBasic
+                name=name
+                addressFull=address_full
+                addressLine1=address_line1
+                addressLine2=address_line2
+                addressCity=address_city
+                addressState=address_state
+                addressZip=address_zip
+                addressCountry=address_country
+                addressGeoLat=address_geo_lat
+                addressGeoLong=address_geo_long
+                phone=phone
+                fax=fax
+                hours=hours
+            deactivate
+                memo
+            updateDeactivationMemo
+                memo=deactivation_memo
+            reactivate
+                memo
+            updateReactivationMemo
+                memo=reactivation_memo
         SUB
             dashboard
             erx
@@ -313,14 +421,14 @@ ADMIN
     pros/add_new:create
         cellNumber:tel
         emailAddress:email
-        name.nameDisplay
-        name.namePrefix
-        name.nameFirst
-        name.nameMiddle
-        name.nameLast
-        name.nameSuffix
-        name.nameCredential
-        isHcp
+        nameDisplay
+        namePrefix
+        nameFirst
+        nameMiddle
+        nameLast
+        nameSuffix
+        nameCredential
+        isHcp:bool
         hcpNpi
         previousProfessionCategory
         currentProfessionCategory
@@ -338,15 +446,15 @@ ADMIN
             putNewEmailAddress
                 newEmailAddress:email=email_address
             updateName
-                name.nameDisplay
-                name.namePrefix
-                name.nameFirst
-                name.nameMiddle
-                name.nameLast
-                name.nameSuffix
-                name.nameCredential
+                nameDisplay
+                namePrefix
+                nameFirst
+                nameMiddle
+                nameLast
+                nameSuffix
+                nameCredential
             updateProfession
-                isHcp
+                isHcp:bool
                 hcpNpi
                 previousProfessionCategory
                 currentProfessionCategory
@@ -394,6 +502,12 @@ ADMIN
         SUB
             dashboard
             payment_schedule
+                id=pro_rate.pro_id=>/pro_rates/view/UID
+                add_new:pro_rate
+                    proUid:hidden=uid
+                    asHcpOrAlly:select:HCP,ALLY
+                    code
+                    amount:number
             teams
             clients
             pro_access
@@ -408,12 +522,7 @@ ADMIN
             pro_transactions
             sessions
             audit_log
-    pro_rates|pro_rate|add|view
-    pro_rates/add_new:create
-        proUid:record:pro:uid,name_display
-        asHcpOrAlly:select:HCP,ALLY
-        code
-        amount:number
+    pro_rates|pro_rate|view
     pro_rates/view/{uid}
         ACTIONS
             updateAmount

File diff suppressed because it is too large
+ 446 - 407
package-lock.json


+ 31 - 4
package.json

@@ -1,21 +1,48 @@
 {
     "private": true,
+    "sideEffects": true,
     "scripts": {
         "dev": "npm run development",
         "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
         "watch": "npm run development -- --watch",
         "watch-poll": "npm run watch -- --watch-poll",
-        "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --disable-host-check --config=node_modules/laravel-mix/setup/webpack.config.js",
+        "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
         "prod": "npm run production",
         "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
     },
     "devDependencies": {
+        "@babel/plugin-syntax-dynamic-import": "^7.8.3",
+        "@babel/preset-env": "^7.9.5",
         "axios": "^0.19",
+        "bootstrap": "^4.0.0",
         "cross-env": "^7.0",
-        "laravel-mix": "^5.0.1",
+        "css-loader": "^3.5.3",
+        "eslint": "^6.8.0",
+        "eslint-plugin-vue": "^7.0.0-alpha.1",
+        "glob-all": "^3.2.1",
+        "imagemin-svgo": "^8.0.0",
+        "jquery": "^3.2",
+        "laravel-mix": "^5.0.4",
+        "laravel-mix-bundle-analyzer": "^1.0.5",
+        "laravel-mix-purgecss": "^5.0.0-rc.2",
+        "laravel-mix-vue-svgicon": "^2.0.4",
         "lodash": "^4.17.13",
+        "node-sass": "^4.14",
+        "popper.js": "^1.12",
+        "purgecss-webpack-plugin": "^1.6.0",
+        "purgecss-whitelister": "^2.4.0",
+        "raw-loader": "^4.0.1",
         "resolve-url-loader": "^3.1.0",
-        "sass": "^1.15.2",
-        "sass-loader": "^8.0.0"
+        "sass": "^1.26.3",
+        "sass-loader": "^8.0.2",
+        "vue": "^2.5.17",
+        "vue-template-compiler": "^2.6.10"
+    },
+    "dependencies": {
+        "@opentok/client": "^2.17.1",
+        "vue-grid-layout": "^2.3.7",
+        "vue-socket.io": "3.0.3",
+        "vuetify": "^2.2.23",
+        "vuex": "^3.2.0"
     }
 }

+ 49 - 1
resources/js/app.js

@@ -1 +1,49 @@
-require('./bootstrap');
+/* jQuery & Bootstrap Init */
+
+import jQuery from 'jquery'
+
+window.$ = window.jQuery = jQuery;
+
+/* Fix */
+
+import './fix.scss'
+
+let location = window.location;
+let pathname = location.pathname;
+
+window.axios = require('axios')
+window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'
+
+window.OT = require("@opentok/client")
+
+import Vue from 'vue'
+window.Vue = Vue
+Vue.prototype.$eventBus = new Vue()
+
+import Vuetify from 'vuetify'
+Vue.use(Vuetify)
+
+import store from './components/vuex/index'
+
+const files = require.context('./', true, /\.vue$/i, 'lazy').keys()
+
+files.forEach(file => {
+    let component = file.split('/').pop().split('.')[0]
+    Vue.component(component, () => import(`${file}`))
+})
+
+import VueSocketIO from "vue-socket.io"
+import SocketIO from "socket.io-client"
+
+Vue.use(
+    new VueSocketIO({
+        debug: false,
+        connection: SocketIO(process.env.MIX_SOCKET_SERVICE_URL)
+    })
+)
+
+let app = new Vue({
+    el: '#app',
+    store,
+    vuetify: new Vuetify()
+})

+ 139 - 0
resources/js/components/vuex/index.js

@@ -0,0 +1,139 @@
+import Vue from 'vue'
+import Vuex from 'vuex'
+
+Vue.use(Vuex)
+
+export default () => new Vuex.Store({
+    modules: {
+        //
+    },
+    state: {
+        user: {
+            id: null,
+            UID: null,
+            name: 'Guest',
+            type: 'guest',
+            pin: null,
+            avatarFile: null,
+            is_active_and_visible: true,
+            isAdmin: false
+        },
+        session: {
+            screenSharingAvailable: false,
+            sessionConnected: false,
+            screenSharingActive: false
+        },
+        active_menu_item: {
+            name: 'Lobbies',
+            class: 'mdi mdi-view-dashboard',
+            template: 'lobby-list'
+        },
+        meeting: {
+            id: "",
+            name: "",
+            passwordRequired: false,
+            lobby: null,
+            active_members: 0,
+            scheduledDate: null,
+            startedAt: null
+        },
+        lobbies: [],
+        chat_user_notification: false
+    },
+    mutations: {
+        setUsername: (state, data) => {
+            state.user.name = data
+        },
+        setUsertype: (state, data) => {
+            state.user.type = data
+        },
+        setInitialUser(state, data) {
+            state.user = data
+        },
+        setUser(state, data) {
+            state.user = data
+        },
+        setUserAvatarFile(state, data) {
+            state.user.avatarFile = data
+        },
+        setUserActivityState: (state, data) => {
+            state.user.is_active_and_visible = data
+        },
+        setScreenShareState: (state, data) => {
+            state.session.screenSharingActive = data
+        },
+        setMenuItem: (state, data) => {
+            state.active_menu_item = data
+        },
+        setLobbies(state, data) {
+            state.lobbies = data
+        },
+        addNewLobby(state, data) {
+            state.lobbies.push(data)
+        },
+        setSingleLobby(state, data) {
+            let lobby = state.lobbies.findIndex((cur) => cur.id == data.id)
+
+            if (lobby !== -1) {
+                state.lobbies[lobby].meetings = data.meetings.map(m => {
+                    m.active_members = []
+                    m.associates_online = []
+                    return m
+                });
+            }
+        },
+        setLobbyActivity(state, data) {
+            let lobby = state.lobbies.filter((cur) => cur.id == data.lobbyID)
+            if (lobby.length) {
+                let meeting = lobby[0].meetings.filter((cur) => cur.id == data.meetingID)
+                if (meeting.length) {
+                    meeting[0].active_members = data.active_members
+                    meeting[0].associates_online = data.associates_online
+
+                    if (state.meeting.id && state.meeting.id == meeting[0].id) {
+                        state.meeting.active_members = data.active_members
+                    }
+                }
+            }
+
+        },
+        setNewMeetingInLobby(state, data) {
+            let lobby = state.lobbies.filter((cur) => cur.id == parseInt(data.lobby.id))
+
+            if (lobby.length) {
+                data.finalDate = new Date(data.scheduled_date ? data.scheduled_date : data.created_at)
+                lobby[0].meetings.push(data)
+                lobby[0].meetings.sort((a, b) => {
+                    return a.finalDate - b.finalDate
+                })
+            }
+        },
+        setMeeting(state, data) {
+            state.meeting = data
+        },
+        setScreesharingAvailability(state, data) {
+            state.session.screenSharingAvailable = data
+        },
+        setSessionConnectivityState(state, data) {
+            state.session.sessionConnected = data
+        },
+        setChatUserNotification(state, data) {
+            state.chat_user_notification = data
+        }
+    },
+    actions: {
+        leaveMeeting(store) {
+            let meeting = {
+                id: '',
+                name: '',
+                passwordRequired: false,
+                lobby: null,
+                active_members: 0,
+                scheduledDate: null,
+                startedAt: null
+            }
+
+            store.commit('setMeeting', meeting)
+        }
+    }
+})

+ 0 - 0
resources/js/fix.scss


+ 3 - 0
resources/sass/app.scss

@@ -1 +1,4 @@
 //
+body {
+    
+}

+ 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>
 

+ 10 - 9
resources/views/admin/pros/add_new.blade.php

@@ -33,35 +33,36 @@
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Name Display</label>
-<input class='form-control' type='text' name='name.nameDisplay' value='{{ old('name.nameDisplay') ? old('name.nameDisplay') : '' }}' >
+<input class='form-control' type='text' name='nameDisplay' value='{{ old('nameDisplay') ? old('nameDisplay') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Name Prefix</label>
-<input class='form-control' type='text' name='name.namePrefix' value='{{ old('name.namePrefix') ? old('name.namePrefix') : '' }}' >
+<input class='form-control' type='text' name='namePrefix' value='{{ old('namePrefix') ? old('namePrefix') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Name First</label>
-<input class='form-control' type='text' name='name.nameFirst' value='{{ old('name.nameFirst') ? old('name.nameFirst') : '' }}' >
+<input class='form-control' type='text' name='nameFirst' value='{{ old('nameFirst') ? old('nameFirst') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Name Middle</label>
-<input class='form-control' type='text' name='name.nameMiddle' value='{{ old('name.nameMiddle') ? old('name.nameMiddle') : '' }}' >
+<input class='form-control' type='text' name='nameMiddle' value='{{ old('nameMiddle') ? old('nameMiddle') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Name Last</label>
-<input class='form-control' type='text' name='name.nameLast' value='{{ old('name.nameLast') ? old('name.nameLast') : '' }}' >
+<input class='form-control' type='text' name='nameLast' value='{{ old('nameLast') ? old('nameLast') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Name Suffix</label>
-<input class='form-control' type='text' name='name.nameSuffix' value='{{ old('name.nameSuffix') ? old('name.nameSuffix') : '' }}' >
+<input class='form-control' type='text' name='nameSuffix' value='{{ old('nameSuffix') ? old('nameSuffix') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Name Credential</label>
-<input class='form-control' type='text' name='name.nameCredential' value='{{ old('name.nameCredential') ? old('name.nameCredential') : '' }}' >
+<input class='form-control' type='text' name='nameCredential' value='{{ old('nameCredential') ? old('nameCredential') : '' }}' >
 </div>
 <div class='form-group mb-3'>
-<label class='control-label'>Is Hcp</label>
-<input class='form-control' type='text' name='isHcp' value='{{ old('isHcp') ? old('isHcp') : '' }}' >
+<label class='control-label'>Is Hcp 
+<input class='form-control' type='checkbox' name='isHcp'>
+</label>
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Hcp Npi</label>

+ 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

+ 7 - 7
resources/views/admin/pros_SINGLE/ACTION_updateName.blade.php

@@ -20,31 +20,31 @@
         <input type="hidden" name="_return" value="{{route('pros_SINGLE-ACTION_updateName', ['uid' => $record->uid])}}">
         <div class='form-group mb-3'>
 <label class='control-label'>Name Display</label>
-<input class='form-control' type='text' name='name.nameDisplay' value='{{ old('name.nameDisplay') ? old('name.nameDisplay') : '' }}' >
+<input class='form-control' type='text' name='nameDisplay' value='{{ old('nameDisplay') ? old('nameDisplay') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Name Prefix</label>
-<input class='form-control' type='text' name='name.namePrefix' value='{{ old('name.namePrefix') ? old('name.namePrefix') : '' }}' >
+<input class='form-control' type='text' name='namePrefix' value='{{ old('namePrefix') ? old('namePrefix') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Name First</label>
-<input class='form-control' type='text' name='name.nameFirst' value='{{ old('name.nameFirst') ? old('name.nameFirst') : '' }}' >
+<input class='form-control' type='text' name='nameFirst' value='{{ old('nameFirst') ? old('nameFirst') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Name Middle</label>
-<input class='form-control' type='text' name='name.nameMiddle' value='{{ old('name.nameMiddle') ? old('name.nameMiddle') : '' }}' >
+<input class='form-control' type='text' name='nameMiddle' value='{{ old('nameMiddle') ? old('nameMiddle') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Name Last</label>
-<input class='form-control' type='text' name='name.nameLast' value='{{ old('name.nameLast') ? old('name.nameLast') : '' }}' >
+<input class='form-control' type='text' name='nameLast' value='{{ old('nameLast') ? old('nameLast') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Name Suffix</label>
-<input class='form-control' type='text' name='name.nameSuffix' value='{{ old('name.nameSuffix') ? old('name.nameSuffix') : '' }}' >
+<input class='form-control' type='text' name='nameSuffix' value='{{ old('nameSuffix') ? old('nameSuffix') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Name Credential</label>
-<input class='form-control' type='text' name='name.nameCredential' value='{{ old('name.nameCredential') ? old('name.nameCredential') : '' }}' >
+<input class='form-control' type='text' name='nameCredential' value='{{ old('nameCredential') ? old('nameCredential') : '' }}' >
 </div>
         <div class="form-group mb-3">
             <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>

+ 3 - 2
resources/views/admin/pros_SINGLE/ACTION_updateProfession.blade.php

@@ -19,8 +19,9 @@
         <input type="hidden" name="_success" value="{{route('pros-view', ['uid' => $record->uid])}}">
         <input type="hidden" name="_return" value="{{route('pros_SINGLE-ACTION_updateProfession', ['uid' => $record->uid])}}">
         <div class='form-group mb-3'>
-<label class='control-label'>Is Hcp</label>
-<input class='form-control' type='text' name='isHcp' value='{{ old('isHcp') ? old('isHcp') : '' }}' >
+<label class='control-label'>Is Hcp 
+<input class='form-control' type='checkbox' name='isHcp'>
+</label>
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Hcp Npi</label>

+ 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><a href="/pro_rates/view/{{ $subRecord->uid }}"><?= $subRecord->uid ?></a></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

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

@@ -1,11 +1,15 @@
+<li class='nav-item'><a href='/my_payment_schedule' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'my_payment_schedule') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-user'></i><p>My Payment Schedule</p></a></li>
 <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>

+ 3 - 2
resources/views/pro/care_month_entries_SINGLE/ACTION_updateTiming.blade.php

@@ -27,8 +27,9 @@
 <input class='form-control' type='text' 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') : '' }}' >
+<label class='control-label'>Is Time Specific 
+<input class='form-control' type='checkbox' name='isTimeSpecific'>
+</label>
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Starting Time</label>

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

@@ -1,2 +1,19 @@
+<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>

+ 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

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

@@ -0,0 +1,67 @@
+@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/createForCm">
+        <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 
+<input class='form-control' type='checkbox' name='isTimeSpecific'>
+</label>
+</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

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

@@ -0,0 +1,67 @@
+@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/createForRm">
+        <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 
+<input class='form-control' type='checkbox' name='isTimeSpecific'>
+</label>
+</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

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