@php($availableMentorSearchIndex = ($availableMentors ?? collect()) ->map(fn ($m) => ['id' => $m->id, 'text' => strtolower($m->name . ' ' . $m->email)]) ->values())

Batch Mentors

Batch: {{ $batch->name }}

Back View Schedule
{{-- success flash is handled by the global layout to avoid duplicate messages --}} @if ($errors->any())
@endif

Assigned mentors

These mentors are assigned to this batch.

{{ isset($assignedMentors) ? $assignedMentors->count() : 0 }}
@if(!isset($assignedMentors) || $assignedMentors->count() === 0)
No mentors assigned yet.
@else
@foreach($assignedMentors as $mentor)
{{ $mentor->name }}
{{ $mentor->email }}
Mentor
@csrf @method('DELETE')
@endforeach
@endif