@include('frontend.header')

About the Department

@foreach($department->about as $about) @for($i = 1; $i <= 6; $i++) @php $para="para$i" ; @endphp @if(!empty($about->$para))

{{ $about->$para }}

@endif @endfor @endforeach

Vision

@foreach($department->vision_mission as $vision_mission) {{ $vision_mission->vision }} @endforeach

Mission

@foreach($department->vision_mission as $vision_mission) {{ $vision_mission->mission }} @endforeach

Department Milestones

@foreach($department->milestone as $milestone)
{{ $milestone->year }}

{{ $milestone->para }}

@endforeach
@php $hod = $department->faculties->where('designation', 'HOD')->first(); @endphp

Our HOD

@if($hod)
{{ $hod->name }}
{{ $hod->name }}

{{ $hod->qualification }}

{{ $hod->designation }}

View Profile
@else

No HOD added yet for this department.

@endif

Our Faculty

@php // Filter out HOD $otherFaculties = $department->faculties->where('designation', '!=', 'HOD'); $facultyCount = $otherFaculties->count(); @endphp @if($facultyCount > 0) @else

No faculty added yet.

@endif

Syllabus & Resources

@include('frontend.footer')