where('parent_id', $parentId) ->where('school_year', $schoolYear) ->whereIn('status', ['submitted', 'under_review']) ->orderBy('id', 'DESC') ->first(); } public function requestForParentYear(int $parentId, string $schoolYear): ?array { return $this->where('parent_id', $parentId) ->where('school_year', $schoolYear) ->orderBy('id', 'DESC') ->first(); } }