Register Carry Over Course(s)

@foreach ($subsidiaries as $department)
UNIVERSITY OF MAIDUGURI
(Student Carry Over Registration)
NAME: {{ $this->student->fullname }}
ID. NUMBER: {{ $this->student->student_id_number }}
{{ $department->school->school_title}} @if (($department->dept_title === 'COMPUTER SCIENCE') || ($department->dept_title === 'MATHEMATICS') || ($department->dept_title === 'STATISTICS'))
DEPARTMENT: MATHEMATICAL SCIENCE
@elseif(($department->dept_title === 'PHYSICAL EDUCATION') || ($department->dept_title === 'HEALTH EDUCATION'))
DEPARTMENT: PHYSICAL AND HEALTH EDUCATION
@elseif(($department->dept_title === 'BOTANY') || ($department->dept_title === 'ZOOLOGY') || ($department->dept_title === 'ENVIRONMENTAL BIOLOGY'))
DEPARTMENT: BIOLOGICAL SCIENCE
@elseif(($department->dept_title === 'CHEMISTRY') || ($department->dept_title === 'INDUSTRIAL CHEMISTRY') || ($department->dept_title === 'PETROLEUM CHEMISTRY'))
DEPARTMENT: PURE AND APPLIED CHEMISTRY
@elseif(($department->dept_title === 'FACULTY OF VETERINARY MEDICINE'))
DEPARTMENT: VETERINARY MEDICINE
@else
DEPARTMENT: {{ $department->dept_title}}
@endif
{{-- student Details --}}
PROGRAM: {{ $department->dept_title}}
LEVEL: {{ $this->student->level }}
SESSION: {{ Carbon\Carbon::parse($start_session->start_at)->year }} / {{ Carbon\Carbon::parse($start_session->end_at)->year }}
@endforeach
processing..
Registered Carry Over(s) [ {{ $countCarry ?? 0 }} / {{ $this->studentNoOfCarry->no_carry_over ?? 0 }} ]
@if(($studentNoOfCarry) && ($student) && ($countCarry === $studentNoOfCarry->no_carry_over)) Proceed @endif
@if ($student) @forelse ($courses as $student ) @foreach ($student->courses as $carryOver) @if ($carryOver->pivot->offering_semester === 'FIRST' ) @endif @endforeach @endforeach @endif
FIRST SEMESTER COURSES
CODE TITLE UNITS @if(($studentNoOfCarry) && ($student) && ($countCarry != $studentNoOfCarry->no_carry_over) && (!$stop)) Add @endif
{{ $carryOver->course_code ?? ''}} {{ $carryOver->course_title ?? ''}} {{ $carryOver->units ?? ''}}
delete
@if ($student) @forelse ($courses as $student ) @foreach ($student->courses as $carryOver) @if ($carryOver->pivot->offering_semester === 'SECOND' ) @endif @endforeach @endforeach @endif
SECOND SEMESTER COURSES
CODE TITLE UNITS
{{ $carryOver->course_code ?? ''}} {{ $carryOver->course_title ?? ''}} {{ $carryOver->units ?? ''}}
delete
Student Carry Over [ {{ $countCarry ?? 0 }} / {{ $this->studentNoOfCarry->no_carry_over ?? 0 }} ]
@if ($this->studentNoOfCarry && ($this->studentNoOfCarry->student_status == 'Proceed'))
*
@foreach (App\Models\Assets::LEVEL as $value => $label) @if ($label < $this->student->level) @endif @endforeach
@endif @if ($this->studentNoOfCarry && ($this->studentNoOfCarry->student_status != 'Proceed'))
*
@foreach (App\Models\Assets::LEVEL as $value => $label) @if ($label <= $this->student->level) @endif @endforeach
@endif
*
@foreach (App\Models\Assets::SEMESTER as $value => $label) @endforeach
*
@if ($levelCourses) @foreach ($levelCourses as $offer) @foreach ($offer->courses as $departmentOffer ) @if (($semester === $departmentOffer->pivot->semester_offer )) @endif @endforeach @endforeach @endif
{{ __('cancle') }} {{-- @if($done) --}} {{ __('submit') }} {{-- @endif --}}