opens=20 closes=18 L16: +1 -0 => { L22: +1 -0 => { L24: +1 -0 => if (session('role') !== 'teacher') { L26: +0 -1 => } L34: +1 -0 => if (!$student) { L36: +0 -1 => } L46: +0 -1 => } L51: +1 -0 => { L53: +1 -0 => if ($userId && DB::table('users')->where('id', $userId)->exists()) { L61: +0 -1 => } L62: +0 -1 => } L67: +1 -0 => { L69: +1 -0 => if (session('role') !== 'teacher') { L71: +0 -1 => } L99: +1 -0 => ->leftJoin('students', function ($join) use ($teacherId) { L102: +0 -1 => }) L120: +1 -0 => if ($studentClasses->isEmpty()) { L135: +1 -0 => if ($hasStudentId) { L140: +1 -1 => } else { L142: +0 -1 => } L145: +0 -1 => } L162: +1 -0 => if ($hasStudentId) { L166: +0 -1 => } L173: +1 -0 => if (!empty($subjectIds)) { L175: +0 -1 => } L177: +1 -0 => $studentsWithSubjects = $rows->groupBy('student_id')->map(function ($assignments) use ($subjectMap) { L181: +1 -0 => foreach ($assignments as $assignment) { L183: +1 -0 => if (!empty($assignment->subject)) { L185: +1 -1 => } elseif (!empty($assignment->subject_id) && isset($subjectMap[$assignment->subject_id])) { L187: +0 -1 => } L189: +1 -0 => if ($subjectName && !in_array($subjectName, $seenSubjects)) { L193: +1 -1 => } elseif (!$subjectName) { L195: +0 -1 => } L196: +0 -1 => } L199: +0 -1 => });