# Classrooms and equipment ## Manage classrooms Open **Administration → Educational Institution → Settings → Classrooms** (`/educational-institute/settings?tab=4`). First create branches, buildings and orientations using [institution settings](/en/docs/institution-settings). Teaching format selection uses the teaching-type directory. A classroom is a physical venue that can be assigned in a timetable. Its record contains location, floor, student capacity, teaching types, orientations and nested equipment records. ## Create a classroom 1. Click Add on the Classrooms tab. 2. Fill the following fields. | Field | Example | Rule | | --- | --- | --- | | Name | A-204 | At least one nonempty translation, up to 255 characters each. | | Branch | Central Campus | Required existing record. | | Building | Teaching Building A | Required existing record. | | Teaching Format | Practical class, Laboratory class | Multiple teaching-type selection, required by the form. | | Classroom Orientation | Computer Laboratory | Multiple selection, required by the form. | | Floor | 2 | Required integer (stored as `tax`). | | Students | 24 | Required numeric value in the form, recording room capacity (stored as `students`). | 3. Enter other language versions where needed. The room number can be identical across languages, but classroom names must be unique within a language. Distinguish equal room numbers in different buildings with building prefixes, for example A-204 and B-204. 4. Select a branch and its corresponding building. The current form chooses the two independently, so verify their consistency yourself. 5. Save, find the classroom by name and check floor, capacity, types and location. The list includes room name, teaching format, branch/building, orientation, floor and student capacity. Search matches translated classroom names. A link with the `classroom_id` parameter restricts the table to that room. Reopen the tab without the parameter to see the complete list. ## Edit a classroom Open the row actions and choose Edit. You can change names, location, floor, capacity, teaching types and orientations. Saving submitted teaching-type and orientation lists replaces the prior relations. Names are created or updated per language. For example, remove Laboratory class from the teaching types if the room is no longer suitable for laboratory work, retain Practical class and save. The room keeps its ID. Review existing timetables after changing its building or capacity. Editing room attributes does not automatically relocate scheduled classes to a different physical room record or change enrolled student headcounts. ## Add equipment Equipment is a separate directory related to a specific classroom. There is no dedicated Classroom Equipments tab. 1. Find A-204. 2. Open its row action menu and choose the add-child action. With equipment read permission, expand the row to see its equipment subtable; it may be empty until equipment is added. 3. Enter Computer, code PC, and count 24. Add Russian Компьютер / PC and Armenian Համակարգիչ / PC names if needed. 4. Save and expand the classroom. Verify the new equipment row and count. 5. Add Projector / PRJ with count 1 in the same way. | Equipment field | Rule | | --- | --- | | Classroom | Automatically set to the selected room's ID. | | Name | At least one nonempty translation; maximum 100 characters per language on the server. | | Code | Translated field marked in the form; the server permits an empty value and limits it to 100 characters. | | Count | Required integer, at least 1. | The nested table shows name, code and count. Use the row edit action or edit form to change the count and translations. For example, after installing two more computers, change 24 to 26 and save. Changing equipment count does not by itself increase room capacity. If the room no longer has the equipment, use its row delete action after checking the record. ## Delete and restore Classrooms are soft deleted and can be restored in the classroom trash with the required permission. A deleted room with a matching name can cause a deleted-record conflict. After restoring a room, review its nested equipment and building/branch references. The equipment resource registers create, edit and delete actions, while separate trash and restoration endpoints are currently disabled. Equipment is soft deleted on the server, but the interface does not provide equipment recovery. Recreating a matching deleted name can produce `deleted_data_check`; contact an administrator before entering a new record in that case. ## Permissions and scopes | Action | Permission | | --- | --- | | Open classrooms tab | `classrooms.index` plus directory reads `branches.index`, `buildings.index`, `classroom-orientations.index`, `teaching-types.index`. | | Create/edit room | `classrooms.store`, `classrooms.update`. | | Delete room | `classrooms.destroy`. | | Classroom trash/restore | `classrooms.deleted-items`, `classrooms.restore`. | | Show equipment | `classroom-equipments.index`, checked separately by the interface. | | Create/edit/delete equipment | `classroom-equipments.store`, `classroom-equipments.update`, `classroom-equipments.destroy`. | The `classrooms` and `classroom-equipments` resource routes declare no special faculty, department or branch scopes. They are institution-level directories, while reading and editing equipment use separate permissions. Missing equipment read access hides the nested table. Room selection in a timetable uses that timetable's permissions. ## Common issues - **Room name already used:** check other buildings and deleted rooms. Active classroom names are unique within a language, including other buildings. - **Building or teaching type unavailable:** check the parent directories and read permissions. - **No add-equipment action or expand control:** check equipment creation/read permissions separately from classroom permissions. - **Equipment cannot be saved:** check nonempty names, length limits and integer count of at least 1. - **No equipment restore tab:** this operation is not registered in the current routes. - **Timetable cannot select a room:** verify an active classroom with the correct building and floor, and relevant timetable access. ## Implementation references - [container/index.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Administration/EducationalInstitution/InstituteSettingsPages/pages/Classrooms/container/index.tsx) - [ClassroomsTable.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Administration/EducationalInstitution/InstituteSettingsPages/pages/Classrooms/components/ClassroomsTable/App/ClassroomsTable.tsx) - [CreateClassroomsModal.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Administration/EducationalInstitution/InstituteSettingsPages/pages/Classrooms/components/ClassroomsTable/components/CreateClassroomsModal/CreateClassroomsModal.tsx) - [CreateClassroomsBranchSelects.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Administration/EducationalInstitution/InstituteSettingsPages/pages/Classrooms/components/ClassroomsTable/components/ClassroomsBranchSelects/CreateClassroomsBranchSelects.tsx) - [ClassroomsTeachingSelects.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Administration/EducationalInstitution/InstituteSettingsPages/pages/Classrooms/components/ClassroomsTable/components/ClassroomsTeachingSelects/ClassroomsTeachingSelects.tsx) - [ClassroomChildForm/index.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Administration/EducationalInstitution/InstituteSettingsPages/pages/Classrooms/components/ClassroomsChildTable/components/ClassroomChildForm/index.tsx) - [CreateClassroomsChildModal.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Administration/EducationalInstitution/InstituteSettingsPages/pages/Classrooms/components/ClassroomsChildTable/components/CreateClassroomsChildModal/CreateClassroomsChildModal.tsx) - [ClassroomsChildTable.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/Administration/EducationalInstitution/InstituteSettingsPages/pages/Classrooms/components/ClassroomsChildTable/App/ClassroomsChildTable.tsx) - [Classroom/routes/api.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Classroom/routes/api.php) - [ClassroomRequest.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Classroom/Http/Requests/ClassroomRequest.php) - [ClassroomRepository.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Classroom/Http/Repositories/ClassroomRepository.php) - [ClassroomService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Classroom/Http/Services/ClassroomService.php) - [ClassroomEquipment/routes/api.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/ClassroomEquipment/routes/api.php) - [ClassroomEquipmentRequest.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/ClassroomEquipment/Http/Requests/ClassroomEquipmentRequest.php) - [ClassroomEquipmentRepository.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/ClassroomEquipment/Http/Repositories/ClassroomEquipmentRepository.php) - [ClassroomEquipmentService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/ClassroomEquipment/Http/Services/ClassroomEquipmentService.php)