@@ -48,12 +48,12 @@ |
||
48 | 48 | $totalLinks = FileLinks::where('user_id', Auth::user()->user_id)->count(); |
49 | 49 | |
50 | 50 | return view('dashboard', [ |
51 | - 'custFavs' => $custFavs, |
|
52 | - 'tipFavs' => $tipFavs, |
|
53 | - 'tips30' => $tips30Days, |
|
54 | - 'tipsAll' => $tipsTotal, |
|
55 | - 'activeLinks' => $activeLinks, |
|
56 | - 'totalLinks' => $totalLinks, |
|
51 | + 'custFavs' => $custFavs, |
|
52 | + 'tipFavs' => $tipFavs, |
|
53 | + 'tips30' => $tips30Days, |
|
54 | + 'tipsAll' => $tipsTotal, |
|
55 | + 'activeLinks' => $activeLinks, |
|
56 | + 'totalLinks' => $totalLinks, |
|
57 | 57 | // 'modules' => $modules |
58 | 58 | ]); |
59 | 59 | } |
@@ -116,7 +116,7 @@ |
||
116 | 116 | |
117 | 117 | |
118 | 118 | |
119 | - // // System custionization settings |
|
119 | + // // System custionization settings |
|
120 | 120 | // Route::get('system-customization', 'Installer\SettingsController@customizeSystem')->name('customize'); |
121 | 121 | // Route::post('system-customization', 'Installer\SettingsController@submitCustomizeSystem')->name('customize'); |
122 | 122 | // Route::post('new-logo', 'Installer\SettingsController@submitLogo')->name('submitLogo'); |
@@ -209,10 +209,10 @@ discard block |
||
209 | 209 | } |
210 | 210 | |
211 | 211 | // Delete an existing system - note this will fail if the system has any customers or tech tips assigned to it |
212 | - public function destroy($id) |
|
213 | - { |
|
214 | - // |
|
215 | - try { |
|
212 | + public function destroy($id) |
|
213 | + { |
|
214 | + // |
|
215 | + try { |
|
216 | 216 | SystemTypes::find($id)->delete(); |
217 | 217 | return response()->json(['success' => true, 'reason' => 'Equipment Successfully Deleted']); |
218 | 218 | } |
@@ -220,5 +220,5 @@ discard block |
||
220 | 220 | { |
221 | 221 | return response()->json(['success' => false, 'reason' => 'Cannot delete this equipment. It has Customers or Tech Tips assigned to it. Please delete those first.']); |
222 | 222 | } |
223 | - } |
|
223 | + } |
|
224 | 224 | } |