| @@ 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. |
|
| @@ 249-259 (lines=11) @@ | ||
| 246 | * @param \App\Nilai $nilai |
|
| 247 | * @return \Illuminate\Http\Response |
|
| 248 | */ |
|
| 249 | public function show($id) |
|
| 250 | { |
|
| 251 | $nilai = $this->nilai->with(['siswa', 'user', 'nilai_akademik'])->findOrFail($id); |
|
| 252 | ||
| 253 | $response['nilai'] = $nilai; |
|
| 254 | $response['error'] = false; |
|
| 255 | $response['message'] = 'Success'; |
|
| 256 | $response['status'] = true; |
|
| 257 | ||
| 258 | return response()->json($response); |
|
| 259 | } |
|
| 260 | ||
| 261 | /** |
|
| 262 | * Show the form for editing the specified resource. |
|