@extends('layouts/contentNavbarLayout') @section('title', 'Switch Student') @section('vendor-style') @endsection @section('content')

Switch Student

Student Details
@if (session('success')) @endif @if (session('error')) @endif @if ($errors->any()) @endif
Room reallocation

Move students to a new room/bed. Ensure the target bed is vacant. Effectivity date is when the change takes effect. Room history is updated for audit.

@csrf
@error('effectivity_date')
{{ $message }}
@enderror

Date the room change takes place.

@php $oldSwitches = old('switches', [['student_id' => '', 'target_bed_id' => '']]); if (empty($oldSwitches)) { $oldSwitches = [['student_id' => '', 'target_bed_id' => '']]; } @endphp @foreach($oldSwitches as $idx => $row)

Vacant beds only.

@endforeach

Reset
@endsection @section('page-script') @endsection