| @@ 228-238 (lines=11) @@ | ||
| 225 | * @param \App\Nilai $nilai |
|
| 226 | * @return \Illuminate\Http\Response |
|
| 227 | */ |
|
| 228 | public function show($id) |
|
| 229 | { |
|
| 230 | $akademik = $this->akademik->with(['siswa', 'user'])->findOrFail($id); |
|
| 231 | ||
| 232 | $response['akademik'] = $akademik; |
|
| 233 | $response['error'] = false; |
|
| 234 | $response['message'] = 'Success'; |
|
| 235 | $response['status'] = true; |
|
| 236 | ||
| 237 | return response()->json($response); |
|
| 238 | } |
|
| 239 | ||
| 240 | /** |
|
| 241 | * Show the form for editing the specified resource. |
|
| @@ 205-215 (lines=11) @@ | ||
| 202 | * @param \App\Nilai $nilai |
|
| 203 | * @return \Illuminate\Http\Response |
|
| 204 | */ |
|
| 205 | public function show($id) |
|
| 206 | { |
|
| 207 | $nilai = $this->nilai->with(['siswa', 'user', 'nilaiakademik'])->findOrFail($id); |
|
| 208 | ||
| 209 | $response['nilai'] = $nilai; |
|
| 210 | $response['error'] = false; |
|
| 211 | $response['message'] = 'Success'; |
|
| 212 | $response['status'] = true; |
|
| 213 | ||
| 214 | return response()->json($response); |
|
| 215 | } |
|
| 216 | ||
| 217 | /** |
|
| 218 | * Show the form for editing the specified resource. |
|