Skip to content

Commit

Permalink
Update LessonScheduleApiController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ArdianS18 committed Nov 26, 2024
1 parent a15e188 commit 87e4599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/LessonScheduleApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function create(LessonSchedule $lessonSchedule)
public function show(LessonSchedule $lessonSchedule)
{
$classroomStudents = $this->classroomStudent->getByClassId($lessonSchedule->classroom->id);
$attendanceJournals = $lessonSchedule->teacherJournals->first()->attendanceJournals == null ? null : $lessonSchedule->teacherJournals->first()->attendanceJournals;
$attendanceJournals = $lessonSchedule->teacherJournals->first() != null ? $lessonSchedule->teacherJournals->first()->attendanceJournals : null;

return response()->json([
'status' => 'success',
Expand Down

0 comments on commit 87e4599

Please sign in to comment.