Skip to content

Commit

Permalink
id in jpurnalstaff
Browse files Browse the repository at this point in the history
  • Loading branch information
ArdianS18 committed Nov 8, 2024
1 parent 44ea2ab commit 343362d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Http/Controllers/Api/StafApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,9 @@ public function list_point_student(Request $request)
$students = $this->student->getByApi($request);
return response()->json(['status' => 'success', 'message' => "Berhasil mengambil data",'code' => 200, 'data' => StudentPointResource::collection($students),]);
}

public function popular_violations()
{

}
}
1 change: 1 addition & 0 deletions app/Http/Resources/EmployeeJournalResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class EmployeeJournalResource extends JsonResource
public function toArray(Request $request): array
{
return [
'id' => $this->id,
'date' => Carbon::parse($this->created_at)->translatedFormat('d F Y'),
'title' => $this->title,
'description' => $this->description,
Expand Down
1 change: 1 addition & 0 deletions routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
Route::get('staf/list-point-student', [StafApiController::class, 'list_point_student']);



Route::get('lesson-schedule/{user}', [LessonScheduleApiController::class, 'index']);
Route::get('teacher-journal/{lessonSchedule}', [LessonScheduleApiController::class, 'create']);
Route::get('history-journal/{user}', [LessonScheduleApiController::class, 'history']);
Expand Down

0 comments on commit 343362d

Please sign in to comment.