@@ -66,10 +66,11 @@ |
||
| 66 | 66 | $site = Site::findOrFail($id); |
| 67 | 67 | $locations = $site->locations()->orderBy('name', 'ASC')->paginate(15); |
| 68 | 68 | |
| 69 | - if (\Request::ajax()) |
|
| 70 | - return response()->json(['site' => $site, 'locations' => $locations]); |
|
| 71 | - else |
|
| 72 | - return view('site.show', [ 'site' => $site, 'locations' => $locations ]); |
|
| 69 | + if (\Request::ajax()) { |
|
| 70 | + return response()->json(['site' => $site, 'locations' => $locations]); |
|
| 71 | + } else { |
|
| 72 | + return view('site.show', [ 'site' => $site, 'locations' => $locations ]); |
|
| 73 | + } |
|
| 73 | 74 | } |
| 74 | 75 | |
| 75 | 76 | /** |