| @@ 186-196 (lines=11) @@ | ||
| 183 | * @param \App\MasterZona $master_zona |
|
| 184 | * @return \Illuminate\Http\Response |
|
| 185 | */ |
|
| 186 | public function show($id) |
|
| 187 | { |
|
| 188 | $master_zona = $this->master_zona->with(['user'])->findOrFail($id); |
|
| 189 | ||
| 190 | $response['master_zona'] = $master_zona; |
|
| 191 | $response['error'] = false; |
|
| 192 | $response['message'] = 'Success'; |
|
| 193 | $response['status'] = true; |
|
| 194 | ||
| 195 | return response()->json($response); |
|
| 196 | } |
|
| 197 | ||
| 198 | /** |
|
| 199 | * Show the form for editing the specified resource. |
|
| @@ 250-260 (lines=11) @@ | ||
| 247 | * @param \App\Zona $zona |
|
| 248 | * @return \Illuminate\Http\Response |
|
| 249 | */ |
|
| 250 | public function show($id) |
|
| 251 | { |
|
| 252 | $zona = $this->zona->with(['siswa', 'sekolah', 'user'])->findOrFail($id); |
|
| 253 | ||
| 254 | $response['zona'] = $zona; |
|
| 255 | $response['error'] = false; |
|
| 256 | $response['message'] = 'Success'; |
|
| 257 | $response['status'] = true; |
|
| 258 | ||
| 259 | return response()->json($response); |
|
| 260 | } |
|
| 261 | ||
| 262 | /** |
|
| 263 | * Show the form for editing the specified resource. |
|