app/Http/Controllers/Admin/UserController.php 1 location
|
@@ 35-48 (lines=14) @@
|
32 |
|
} |
33 |
|
|
34 |
|
// Show the list of current users to edit |
35 |
|
public function index() |
36 |
|
{ |
37 |
|
Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name); |
38 |
|
|
39 |
|
$userList = User::with('LastUserLogin')->get()->makeVisible('user_id'); |
40 |
|
$route = 'admin.user.edit'; |
41 |
|
|
42 |
|
Log::debug('User list:', $userList->toArray()); |
43 |
|
|
44 |
|
return view('admin.userIndex', [ |
45 |
|
'userList' => $userList, |
46 |
|
'route' => $route, |
47 |
|
]); |
48 |
|
} |
49 |
|
|
50 |
|
// Check if a username is in use |
51 |
|
public function checkUser($username, $type) |
app/Http/Controllers/Installer/SystemsController.php 1 location
|
@@ 118-128 (lines=11) @@
|
115 |
|
} |
116 |
|
|
117 |
|
// Open the form to add equipment for the sepcified category |
118 |
|
public function show($cat) |
119 |
|
{ |
120 |
|
$fields = SystemDataFieldTypes::all(); |
121 |
|
$cat = SystemCategories::where('name', str_replace('-', ' ', $cat))->first(); |
122 |
|
|
123 |
|
Log::debug('Route '.Route::currentRouteName().' visited by User ID-'.Auth::user()->user_id); |
124 |
|
return view('installer.newSystem', [ |
125 |
|
'cat' => $cat, |
126 |
|
'dataList' => $fields, |
127 |
|
]); |
128 |
|
} |
129 |
|
|
130 |
|
// Edit an existing system |
131 |
|
public function edit($id) |
app/Http/Controllers/TechTips/TechTipsController.php 1 location
|
@@ 38-48 (lines=11) @@
|
35 |
|
} |
36 |
|
|
37 |
|
// Tech Tips landing page |
38 |
|
public function index() |
39 |
|
{ |
40 |
|
Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
41 |
|
|
42 |
|
$tipTypes = new TechTipTypesCollection(TechTipTypes::all()); |
43 |
|
$sysList = new CategoriesCollection(SystemCategories::with('SystemTypes')->with('SystemTypes.SystemDataFields.SystemDataFieldTypes')->get()); |
44 |
|
return view('tips.index', [ |
45 |
|
'tipTypes' => $tipTypes, |
46 |
|
'sysTypes' => $sysList, |
47 |
|
]); |
48 |
|
} |
49 |
|
|
50 |
|
// Search for an existing tip - If no paramaters, return all tips |
51 |
|
public function search(Request $request) |