@@ -30,9 +30,9 @@ discard block |
||
30 | 30 | $totalLinks = FileLinks::where('user_id', Auth::user()->user_id)->count(); |
31 | 31 | |
32 | 32 | // Debug Data |
33 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name); |
|
33 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
|
34 | 34 | Log::debug('Customer Favorites for '.Auth::user()->full_name.': ', $custFavs->toArray()); |
35 | - Log::debug('Tech Tip Favorites for ' . Auth::user()->full_name . ': ', $tipFavs->toArray()); |
|
35 | + Log::debug('Tech Tip Favorites for '.Auth::user()->full_name.': ', $tipFavs->toArray()); |
|
36 | 36 | |
37 | 37 | return view('dashboard', [ |
38 | 38 | 'custFavs' => $custFavs, |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | // About page |
48 | 48 | public function about() |
49 | 49 | { |
50 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name); |
|
50 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
|
51 | 51 | |
52 | 52 | return view('about', [ |
53 | 53 | 'branch' => 'latest' |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | public function getNotifications() |
59 | 59 | { |
60 | 60 | // Debug Data |
61 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name); |
|
61 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
|
62 | 62 | Log::debug('Notifications for '.Auth::user()->full_name.':', Auth::user()->notifications->toArray()); |
63 | 63 | |
64 | 64 | return Auth::user()->notifications; |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | // Mark a notification as read |
68 | 68 | public function markNotification($id) |
69 | 69 | { |
70 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name); |
|
70 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
|
71 | 71 | |
72 | 72 | $notification = Auth::user()->notifications()->where('id', $id)->where('notifiable_id', Auth::user()->user_id)->first(); |
73 | 73 | if(!$notification) |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | } |
94 | 94 | else |
95 | 95 | { |
96 | - Log::error('User ' . Auth::user()->full_name . ' tried to delete an invalid notification as read. Notification ID: ' . $id); |
|
96 | + Log::error('User '.Auth::user()->full_name.' tried to delete an invalid notification as read. Notification ID: '.$id); |
|
97 | 97 | return abort(404); |
98 | 98 | } |
99 | 99 |
@@ -130,7 +130,7 @@ |
||
130 | 130 | |
131 | 131 | // Update the primary contact information |
132 | 132 | $details = Customers::find($request->cust_id); |
133 | - if ($details->parent_id && $request->shared == 'true') |
|
133 | + if($details->parent_id && $request->shared == 'true') |
|
134 | 134 | { |
135 | 135 | $request->cust_id = $details->parent_id; |
136 | 136 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | |
32 | 32 | // Determine if the note should go to the customer, or its parent |
33 | 33 | $details = Customers::find($request->cust_id); |
34 | - if ($details->parent_id && $request->shared == 'true') |
|
34 | + if($details->parent_id && $request->shared == 'true') |
|
35 | 35 | { |
36 | 36 | $request->cust_id = $details->parent_id; |
37 | 37 | } |
@@ -56,21 +56,21 @@ discard block |
||
56 | 56 | |
57 | 57 | // Determine if there is a parent site with shared notes |
58 | 58 | $parent = Customers::find($id)->parent_id; |
59 | - if ($parent) |
|
59 | + if($parent) |
|
60 | 60 | { |
61 | 61 | $parentList = CustomerNotes::where('cust_id', $parent)->where('shared', 1)->orderBy('urgent', 'desc')->get(); |
62 | 62 | |
63 | 63 | $notes = $notes->merge($parentList); |
64 | 64 | } |
65 | 65 | |
66 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name); |
|
66 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
|
67 | 67 | return $notes; |
68 | 68 | } |
69 | 69 | |
70 | 70 | // Update a customer note |
71 | 71 | public function update(Request $request, $id) |
72 | 72 | { |
73 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
73 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name.'. Submitted Data - ', $request->toArray()); |
|
74 | 74 | |
75 | 75 | $request->validate([ |
76 | 76 | 'cust_id' => 'required', |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | ]); |
80 | 80 | |
81 | 81 | $details = Customers::find($request->cust_id); |
82 | - if ($details->parent_id && $request->shared == 'true') |
|
82 | + if($details->parent_id && $request->shared == 'true') |
|
83 | 83 | { |
84 | 84 | $request->cust_id = $details->parent_id; |
85 | 85 | } |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | ]); |
81 | 81 | |
82 | 82 | // Update the site timezone |
83 | - if (config('app.timezone') !== $request->timezone) |
|
83 | + if(config('app.timezone') !== $request->timezone) |
|
84 | 84 | { |
85 | 85 | Settings::firstOrCreate( |
86 | 86 | ['key' => 'app.timezone'], |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | )->update(['value' => $request->timezone]); |
89 | 89 | } |
90 | 90 | // Update the maximum file upload size |
91 | - if (config('filesystems.paths.max_size') !== $request->filesize) |
|
91 | + if(config('filesystems.paths.max_size') !== $request->filesize) |
|
92 | 92 | { |
93 | 93 | Settings::firstOrCreate( |
94 | 94 | ['key' => 'filesystems.paths.max_size'], |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | Log::notice('User '.Auth::user()->full_name.' updated User Password Policy'); |
90 | 90 | |
91 | 91 | // If the setting is changing from never to xx days, update all users |
92 | - if ($request->passExpire == 0) |
|
92 | + if($request->passExpire == 0) |
|
93 | 93 | { |
94 | 94 | User::whereNotNull('password_expires')->update([ |
95 | 95 | 'password_expires' => null |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | public function roleSettings() |
111 | 111 | { |
112 | 112 | $this->authorize('hasAccess', 'Manage User Roles'); |
113 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name); |
|
113 | + Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
|
114 | 114 | $roles = UserRoleType::with(['UserRolePermissions' => function($query) { |
115 | 115 | $query->join('user_role_permission_types', 'user_role_permission_types.perm_type_id', '=', 'user_role_permissions.perm_type_id'); |
116 | 116 | }])->get(); |
@@ -182,13 +182,13 @@ discard block |
||
182 | 182 | |
183 | 183 | // Good to go - get role information |
184 | 184 | $roleArr = []; |
185 | - foreach ($roles as $role) |
|
185 | + foreach($roles as $role) |
|
186 | 186 | { |
187 | - if ($role->role_id == 1 && Auth::user()->role_id != 1) |
|
187 | + if($role->role_id == 1 && Auth::user()->role_id != 1) |
|
188 | 188 | { |
189 | 189 | continue; |
190 | 190 | } |
191 | - else if ($role->role_id == 2 && Auth::user()->role_id > 1) |
|
191 | + else if($role->role_id == 2 && Auth::user()->role_id > 1) |
|
192 | 192 | { |
193 | 193 | continue; |
194 | 194 | } |
@@ -285,13 +285,13 @@ discard block |
||
285 | 285 | $user = User::find($request->user_id); |
286 | 286 | |
287 | 287 | // Verify this is a valid user ID |
288 | - if (!$user) |
|
288 | + if(!$user) |
|
289 | 289 | { |
290 | 290 | $success = false; |
291 | 291 | $reason = 'Cannot find user with this ID'; |
292 | 292 | } |
293 | 293 | // Make sure that the user is not trying to deactivate someone with more permissions |
294 | - else if ($user->role_id < Auth::user()->role_id) |
|
294 | + else if($user->role_id < Auth::user()->role_id) |
|
295 | 295 | { |
296 | 296 | $success = false; |
297 | 297 | $reason = 'You cannot change password for a user with higher permissions that you. If this user has locked themselves out, have then use the reset link on the login page.'; |
@@ -8,148 +8,148 @@ |
||
8 | 8 | /* |
9 | 9 | * Non user Routes |
10 | 10 | */ |
11 | -Route::get('/', 'Auth\LoginController@showLoginForm') ->name('index'); |
|
12 | -Route::get('logout', 'Auth\LoginController@logout') ->name('logout'); |
|
13 | -Route::get('no-script', 'Controller@noScript') ->name('noscript'); |
|
14 | -Route::get('finish-setup/{hash}', 'Auth\InitializeUserController@initializeUser') ->name('initialize'); |
|
11 | +Route::get('/', 'Auth\LoginController@showLoginForm') ->name('index'); |
|
12 | +Route::get('logout', 'Auth\LoginController@logout') ->name('logout'); |
|
13 | +Route::get('no-script', 'Controller@noScript') ->name('noscript'); |
|
14 | +Route::get('finish-setup/{hash}', 'Auth\InitializeUserController@initializeUser') ->name('initialize'); |
|
15 | 15 | Route::post('finish-setup/{hash}', 'Auth\InitializeUserController@submitInitializeUser')->name('initialize'); |
16 | 16 | |
17 | 17 | /* |
18 | 18 | * Download File Routes |
19 | 19 | */ |
20 | -Route::get('download/{id}/{filename}', 'DownloadController@index') ->name('download'); |
|
20 | +Route::get('download/{id}/{filename}', 'DownloadController@index') ->name('download'); |
|
21 | 21 | Route::get('download-archive/{filename}', 'DownloadController@downloadArchive')->name('downloadArchive'); |
22 | -Route::put('download-archive', 'DownloadController@archiveFiles') ->name('archiveFiles'); |
|
22 | +Route::put('download-archive', 'DownloadController@archiveFiles') ->name('archiveFiles'); |
|
23 | 23 | |
24 | 24 | /* |
25 | 25 | * User Settings Routes |
26 | 26 | */ |
27 | -Route::get('account', 'AccountController@index') ->name('account'); |
|
28 | -Route::post('account', 'AccountController@submit') ->name('account'); |
|
29 | -Route::put('account', 'AccountController@notifications') ->name('account'); |
|
30 | -Route::get('/account/change-password', 'AccountController@changePassword')->name('changePassword'); |
|
27 | +Route::get('account', 'AccountController@index') ->name('account'); |
|
28 | +Route::post('account', 'AccountController@submit') ->name('account'); |
|
29 | +Route::put('account', 'AccountController@notifications') ->name('account'); |
|
30 | +Route::get('/account/change-password', 'AccountController@changePassword')->name('changePassword'); |
|
31 | 31 | Route::post('/account/change-password', 'AccountController@submitPassword')->name('changePassword'); |
32 | 32 | |
33 | 33 | /* |
34 | 34 | * Basic Logged In Routes |
35 | 35 | */ |
36 | -Route::get('about', 'DashboardController@about') ->name('about'); |
|
37 | -Route::get('dashboard', 'DashboardController@index') ->name('dashboard'); |
|
38 | -Route::get('notifications', 'DashboardController@getNotifications')->name('getNotifications'); |
|
36 | +Route::get('about', 'DashboardController@about') ->name('about'); |
|
37 | +Route::get('dashboard', 'DashboardController@index') ->name('dashboard'); |
|
38 | +Route::get('notifications', 'DashboardController@getNotifications')->name('getNotifications'); |
|
39 | 39 | Route::get('mark-notification/{id}', 'DashboardController@markNotification')->name('markNotification'); |
40 | -Route::delete('notifications/{id}', 'DashboardController@delNotification') ->name('delNotification'); |
|
40 | +Route::delete('notifications/{id}', 'DashboardController@delNotification') ->name('delNotification'); |
|
41 | 41 | |
42 | 42 | /* |
43 | 43 | * File Link Routes |
44 | 44 | */ |
45 | -Route::prefix('links')->name('links.')->group(function () { |
|
45 | +Route::prefix('links')->name('links.')->group(function() { |
|
46 | 46 | // Resource controllers for base access |
47 | - Route::resource('data', 'FileLinks\FileLinksController'); |
|
48 | - Route::get('new', 'FileLinks\FileLinksController@create') ->name('new'); |
|
49 | - Route::get('find/{id}', 'FileLinks\FileLinksController@find') ->name('user'); |
|
47 | + Route::resource('data', 'FileLinks\FileLinksController'); |
|
48 | + Route::get('new', 'FileLinks\FileLinksController@create') ->name('new'); |
|
49 | + Route::get('find/{id}', 'FileLinks\FileLinksController@find') ->name('user'); |
|
50 | 50 | Route::get('details/{id}/{name}', 'FileLinks\FileLinksController@details') ->name('details'); |
51 | - Route::get('disable/{id}', 'FileLinks\FileLinksController@disableLink')->name('disable'); |
|
51 | + Route::get('disable/{id}', 'FileLinks\FileLinksController@disableLink')->name('disable'); |
|
52 | 52 | // File Link Files |
53 | - Route::resource('files', 'FileLinks\LinkFilesController'); |
|
53 | + Route::resource('files', 'FileLinks\LinkFilesController'); |
|
54 | 54 | // Index landing page |
55 | - Route::get('/', 'FileLinks\FileLinksController@index') ->name('index'); |
|
55 | + Route::get('/', 'FileLinks\FileLinksController@index') ->name('index'); |
|
56 | 56 | }); |
57 | 57 | |
58 | 58 | /* |
59 | 59 | * Guest File Link Routes |
60 | 60 | */ |
61 | 61 | Route::get('file-links/{id}/get-files', 'FileLinks\GuestLinksController@getFiles')->name('file-links.getFiles'); |
62 | -Route::put('file-links/{id}', 'FileLinks\GuestLinksController@notify') ->name('file-links.show'); |
|
63 | -Route::post('file-links/{id}', 'FileLinks\GuestLinksController@update') ->name('file-links.show'); |
|
64 | -Route::get('file-links/{id}', 'FileLinks\GuestLinksController@show') ->name('file-links.show'); |
|
65 | -Route::get('file-links', 'FileLinks\GuestLinksController@index') ->name('file-links.index'); |
|
62 | +Route::put('file-links/{id}', 'FileLinks\GuestLinksController@notify') ->name('file-links.show'); |
|
63 | +Route::post('file-links/{id}', 'FileLinks\GuestLinksController@update') ->name('file-links.show'); |
|
64 | +Route::get('file-links/{id}', 'FileLinks\GuestLinksController@show') ->name('file-links.show'); |
|
65 | +Route::get('file-links', 'FileLinks\GuestLinksController@index') ->name('file-links.index'); |
|
66 | 66 | |
67 | 67 | /* |
68 | 68 | * Customer Routes |
69 | 69 | */ |
70 | 70 | Route::prefix('customer')->name('customer.')->group(function() { |
71 | 71 | // Customer Files |
72 | - Route::resource('files', 'Customers\CustomerFilesController'); |
|
72 | + Route::resource('files', 'Customers\CustomerFilesController'); |
|
73 | 73 | // Custome Notes |
74 | - Route::get('download-note/{id}', 'DownloadController@downloadCustNote') ->name('download-note'); |
|
75 | - Route::resource('notes', 'Customers\CustomerNotesController'); |
|
74 | + Route::get('download-note/{id}', 'DownloadController@downloadCustNote') ->name('download-note'); |
|
75 | + Route::resource('notes', 'Customers\CustomerNotesController'); |
|
76 | 76 | // Customer Contacts |
77 | - Route::resource('contacts', 'Customers\CustomerContactsController'); |
|
77 | + Route::resource('contacts', 'Customers\CustomerContactsController'); |
|
78 | 78 | // Customer Systems |
79 | - Route::resource('systems', 'Customers\CustomerSystemsController'); |
|
79 | + Route::resource('systems', 'Customers\CustomerSystemsController'); |
|
80 | 80 | // Customer Details |
81 | - Route::get('link-parent/{id}', 'Customers\CustomerDetailsController@removeParent')->name('removeParent'); |
|
82 | - Route::post('link-parent', 'Customers\CustomerDetailsController@linkParent') ->name('linkParent'); |
|
83 | - Route::get('id/{id}/{name}', 'Customers\CustomerDetailsController@details') ->name('details'); |
|
84 | - Route::resource('id', 'Customers\CustomerDetailsController'); |
|
81 | + Route::get('link-parent/{id}', 'Customers\CustomerDetailsController@removeParent')->name('removeParent'); |
|
82 | + Route::post('link-parent', 'Customers\CustomerDetailsController@linkParent') ->name('linkParent'); |
|
83 | + Route::get('id/{id}/{name}', 'Customers\CustomerDetailsController@details') ->name('details'); |
|
84 | + Route::resource('id', 'Customers\CustomerDetailsController'); |
|
85 | 85 | // check Id and bookmark customer |
86 | 86 | Route::get('toggle-fav/{action}/{custID}', 'Customers\CustomerController@toggleFav') ->name('toggle-fav'); |
87 | - Route::get('check-id/{id}', 'Customers\CustomerController@checkID') ->name('check-id'); |
|
87 | + Route::get('check-id/{id}', 'Customers\CustomerController@checkID') ->name('check-id'); |
|
88 | 88 | // Index landing/search page |
89 | - Route::get('search', 'Customers\CustomerController@search') ->name('search'); |
|
90 | - Route::get('/', 'Customers\CustomerController@index') ->name('index'); |
|
89 | + Route::get('search', 'Customers\CustomerController@search') ->name('search'); |
|
90 | + Route::get('/', 'Customers\CustomerController@index') ->name('index'); |
|
91 | 91 | }); |
92 | 92 | |
93 | 93 | /* |
94 | 94 | * Tech Tip Routes |
95 | 95 | */ |
96 | -Route::resource('tips', 'TechTips\TechTipsController'); |
|
97 | -Route::post('submit-edit/{id}', 'TechTips\TechTipsController@update') ->name('tips.submit-edit'); |
|
96 | +Route::resource('tips', 'TechTips\TechTipsController'); |
|
97 | +Route::post('submit-edit/{id}', 'TechTips\TechTipsController@update') ->name('tips.submit-edit'); |
|
98 | 98 | Route::prefix('tip')->name('tip.')->group(function() { |
99 | - Route::resource('comments', 'TechTips\TechTipCommentsController'); |
|
100 | - Route::get('search', 'TechTips\TechTipsController@search') ->name('search'); |
|
101 | - Route::get('details/{id}/{name}', 'TechTips\TechTipsController@details') ->name('details'); |
|
102 | - Route::post('process-image', 'TechTips\TechTipsController@processImage')->name('processImage'); |
|
99 | + Route::resource('comments', 'TechTips\TechTipCommentsController'); |
|
100 | + Route::get('search', 'TechTips\TechTipsController@search') ->name('search'); |
|
101 | + Route::get('details/{id}/{name}', 'TechTips\TechTipsController@details') ->name('details'); |
|
102 | + Route::post('process-image', 'TechTips\TechTipsController@processImage')->name('processImage'); |
|
103 | 103 | Route::get('toggle-fav/{action}/{tipID}', 'TechTips\TechTipsController@toggleFav') ->name('toggle-fav'); |
104 | - Route::get('download-tip/{id}', 'DownloadController@downloadTechTip') ->name('downloadTip'); |
|
104 | + Route::get('download-tip/{id}', 'DownloadController@downloadTechTip') ->name('downloadTip'); |
|
105 | 105 | }); |
106 | 106 | |
107 | 107 | /* |
108 | 108 | * Administration Routes |
109 | 109 | */ |
110 | -Route::prefix('admin')->name('admin.')->group(function () { |
|
110 | +Route::prefix('admin')->name('admin.')->group(function() { |
|
111 | 111 | // Routes for Tech Bench Add-ons |
112 | 112 | Route::prefix('modules')->name('module.')->group(function() { |
113 | 113 | Route::delete('delete-staged/{name}', 'Installer\ModuleController@delStaged') ->name('deleteStaged'); |
114 | - Route::post('upload', 'Installer\ModuleController@upload') ->name('upload'); |
|
115 | - Route::get('activate/{name}', 'Installer\ModuleController@activate') ->name('activate'); |
|
116 | - Route::get('disable/{name}', 'Installer\ModuleController@disable') ->name('disable'); |
|
117 | - Route::get('enable/{name}', 'Installer\ModuleController@enable') ->name('enable'); |
|
118 | - Route::get('get-active', 'Installer\ModuleController@getEnabled')->name('getEnabled'); |
|
119 | - Route::get('get-staged', 'Installer\ModuleController@getStaged') ->name('getStaged'); |
|
120 | - Route::get('/', 'Installer\ModuleController@index') ->name('index'); |
|
114 | + Route::post('upload', 'Installer\ModuleController@upload') ->name('upload'); |
|
115 | + Route::get('activate/{name}', 'Installer\ModuleController@activate') ->name('activate'); |
|
116 | + Route::get('disable/{name}', 'Installer\ModuleController@disable') ->name('disable'); |
|
117 | + Route::get('enable/{name}', 'Installer\ModuleController@enable') ->name('enable'); |
|
118 | + Route::get('get-active', 'Installer\ModuleController@getEnabled')->name('getEnabled'); |
|
119 | + Route::get('get-staged', 'Installer\ModuleController@getStaged') ->name('getStaged'); |
|
120 | + Route::get('/', 'Installer\ModuleController@index') ->name('index'); |
|
121 | 121 | }); |
122 | 122 | // Administrative routes for equipment and equipment categories |
123 | - Route::resource('categories', 'Installer\CategoriesController'); |
|
124 | - Route::resource('systems', 'Installer\SystemsController'); |
|
123 | + Route::resource('categories', 'Installer\CategoriesController'); |
|
124 | + Route::resource('systems', 'Installer\SystemsController'); |
|
125 | 125 | // Administrative routes for users |
126 | - Route::resource('user', 'Admin\UserController'); |
|
127 | - Route::get('user/enable/{id}', 'Admin\UserController@reactivateUser') ->name('user.reactivate'); |
|
128 | - Route::post('user/change-password', 'Admin\UserController@submitPassword') ->name('user.changePassword'); |
|
126 | + Route::resource('user', 'Admin\UserController'); |
|
127 | + Route::get('user/enable/{id}', 'Admin\UserController@reactivateUser') ->name('user.reactivate'); |
|
128 | + Route::post('user/change-password', 'Admin\UserController@submitPassword') ->name('user.changePassword'); |
|
129 | 129 | Route::get('check-user/{name}/{type}', 'Admin\UserController@checkUser') ->name('checkUser'); |
130 | - Route::get('links/show/{id}', 'Admin\AdminController@showLinks') ->name('user.showLinks'); |
|
131 | - Route::get('links', 'Admin\AdminController@userLinks') ->name('user.links'); |
|
132 | - Route::post('password-policy', 'Admin\AdminController@submitPolicy') ->name('passwordPolicy'); |
|
133 | - Route::get('password-policy', 'Admin\AdminController@passwordPolicy') ->name('passwordPolicy'); |
|
134 | - Route::post('role-policy', 'Admin\AdminController@submitRoleSettings') ->name('roleSettings'); |
|
135 | - Route::get('role-policy', 'Admin\AdminController@roleSettings') ->name('roleSettings'); |
|
130 | + Route::get('links/show/{id}', 'Admin\AdminController@showLinks') ->name('user.showLinks'); |
|
131 | + Route::get('links', 'Admin\AdminController@userLinks') ->name('user.links'); |
|
132 | + Route::post('password-policy', 'Admin\AdminController@submitPolicy') ->name('passwordPolicy'); |
|
133 | + Route::get('password-policy', 'Admin\AdminController@passwordPolicy') ->name('passwordPolicy'); |
|
134 | + Route::post('role-policy', 'Admin\AdminController@submitRoleSettings') ->name('roleSettings'); |
|
135 | + Route::get('role-policy', 'Admin\AdminController@roleSettings') ->name('roleSettings'); |
|
136 | 136 | // Tech Bench Settings Routes |
137 | - Route::post('logo', 'Installer\SettingsController@submitLogo') ->name('submitLogo'); |
|
138 | - Route::get('logo', 'Installer\SettingsController@logoSettings') ->name('logoSettings'); |
|
139 | - Route::post('configuratin', 'Installer\SettingsController@submitConfiguration')->name('submitConfig'); |
|
140 | - Route::get('configuration', 'Installer\SettingsController@configuration') ->name('config'); |
|
141 | - Route::post('email-settings', 'Installer\SettingsController@submitEmailSettings')->name('emailSettings'); |
|
142 | - Route::put('email-settings', 'Installer\SettingsController@sendTestEmail') ->name('emailSettings'); |
|
143 | - Route::get('email-settings', 'Installer\SettingsController@emailSettings') ->name('emailSettings'); |
|
137 | + Route::post('logo', 'Installer\SettingsController@submitLogo') ->name('submitLogo'); |
|
138 | + Route::get('logo', 'Installer\SettingsController@logoSettings') ->name('logoSettings'); |
|
139 | + Route::post('configuratin', 'Installer\SettingsController@submitConfiguration')->name('submitConfig'); |
|
140 | + Route::get('configuration', 'Installer\SettingsController@configuration') ->name('config'); |
|
141 | + Route::post('email-settings', 'Installer\SettingsController@submitEmailSettings')->name('emailSettings'); |
|
142 | + Route::put('email-settings', 'Installer\SettingsController@sendTestEmail') ->name('emailSettings'); |
|
143 | + Route::get('email-settings', 'Installer\SettingsController@emailSettings') ->name('emailSettings'); |
|
144 | 144 | // Tech Bench Backup Routes |
145 | - Route::get('backups/download/{name}', 'Installer\SettingsController@downloadBackup') ->name('downloadBackup'); |
|
146 | - Route::get('backups/delete/{name}', 'Installer\SettingsController@delBackup') ->name('delBackup'); |
|
147 | - Route::get('backups/run', 'Installer\SettingsController@runBackup') ->name('runBackup'); |
|
148 | - Route::get('backups/get', 'Installer\SettingsController@getBackups') ->name('getBackups'); |
|
149 | - Route::get('backups', 'Installer\SettingsController@backupsIndex') ->name('backups'); |
|
145 | + Route::get('backups/download/{name}', 'Installer\SettingsController@downloadBackup') ->name('downloadBackup'); |
|
146 | + Route::get('backups/delete/{name}', 'Installer\SettingsController@delBackup') ->name('delBackup'); |
|
147 | + Route::get('backups/run', 'Installer\SettingsController@runBackup') ->name('runBackup'); |
|
148 | + Route::get('backups/get', 'Installer\SettingsController@getBackups') ->name('getBackups'); |
|
149 | + Route::get('backups', 'Installer\SettingsController@backupsIndex') ->name('backups'); |
|
150 | 150 | // Tech Bench Updates Routs |
151 | 151 | |
152 | 152 | Route::get('updates', 'Installer\UpdateController@index')->name('updates'); |
153 | 153 | // Admin index route |
154 | - Route::get('/', 'Admin\AdminController@index') ->name('index'); |
|
154 | + Route::get('/', 'Admin\AdminController@index') ->name('index'); |
|
155 | 155 | }); |