@if (isset($dept) && count($dept) > 0)
@foreach ($dept as $item)
@php
$updatedName = trim($item->name ?? '');
$updatedDesignation = trim($item->designation ?? '');
if (strtolower($updatedName) == strtolower('Sanjeev Mishra')) {
$updatedName = 'Er. Sanjeev Mishra';
$updatedDesignation = 'Assistant Professor';
} elseif (strtolower($updatedName) == strtolower('Chetan Kumar Pal')) {
$updatedName = 'Mr. Chetan Kumar Pal';
$updatedDesignation = 'Workshop Superintendent';
} elseif (strtolower($updatedName) == strtolower('Arun Kumar Singh')) {
$updatedName = 'Mr. Arun Kumar Singh';
$updatedDesignation = 'Lab Instructor';
}
@endphp
{{ $updatedName }}
{{ $updatedDesignation }}
@endforeach
@else
{{-- Existing Fallback Faculty --}}
Er. Rajesh Kumar
Lecturer
Faculty Profile
Dr. Ashray Jaiswal
Associate Professor
Faculty Profile
Dr. B.N. Pathak
Associate Professor
Faculty Profile
{{-- Updated Existing Members --}}
Er. Sanjeev Mishra
Assistant Professor
Faculty Profile
Mr. Chetan Kumar Pal
Workshop Superintendent
Faculty Profile
Mr. Arun Kumar Singh
Lab Instructor
Faculty Profile
{{-- New Members --}}
Er. Amit Kumar Yadav
HOD
Faculty Profile
Er. Dolly Singh
Assistant Professor
Faculty Profile
@endif