@php $teachersShow = App\Models\HomepageSetting::get('teachers_show', true); $teachersLabel = App\Models\HomepageSetting::get('teachers_label', 'OUR TUTORS'); $teachersHeading = App\Models\HomepageSetting::get('teachers_heading', 'Learn from Verified Experts'); $teachersSubtext = App\Models\HomepageSetting::get('teachers_subtext', 'Every tutor on our platform is hand-picked, certified, and vetted through a background approval pipeline.'); $teachersViewAllShow = App\Models\HomepageSetting::get('teachers_viewall_show', true); $teachersMode = App\Models\HomepageSetting::get('teachers_mode', 'auto'); $teachersFeaturedIds = App\Models\HomepageSetting::get('teachers_featured_ids', []); $teachersLimit = App\Models\HomepageSetting::get('teachers_limit', 4); $teachersShowBadge = App\Models\HomepageSetting::get('teachers_show_badge', true); $teachersShowRating = App\Models\HomepageSetting::get('teachers_show_rating', true); $teachersShowSubjects = App\Models\HomepageSetting::get('teachers_show_subjects', true); $teachersColumns = App\Models\HomepageSetting::get('teachers_columns', 4); @endphp @if($teachersShow)
@if(isset($activeEditingSection) && $activeEditingSection === 'teachers')
Editing: Meet Our Teachers
@endif
{{ $teachersLabel }}

{{ $teachersHeading }}

{{ $teachersSubtext }}

@if($teachersViewAllShow) View All Instructors @endif
@php $query = \App\Models\Teacher::approved()->with(['user', 'sections']); if ($teachersMode === 'manual' && !empty($teachersFeaturedIds)) { $query->whereIn('id', $teachersFeaturedIds); } $activeTeachers = $query->take($teachersLimit)->get(); @endphp
@foreach($activeTeachers as $teacher)
@if($teacher->user->profile_photo_path) {{ $teacher->user->name }} @else
{{ substr($teacher->user->name ?? 'T', 0, 2) }}
@endif @if($teachersShowBadge) Verified @endif
{{ $teacher->specialization ?? 'Subject Specialist' }} @if($teachersShowRating)
4.9
@endif

{{ $teacher->user->name }}

{{ $teacher->experience_years ?? '5+' }} Years Exp • {{ $teacher->qualification ?? 'Degree Certified' }}

Sections: {{ $teacher->sections->count() }} Profile →
@endforeach
@endif