Ver código fonte

Generate from tree - WIP + routes saving

Vijayakrishnan 5 anos atrás
pai
commit
5fa37eefdc

+ 6 - 0
.idea/inspectionProfiles/Project_Default.xml

@@ -0,0 +1,6 @@
+<component name="InspectionProjectProfileManager">
+  <profile version="1.0">
+    <option name="myName" value="Project Default" />
+    <inspection_tool class="PhpMultipleClassesDeclarationsInOneFile" enabled="false" level="WARNING" enabled_by_default="false" />
+  </profile>
+</component>

+ 222 - 0
app/Console/Commands/GenerateTreeCommand.php

@@ -0,0 +1,222 @@
+<?php
+
+namespace App\Console\Commands;
+
+use Illuminate\Console\Command;
+
+class GenerateTreeCommand extends Command
+{
+
+    private $routesFile = null;
+
+    /**
+     * The name and signature of the console command.
+     *
+     * @var string
+     */
+    protected $signature = 'generatetree
+                            {path: /path/to/tree.txt}';
+
+    /**
+     * Execute the console command.
+     *
+     * @return mixed
+     */
+    public function handle()
+    {
+
+        $lines = ['<?php', '', 'use Illuminate\Support\Facades\Route;', '', ''];
+        file_put_contents(base_path("routes/generated.php"), implode("\n", $lines));
+
+        global $argv;
+        $file = fopen($argv[2], "r");
+        $lines = [];
+        while (!feof($file)) {
+            $line = rtrim(fgets($file));
+            if(trim($line) !== '') {
+                $lines[] = $line;
+            }
+        }
+
+        fclose($file);
+
+        $currentRoot = "";
+        $currentController = new GenController();
+        $currentSubController = new GenController();
+        $currentSubType = "";
+        $currentView = "";
+
+        foreach ($lines as $line) {
+            $lineType = null;
+
+            // no leading space - root specifier
+            if($line[0] !== ' ') {
+                $currentRoot = trim($line);
+            }
+            else {
+
+                $ls = $this->numLS($line);
+                $line = trim($line);
+
+                switch($ls) {
+
+                    case 4: // top level controller OR top level controller action
+
+                        // top level controller-action
+                        if(strpos($line, "/") !== FALSE) {
+                            if(!empty($currentController)) {
+                                $method = explode("/", $line)[1];
+                                $newMethod = $currentController->addMethod($method, "/" . $line);
+                                // create _SINGLE_ controller if view
+                                if($method === "view") {
+                                    $currentSubController = new GenController($currentRoot, $currentController->name . "_SINGLE");
+                                    $currentSubController->parentRoute = "/" . $line;
+                                    $newMethod->redirect = "/" . $line . "/SUB_dashboard";
+                                }
+                            }
+                        }
+                        // new top level controller
+                        else if(empty($currentController) || $line !== $currentController->name) {
+                            if(!empty($currentController)) {
+                                $currentController->save();
+                            }
+                            $currentController = new GenController($currentRoot, $line);
+                            $currentController->addMethod("index", "/$line");
+                            if(!empty($currentSubController)) {
+                                $currentSubController->save();
+                            }
+                            $currentSubType = '';
+                            $currentSubController = new GenController();
+                        }
+                        break;
+
+                    case 8: // sub-type declaration
+
+                        $currentSubType = $line;
+                        break;
+
+                    case 12: // subs and actions
+
+                        if($currentSubType === 'ACTIONS') {
+                            $currentSubController->addMethod(
+                                "ACTION_" . $line,
+                                "/ACTION_" . $line
+                            );
+                        }
+                        else if($currentSubType === 'SUB') {
+                            $currentSubController->addMethod(
+                                "SUB_" . $line,
+                                "/SUB_" . $line
+                            );
+                        }
+                        break;
+
+                }
+
+
+            }
+        }
+
+        // do any pending saves
+        if(!empty($currentSubController)) {
+            $currentSubController->save();
+        }
+        if(!empty($currentController)) {
+            $currentController->save();
+        }
+
+    }
+
+    private function numLS($line) {
+        $count = 0;
+        for ($i=0; $i<strlen($line); $i++) {
+            if($line[$i] !== ' ') break;
+            $count++;
+        }
+        return $count;
+    }
+
+    private function initRoutesFile() {
+
+    }
+
+}
+
+class GenController {
+    public $root;
+    public $saved = false;
+    public $name;
+    public $methods;
+    public $parentRoute = "";
+    public function __construct($root = null, $name = null)
+    {
+        $this->root = $root;
+        $this->name = $name;
+        $this->methods = [];
+    }
+    public function addMethod($method, $route) {
+        if($this->parentRoute) {
+            $route = $this->parentRoute . $route;
+        }
+        $method = new GenControllerMethod($method, $route);
+        $this->methods[] = $method;
+        return $method;
+    }
+    public function save() {
+        if(!$this->saved && !empty($this->root) && !empty($this->name)) {
+            // todo: save controller
+            // todo: save views
+
+
+            // save routes
+            $lines = ["// --- {$this->root}: {$this->name} --- //"];
+            foreach ($this->methods as $method) {
+                // FORMAT:
+                // Route::get('/foo/bar/{uid}', 'FooController@bar')->name('foo-action');
+                $lines[] = "Route::get('{$method->route}', '{$this->name}_Controller@{$method->name}')->name('{$this->name}-{$method->name}');";
+            }
+            $lines[] = '';
+            $lines[] = '';
+            file_put_contents(base_path("routes/generated.php"), implode("\n", $lines), FILE_APPEND);
+            // echo "Saved " . base_path("routes/generated.php") . "\n";
+
+            $this->saved = true;
+//            $this->log();
+        }
+    }
+    public function log() {
+        $this->w('');
+        $this->w("Controller: app/Http/Controllers/{$this->name}_Controller");
+        $this->w('---------------------------------------------');
+        foreach ($this->methods as $method) {
+            $this->w('Rout: ' . $method->route, 1);
+            $this->w('Meth: ' . $method->name . '($request' . ($method->hasUID ? ', $uid' : '') . ')', 1);
+            if(!$method->redirect) {
+                $this->w('View: ' . resource_path("views/{$this->root}/{$this->name}/{$method->name}.blade.php"), 1);
+            }
+            else {
+                $this->w('Redi: ' . $method->redirect, 1);
+            }
+            $this->w('---------------------------------------------');
+        }
+    }
+    public function w($line, $level = -1) {
+        for($i=0; $i<$level; $i++) echo "\t";
+        echo "$line\n";
+    }
+}
+
+class GenControllerMethod {
+    public $name;
+    public $route;
+    public $hasUID = false;
+    public $redirect = false;
+    public function __construct($name, $route)
+    {
+        $this->name = $name;
+        $this->route = $route;
+        if(strpos($this->route, ":uid") !== FALSE) {
+            $this->hasUID = true;
+        }
+    }
+}

+ 1 - 0
app/Console/Kernel.php

@@ -17,6 +17,7 @@ class Kernel extends ConsoleKernel
         Commands\GenerateCCommand::class,
         Commands\GenerateCVCommand::class,
         Commands\GenerateVCommand::class,
+        Commands\GenerateTreeCommand::class,
     ];
 
     /**

+ 31 - 31
generatecv/tree.txt

@@ -1,19 +1,19 @@
-PRO:
+PRO
     dashboard
     my_payment_schedule
     my_teams
     my_teams/add_new
-    view/:uid
-        ACTIONS:
+    my_teams/view/{uid}
+        ACTIONS
             updateTeamNumber
-        SUB:
+        SUB
             dashboard
             clients
             audit_log
     my_clients
     my_clients/add_new
-    my_clients/view/:uid
-        ACTIONS:
+    my_clients/view/{uid}
+        ACTIONS
             sendCellNumberConfirmationMessage
             confirmCellNumberWithConfirmationToken
             putNewCellNumber
@@ -52,7 +52,7 @@ PRO:
             updateDeactivationMemo
             reactivate
             updateReactivationMemo
-        SUB:
+        SUB
             dashboard
             med_profile
             med_profile_log
@@ -72,35 +72,35 @@ PRO:
             ally_updates
             audit_log
     notes
-    notes/view/:uid
-        ACTIONS:
-        SUB:
+    notes/view/{uid}
+        ACTIONS
+        SUB
             dashboard
             audit_log
     erx
-    erx/view/:uid
-        ACTIONS:
-        SUB:
+    erx/view/{uid}
+        ACTIONS
+        SUB
             dashboard
             audit_log
     action_items
-    action_items/view/:uid
-            ACTIONS:
-            SUB:
-                dashboard
-                audit_log
+    action_items/view/{uid}
+        ACTIONS
+        SUB
+            dashboard
+            audit_log
     care_months
-    care_months/view/:uid
-        ACTIONS:
-        SUB:
+    care_months/view/{uid}
+        ACTIONS
+        SUB
             dashboard
             time_entries
             audit_log
     care_month_entries
     bills
-    bills/view/:uid
-        ACTIONS:
-        SUB:
+    bills/view/{uid}
+        ACTIONS
+        SUB
             dashboard
             transactions
             audit_log
@@ -112,21 +112,21 @@ PRO:
     ally_updates
     audit_log
 
-ADMIN:
+ADMIN
     admin_dashboard
     facilities
     facilities/add_new
-    facilities/view/:uid
-	    ACTIONS:
-        SUB:
+    facilities/view/{uid}
+	    ACTIONS
+        SUB
             dashboard
             erx
             action_items
             audit_log
     pros
     pros/add_new
-    pros/view/:uid
-        ACTIONS:
+    pros/view/{uid}
+        ACTIONS
             sendCellNumberConfirmationMessage
             confirmCellNumberWithConfirmationToken
             putNewCellNumber
@@ -142,7 +142,7 @@ ADMIN:
             uploadDriverLicense
             updateDriverLicenseInfo
             updateSsn
-        SUB:
+        SUB
             dashboard
             payment_schedule
             teams

+ 202 - 0
routes/generated.php

@@ -0,0 +1,202 @@
+<?php
+
+use Illuminate\Support\Facades\Route;
+
+// --- PRO: dashboard --- //
+Route::get('/dashboard', 'dashboard_Controller@index')->name('dashboard-index');
+
+// --- PRO: my_payment_schedule --- //
+Route::get('/my_payment_schedule', 'my_payment_schedule_Controller@index')->name('my_payment_schedule-index');
+
+// --- PRO: my_teams --- //
+Route::get('/my_teams', 'my_teams_Controller@index')->name('my_teams-index');
+Route::get('/my_teams/add_new', 'my_teams_Controller@add_new')->name('my_teams-add_new');
+Route::get('/my_teams/view/{uid}', 'my_teams_Controller@view')->name('my_teams-view');
+
+// --- PRO: my_teams_SINGLE --- //
+Route::get('/my_teams/view/{uid}/ACTION_updateTeamNumber', 'my_teams_SINGLE_Controller@ACTION_updateTeamNumber')->name('my_teams_SINGLE-ACTION_updateTeamNumber');
+Route::get('/my_teams/view/{uid}/SUB_dashboard', 'my_teams_SINGLE_Controller@SUB_dashboard')->name('my_teams_SINGLE-SUB_dashboard');
+Route::get('/my_teams/view/{uid}/SUB_clients', 'my_teams_SINGLE_Controller@SUB_clients')->name('my_teams_SINGLE-SUB_clients');
+Route::get('/my_teams/view/{uid}/SUB_audit_log', 'my_teams_SINGLE_Controller@SUB_audit_log')->name('my_teams_SINGLE-SUB_audit_log');
+
+// --- PRO: my_clients --- //
+Route::get('/my_clients', 'my_clients_Controller@index')->name('my_clients-index');
+Route::get('/my_clients/add_new', 'my_clients_Controller@add_new')->name('my_clients-add_new');
+Route::get('/my_clients/view/{uid}', 'my_clients_Controller@view')->name('my_clients-view');
+
+// --- PRO: my_clients_SINGLE --- //
+Route::get('/my_clients/view/{uid}/ACTION_sendCellNumberConfirmationMessage', 'my_clients_SINGLE_Controller@ACTION_sendCellNumberConfirmationMessage')->name('my_clients_SINGLE-ACTION_sendCellNumberConfirmationMessage');
+Route::get('/my_clients/view/{uid}/ACTION_confirmCellNumberWithConfirmationToken', 'my_clients_SINGLE_Controller@ACTION_confirmCellNumberWithConfirmationToken')->name('my_clients_SINGLE-ACTION_confirmCellNumberWithConfirmationToken');
+Route::get('/my_clients/view/{uid}/ACTION_putNewCellNumber', 'my_clients_SINGLE_Controller@ACTION_putNewCellNumber')->name('my_clients_SINGLE-ACTION_putNewCellNumber');
+Route::get('/my_clients/view/{uid}/ACTION_sendEmailAddressConfirmationMessage', 'my_clients_SINGLE_Controller@ACTION_sendEmailAddressConfirmationMessage')->name('my_clients_SINGLE-ACTION_sendEmailAddressConfirmationMessage');
+Route::get('/my_clients/view/{uid}/ACTION_confirmEmailAddressWithConfirmationToken', 'my_clients_SINGLE_Controller@ACTION_confirmEmailAddressWithConfirmationToken')->name('my_clients_SINGLE-ACTION_confirmEmailAddressWithConfirmationToken');
+Route::get('/my_clients/view/{uid}/ACTION_putNewEmailAddress', 'my_clients_SINGLE_Controller@ACTION_putNewEmailAddress')->name('my_clients_SINGLE-ACTION_putNewEmailAddress');
+Route::get('/my_clients/view/{uid}/ACTION_putTeam', 'my_clients_SINGLE_Controller@ACTION_putTeam')->name('my_clients_SINGLE-ACTION_putTeam');
+Route::get('/my_clients/view/{uid}/ACTION_removeTeam', 'my_clients_SINGLE_Controller@ACTION_removeTeam')->name('my_clients_SINGLE-ACTION_removeTeam');
+Route::get('/my_clients/view/{uid}/ACTION_putMcp', 'my_clients_SINGLE_Controller@ACTION_putMcp')->name('my_clients_SINGLE-ACTION_putMcp');
+Route::get('/my_clients/view/{uid}/ACTION_removeMcp', 'my_clients_SINGLE_Controller@ACTION_removeMcp')->name('my_clients_SINGLE-ACTION_removeMcp');
+Route::get('/my_clients/view/{uid}/ACTION_putAlly', 'my_clients_SINGLE_Controller@ACTION_putAlly')->name('my_clients_SINGLE-ACTION_putAlly');
+Route::get('/my_clients/view/{uid}/ACTION_removeAlly', 'my_clients_SINGLE_Controller@ACTION_removeAlly')->name('my_clients_SINGLE-ACTION_removeAlly');
+Route::get('/my_clients/view/{uid}/ACTION_putName', 'my_clients_SINGLE_Controller@ACTION_putName')->name('my_clients_SINGLE-ACTION_putName');
+Route::get('/my_clients/view/{uid}/ACTION_putGender', 'my_clients_SINGLE_Controller@ACTION_putGender')->name('my_clients_SINGLE-ACTION_putGender');
+Route::get('/my_clients/view/{uid}/ACTION_putDateOfBirth', 'my_clients_SINGLE_Controller@ACTION_putDateOfBirth')->name('my_clients_SINGLE-ACTION_putDateOfBirth');
+Route::get('/my_clients/view/{uid}/ACTION_putProfilePicture', 'my_clients_SINGLE_Controller@ACTION_putProfilePicture')->name('my_clients_SINGLE-ACTION_putProfilePicture');
+Route::get('/my_clients/view/{uid}/ACTION_removeProfilePicture', 'my_clients_SINGLE_Controller@ACTION_removeProfilePicture')->name('my_clients_SINGLE-ACTION_removeProfilePicture');
+Route::get('/my_clients/view/{uid}/ACTION_updatePhoneInfo', 'my_clients_SINGLE_Controller@ACTION_updatePhoneInfo')->name('my_clients_SINGLE-ACTION_updatePhoneInfo');
+Route::get('/my_clients/view/{uid}/ACTION_updateAddress', 'my_clients_SINGLE_Controller@ACTION_updateAddress')->name('my_clients_SINGLE-ACTION_updateAddress');
+Route::get('/my_clients/view/{uid}/ACTION_updateMedicareNumber', 'my_clients_SINGLE_Controller@ACTION_updateMedicareNumber')->name('my_clients_SINGLE-ACTION_updateMedicareNumber');
+Route::get('/my_clients/view/{uid}/ACTION_manuallySetIsPartBPrimaryConfirmedToTrue', 'my_clients_SINGLE_Controller@ACTION_manuallySetIsPartBPrimaryConfirmedToTrue')->name('my_clients_SINGLE-ACTION_manuallySetIsPartBPrimaryConfirmedToTrue');
+Route::get('/my_clients/view/{uid}/ACTION_manuallySetIsPartBPrimaryConfirmedToFalse', 'my_clients_SINGLE_Controller@ACTION_manuallySetIsPartBPrimaryConfirmedToFalse')->name('my_clients_SINGLE-ACTION_manuallySetIsPartBPrimaryConfirmedToFalse');
+Route::get('/my_clients/view/{uid}/ACTION_setHasMcpDoneEmVisitToTrue', 'my_clients_SINGLE_Controller@ACTION_setHasMcpDoneEmVisitToTrue')->name('my_clients_SINGLE-ACTION_setHasMcpDoneEmVisitToTrue');
+Route::get('/my_clients/view/{uid}/ACTION_updateMcpEmVisitInfo', 'my_clients_SINGLE_Controller@ACTION_updateMcpEmVisitInfo')->name('my_clients_SINGLE-ACTION_updateMcpEmVisitInfo');
+Route::get('/my_clients/view/{uid}/ACTION_setHasMcpDoneEmVisitToFalse', 'my_clients_SINGLE_Controller@ACTION_setHasMcpDoneEmVisitToFalse')->name('my_clients_SINGLE-ACTION_setHasMcpDoneEmVisitToFalse');
+Route::get('/my_clients/view/{uid}/ACTION_putCrmReasons', 'my_clients_SINGLE_Controller@ACTION_putCrmReasons')->name('my_clients_SINGLE-ACTION_putCrmReasons');
+Route::get('/my_clients/view/{uid}/ACTION_removeCrmReasons', 'my_clients_SINGLE_Controller@ACTION_removeCrmReasons')->name('my_clients_SINGLE-ACTION_removeCrmReasons');
+Route::get('/my_clients/view/{uid}/ACTION_setIsClientEnrolledInCmToTrue', 'my_clients_SINGLE_Controller@ACTION_setIsClientEnrolledInCmToTrue')->name('my_clients_SINGLE-ACTION_setIsClientEnrolledInCmToTrue');
+Route::get('/my_clients/view/{uid}/ACTION_setIsClientEnrolledInCmToFalse', 'my_clients_SINGLE_Controller@ACTION_setIsClientEnrolledInCmToFalse')->name('my_clients_SINGLE-ACTION_setIsClientEnrolledInCmToFalse');
+Route::get('/my_clients/view/{uid}/ACTION_updateWhyNotEnrolledInCm', 'my_clients_SINGLE_Controller@ACTION_updateWhyNotEnrolledInCm')->name('my_clients_SINGLE-ACTION_updateWhyNotEnrolledInCm');
+Route::get('/my_clients/view/{uid}/ACTION_setIsClientEnrolledInRmToTrue', 'my_clients_SINGLE_Controller@ACTION_setIsClientEnrolledInRmToTrue')->name('my_clients_SINGLE-ACTION_setIsClientEnrolledInRmToTrue');
+Route::get('/my_clients/view/{uid}/ACTION_setIsClientEnrolledInRmToFalse', 'my_clients_SINGLE_Controller@ACTION_setIsClientEnrolledInRmToFalse')->name('my_clients_SINGLE-ACTION_setIsClientEnrolledInRmToFalse');
+Route::get('/my_clients/view/{uid}/ACTION_updateWhyNotEnrolledInRm', 'my_clients_SINGLE_Controller@ACTION_updateWhyNotEnrolledInRm')->name('my_clients_SINGLE-ACTION_updateWhyNotEnrolledInRm');
+Route::get('/my_clients/view/{uid}/ACTION_updateIntakeInfo', 'my_clients_SINGLE_Controller@ACTION_updateIntakeInfo')->name('my_clients_SINGLE-ACTION_updateIntakeInfo');
+Route::get('/my_clients/view/{uid}/ACTION_deactivate', 'my_clients_SINGLE_Controller@ACTION_deactivate')->name('my_clients_SINGLE-ACTION_deactivate');
+Route::get('/my_clients/view/{uid}/ACTION_updateDeactivationMemo', 'my_clients_SINGLE_Controller@ACTION_updateDeactivationMemo')->name('my_clients_SINGLE-ACTION_updateDeactivationMemo');
+Route::get('/my_clients/view/{uid}/ACTION_reactivate', 'my_clients_SINGLE_Controller@ACTION_reactivate')->name('my_clients_SINGLE-ACTION_reactivate');
+Route::get('/my_clients/view/{uid}/ACTION_updateReactivationMemo', 'my_clients_SINGLE_Controller@ACTION_updateReactivationMemo')->name('my_clients_SINGLE-ACTION_updateReactivationMemo');
+Route::get('/my_clients/view/{uid}/SUB_dashboard', 'my_clients_SINGLE_Controller@SUB_dashboard')->name('my_clients_SINGLE-SUB_dashboard');
+Route::get('/my_clients/view/{uid}/SUB_med_profile', 'my_clients_SINGLE_Controller@SUB_med_profile')->name('my_clients_SINGLE-SUB_med_profile');
+Route::get('/my_clients/view/{uid}/SUB_med_profile_log', 'my_clients_SINGLE_Controller@SUB_med_profile_log')->name('my_clients_SINGLE-SUB_med_profile_log');
+Route::get('/my_clients/view/{uid}/SUB_pro_access', 'my_clients_SINGLE_Controller@SUB_pro_access')->name('my_clients_SINGLE-SUB_pro_access');
+Route::get('/my_clients/view/{uid}/SUB_notes', 'my_clients_SINGLE_Controller@SUB_notes')->name('my_clients_SINGLE-SUB_notes');
+Route::get('/my_clients/view/{uid}/SUB_notes/add_new', 'my_clients_SINGLE_Controller@SUB_notes/add_new')->name('my_clients_SINGLE-SUB_notes/add_new');
+Route::get('/my_clients/view/{uid}/SUB_care_months', 'my_clients_SINGLE_Controller@SUB_care_months')->name('my_clients_SINGLE-SUB_care_months');
+Route::get('/my_clients/view/{uid}/SUB_care_months/add_new', 'my_clients_SINGLE_Controller@SUB_care_months/add_new')->name('my_clients_SINGLE-SUB_care_months/add_new');
+Route::get('/my_clients/view/{uid}/SUB_care_month_entries', 'my_clients_SINGLE_Controller@SUB_care_month_entries')->name('my_clients_SINGLE-SUB_care_month_entries');
+Route::get('/my_clients/view/{uid}/SUB_bills', 'my_clients_SINGLE_Controller@SUB_bills')->name('my_clients_SINGLE-SUB_bills');
+Route::get('/my_clients/view/{uid}/SUB_related_transactions', 'my_clients_SINGLE_Controller@SUB_related_transactions')->name('my_clients_SINGLE-SUB_related_transactions');
+Route::get('/my_clients/view/{uid}/SUB_action_items', 'my_clients_SINGLE_Controller@SUB_action_items')->name('my_clients_SINGLE-SUB_action_items');
+Route::get('/my_clients/view/{uid}/SUB_action_items/add_new', 'my_clients_SINGLE_Controller@SUB_action_items/add_new')->name('my_clients_SINGLE-SUB_action_items/add_new');
+Route::get('/my_clients/view/{uid}/SUB_erx', 'my_clients_SINGLE_Controller@SUB_erx')->name('my_clients_SINGLE-SUB_erx');
+Route::get('/my_clients/view/{uid}/SUB_erx/add_new', 'my_clients_SINGLE_Controller@SUB_erx/add_new')->name('my_clients_SINGLE-SUB_erx/add_new');
+Route::get('/my_clients/view/{uid}/SUB_mcp_updates', 'my_clients_SINGLE_Controller@SUB_mcp_updates')->name('my_clients_SINGLE-SUB_mcp_updates');
+Route::get('/my_clients/view/{uid}/SUB_ally_updates', 'my_clients_SINGLE_Controller@SUB_ally_updates')->name('my_clients_SINGLE-SUB_ally_updates');
+Route::get('/my_clients/view/{uid}/SUB_audit_log', 'my_clients_SINGLE_Controller@SUB_audit_log')->name('my_clients_SINGLE-SUB_audit_log');
+
+// --- PRO: notes --- //
+Route::get('/notes', 'notes_Controller@index')->name('notes-index');
+Route::get('/notes/view/{uid}', 'notes_Controller@view')->name('notes-view');
+
+// --- PRO: notes_SINGLE --- //
+Route::get('/notes/view/{uid}/SUB_dashboard', 'notes_SINGLE_Controller@SUB_dashboard')->name('notes_SINGLE-SUB_dashboard');
+Route::get('/notes/view/{uid}/SUB_audit_log', 'notes_SINGLE_Controller@SUB_audit_log')->name('notes_SINGLE-SUB_audit_log');
+
+// --- PRO: erx --- //
+Route::get('/erx', 'erx_Controller@index')->name('erx-index');
+Route::get('/erx/view/{uid}', 'erx_Controller@view')->name('erx-view');
+
+// --- PRO: erx_SINGLE --- //
+Route::get('/erx/view/{uid}/SUB_dashboard', 'erx_SINGLE_Controller@SUB_dashboard')->name('erx_SINGLE-SUB_dashboard');
+Route::get('/erx/view/{uid}/SUB_audit_log', 'erx_SINGLE_Controller@SUB_audit_log')->name('erx_SINGLE-SUB_audit_log');
+
+// --- PRO: action_items --- //
+Route::get('/action_items', 'action_items_Controller@index')->name('action_items-index');
+Route::get('/action_items/view/{uid}', 'action_items_Controller@view')->name('action_items-view');
+
+// --- PRO: action_items_SINGLE --- //
+Route::get('/action_items/view/{uid}/SUB_dashboard', 'action_items_SINGLE_Controller@SUB_dashboard')->name('action_items_SINGLE-SUB_dashboard');
+Route::get('/action_items/view/{uid}/SUB_audit_log', 'action_items_SINGLE_Controller@SUB_audit_log')->name('action_items_SINGLE-SUB_audit_log');
+
+// --- PRO: care_months --- //
+Route::get('/care_months', 'care_months_Controller@index')->name('care_months-index');
+Route::get('/care_months/view/{uid}', 'care_months_Controller@view')->name('care_months-view');
+
+// --- PRO: care_months_SINGLE --- //
+Route::get('/care_months/view/{uid}/SUB_dashboard', 'care_months_SINGLE_Controller@SUB_dashboard')->name('care_months_SINGLE-SUB_dashboard');
+Route::get('/care_months/view/{uid}/SUB_time_entries', 'care_months_SINGLE_Controller@SUB_time_entries')->name('care_months_SINGLE-SUB_time_entries');
+Route::get('/care_months/view/{uid}/SUB_audit_log', 'care_months_SINGLE_Controller@SUB_audit_log')->name('care_months_SINGLE-SUB_audit_log');
+
+// --- PRO: care_month_entries --- //
+Route::get('/care_month_entries', 'care_month_entries_Controller@index')->name('care_month_entries-index');
+
+// --- PRO: bills --- //
+Route::get('/bills', 'bills_Controller@index')->name('bills-index');
+Route::get('/bills/view/{uid}', 'bills_Controller@view')->name('bills-view');
+
+// --- PRO: bills_SINGLE --- //
+Route::get('/bills/view/{uid}/SUB_dashboard', 'bills_SINGLE_Controller@SUB_dashboard')->name('bills_SINGLE-SUB_dashboard');
+Route::get('/bills/view/{uid}/SUB_transactions', 'bills_SINGLE_Controller@SUB_transactions')->name('bills_SINGLE-SUB_transactions');
+Route::get('/bills/view/{uid}/SUB_audit_log', 'bills_SINGLE_Controller@SUB_audit_log')->name('bills_SINGLE-SUB_audit_log');
+
+// --- PRO: transactions --- //
+Route::get('/transactions', 'transactions_Controller@index')->name('transactions-index');
+
+// --- PRO: med_profile_lines --- //
+Route::get('/med_profile_lines', 'med_profile_lines_Controller@index')->name('med_profile_lines-index');
+
+// --- PRO: med_profile_line_updates --- //
+Route::get('/med_profile_line_updates', 'med_profile_line_updates_Controller@index')->name('med_profile_line_updates-index');
+
+// --- PRO: pro_access --- //
+Route::get('/pro_access', 'pro_access_Controller@index')->name('pro_access-index');
+
+// --- PRO: mcp_updates --- //
+Route::get('/mcp_updates', 'mcp_updates_Controller@index')->name('mcp_updates-index');
+
+// --- PRO: ally_updates --- //
+Route::get('/ally_updates', 'ally_updates_Controller@index')->name('ally_updates-index');
+
+// --- PRO: audit_log --- //
+Route::get('/audit_log', 'audit_log_Controller@index')->name('audit_log-index');
+
+// --- ADMIN: admin_dashboard --- //
+Route::get('/admin_dashboard', 'admin_dashboard_Controller@index')->name('admin_dashboard-index');
+
+// --- ADMIN: facilities --- //
+Route::get('/facilities', 'facilities_Controller@index')->name('facilities-index');
+Route::get('/facilities/add_new', 'facilities_Controller@add_new')->name('facilities-add_new');
+Route::get('/facilities/view/{uid}', 'facilities_Controller@view')->name('facilities-view');
+
+// --- ADMIN: facilities_SINGLE --- //
+Route::get('/facilities/view/{uid}/SUB_dashboard', 'facilities_SINGLE_Controller@SUB_dashboard')->name('facilities_SINGLE-SUB_dashboard');
+Route::get('/facilities/view/{uid}/SUB_erx', 'facilities_SINGLE_Controller@SUB_erx')->name('facilities_SINGLE-SUB_erx');
+Route::get('/facilities/view/{uid}/SUB_action_items', 'facilities_SINGLE_Controller@SUB_action_items')->name('facilities_SINGLE-SUB_action_items');
+Route::get('/facilities/view/{uid}/SUB_audit_log', 'facilities_SINGLE_Controller@SUB_audit_log')->name('facilities_SINGLE-SUB_audit_log');
+
+// --- ACTIONS: pros_SINGLE --- //
+Route::get('/pros/view/{uid}/ACTION_sendCellNumberConfirmationMessage', 'pros_SINGLE_Controller@ACTION_sendCellNumberConfirmationMessage')->name('pros_SINGLE-ACTION_sendCellNumberConfirmationMessage');
+Route::get('/pros/view/{uid}/ACTION_confirmCellNumberWithConfirmationToken', 'pros_SINGLE_Controller@ACTION_confirmCellNumberWithConfirmationToken')->name('pros_SINGLE-ACTION_confirmCellNumberWithConfirmationToken');
+Route::get('/pros/view/{uid}/ACTION_putNewCellNumber', 'pros_SINGLE_Controller@ACTION_putNewCellNumber')->name('pros_SINGLE-ACTION_putNewCellNumber');
+Route::get('/pros/view/{uid}/ACTION_confirmEmailAddressWithConfirmationToken', 'pros_SINGLE_Controller@ACTION_confirmEmailAddressWithConfirmationToken')->name('pros_SINGLE-ACTION_confirmEmailAddressWithConfirmationToken');
+Route::get('/pros/view/{uid}/ACTION_putNewEmailAddress', 'pros_SINGLE_Controller@ACTION_putNewEmailAddress')->name('pros_SINGLE-ACTION_putNewEmailAddress');
+Route::get('/pros/view/{uid}/ACTION_updateName', 'pros_SINGLE_Controller@ACTION_updateName')->name('pros_SINGLE-ACTION_updateName');
+Route::get('/pros/view/{uid}/ACTION_updateProfession', 'pros_SINGLE_Controller@ACTION_updateProfession')->name('pros_SINGLE-ACTION_updateProfession');
+Route::get('/pros/view/{uid}/ACTION_updateEnrolledHcpInfo', 'pros_SINGLE_Controller@ACTION_updateEnrolledHcpInfo')->name('pros_SINGLE-ACTION_updateEnrolledHcpInfo');
+Route::get('/pros/view/{uid}/ACTION_putProfilePicture', 'pros_SINGLE_Controller@ACTION_putProfilePicture')->name('pros_SINGLE-ACTION_putProfilePicture');
+Route::get('/pros/view/{uid}/ACTION_updatePhoneInfo', 'pros_SINGLE_Controller@ACTION_updatePhoneInfo')->name('pros_SINGLE-ACTION_updatePhoneInfo');
+Route::get('/pros/view/{uid}/ACTION_updateAddress', 'pros_SINGLE_Controller@ACTION_updateAddress')->name('pros_SINGLE-ACTION_updateAddress');
+Route::get('/pros/view/{uid}/ACTION_updatePaymentProcessingDetail', 'pros_SINGLE_Controller@ACTION_updatePaymentProcessingDetail')->name('pros_SINGLE-ACTION_updatePaymentProcessingDetail');
+Route::get('/pros/view/{uid}/ACTION_uploadDriverLicense', 'pros_SINGLE_Controller@ACTION_uploadDriverLicense')->name('pros_SINGLE-ACTION_uploadDriverLicense');
+Route::get('/pros/view/{uid}/ACTION_updateDriverLicenseInfo', 'pros_SINGLE_Controller@ACTION_updateDriverLicenseInfo')->name('pros_SINGLE-ACTION_updateDriverLicenseInfo');
+Route::get('/pros/view/{uid}/ACTION_updateSsn', 'pros_SINGLE_Controller@ACTION_updateSsn')->name('pros_SINGLE-ACTION_updateSsn');
+Route::get('/pros/view/{uid}/SUB_dashboard', 'pros_SINGLE_Controller@SUB_dashboard')->name('pros_SINGLE-SUB_dashboard');
+Route::get('/pros/view/{uid}/SUB_payment_schedule', 'pros_SINGLE_Controller@SUB_payment_schedule')->name('pros_SINGLE-SUB_payment_schedule');
+Route::get('/pros/view/{uid}/SUB_teams', 'pros_SINGLE_Controller@SUB_teams')->name('pros_SINGLE-SUB_teams');
+Route::get('/pros/view/{uid}/SUB_clients', 'pros_SINGLE_Controller@SUB_clients')->name('pros_SINGLE-SUB_clients');
+Route::get('/pros/view/{uid}/SUB_pro_access', 'pros_SINGLE_Controller@SUB_pro_access')->name('pros_SINGLE-SUB_pro_access');
+Route::get('/pros/view/{uid}/SUB_mcp_updates', 'pros_SINGLE_Controller@SUB_mcp_updates')->name('pros_SINGLE-SUB_mcp_updates');
+Route::get('/pros/view/{uid}/SUB_ally_updates', 'pros_SINGLE_Controller@SUB_ally_updates')->name('pros_SINGLE-SUB_ally_updates');
+Route::get('/pros/view/{uid}/SUB_erx', 'pros_SINGLE_Controller@SUB_erx')->name('pros_SINGLE-SUB_erx');
+Route::get('/pros/view/{uid}/SUB_action_items', 'pros_SINGLE_Controller@SUB_action_items')->name('pros_SINGLE-SUB_action_items');
+Route::get('/pros/view/{uid}/SUB_care_months', 'pros_SINGLE_Controller@SUB_care_months')->name('pros_SINGLE-SUB_care_months');
+Route::get('/pros/view/{uid}/SUB_care_month_entries', 'pros_SINGLE_Controller@SUB_care_month_entries')->name('pros_SINGLE-SUB_care_month_entries');
+Route::get('/pros/view/{uid}/SUB_notes', 'pros_SINGLE_Controller@SUB_notes')->name('pros_SINGLE-SUB_notes');
+Route::get('/pros/view/{uid}/SUB_bills', 'pros_SINGLE_Controller@SUB_bills')->name('pros_SINGLE-SUB_bills');
+Route::get('/pros/view/{uid}/SUB_pro_transactions', 'pros_SINGLE_Controller@SUB_pro_transactions')->name('pros_SINGLE-SUB_pro_transactions');
+Route::get('/pros/view/{uid}/SUB_sessions', 'pros_SINGLE_Controller@SUB_sessions')->name('pros_SINGLE-SUB_sessions');
+Route::get('/pros/view/{uid}/SUB_audit_log', 'pros_SINGLE_Controller@SUB_audit_log')->name('pros_SINGLE-SUB_audit_log');
+
+// --- ACTIONS: pros --- //
+Route::get('/pros', 'pros_Controller@index')->name('pros-index');
+Route::get('/pros/add_new', 'pros_Controller@add_new')->name('pros-add_new');
+Route::get('/pros/view/{uid}', 'pros_Controller@view')->name('pros-view');
+

+ 1 - 16
routes/web.php

@@ -40,21 +40,6 @@ Route::middleware('ensureValidSession')->group(function(){
 
     Route::get('/pro/logout', 'AppSessionController@processProLogOut')->name('pro-logout');
 
-/* __SCAFFOLD_ROUTES__ */
-/* SCAF */// my-teams CRUD
-/* SCAF */Route::get ('/my-teams', 'MyTeamsController@index')->name('my-teams-index');
-/* SCAF */Route::get ('/my-teams/{id}', 'MyTeamsController@show')->name('my-teams-view');
-/* SCAF */Route::get ('/my-teams/create', 'MyTeamsController@create')->name('my-teams-create');
-/* SCAF */Route::get ('/my-teams/update/{id}', 'MyTeamsController@update')->name('my-teams-update');
-/* SCAF */// my-clients CRUD
-/* SCAF */Route::get ('/my-clients', 'MyClientsController@index')->name('my-clients-index');
-/* SCAF */Route::get ('/my-clients/{id}', 'MyClientsController@show')->name('my-clients-view');
-/* SCAF */Route::get ('/my-clients/create', 'MyClientsController@create')->name('my-clients-create');
-/* SCAF */Route::get ('/my-clients/update/{id}', 'MyClientsController@update')->name('my-clients-update');
-/* SCAF */// notes CRUD
-/* SCAF */Route::get ('/notes', 'NotesController@index')->name('notes-index');
-/* SCAF */Route::get ('/notes/{id}', 'NotesController@show')->name('notes-view');
-/* SCAF */Route::get ('/notes/create', 'NotesController@create')->name('notes-create');
-/* SCAF */Route::get ('/notes/update/{id}', 'NotesController@update')->name('notes-update');
+    include 'generated.php';
 
 });