Assign student to parent

{{-- form for selecting user --}}
@isset($classes) @foreach ($classes as $item) @endforeach @endisset @isset($sections) @foreach ($sections as $item) @endforeach @endisset @isset($students) @foreach ($students as $item) @endforeach @endisset @csrf
@foreach($children as $student) @endforeach
S/N Name Class section Email
{{$loop->iteration}} {{ $student->name}} @isset ($student->studentRecord->myClass) {{$student->studentRecord->myClass->name}} @endisset @isset($student->studentRecord->section) {{$student->studentRecord->section->name}} @endisset {{ $student->email}}
@csrf