@php $showEditBatchModal = request()->boolean('edit') || old('_batch_form') === 'edit'; @endphp

{{ $batch->name }}

Course: {{ $course->title }}

@if (session('success'))
{{ session('success') }}
@endif
Dates
{{ $batch->start_date?->format('d M Y') }} - {{ $batch->end_date?->format('d M Y') }}
Status
{{ ucfirst($batch->status) }}
Class days
{{ implode(', ', (array) $batch->class_days) }}
Class time
{{ $batch->class_time }}
@can('assignMentorsToBatch') Assign mentors @endcan @can('assignStudentsToBatch') Assign students @endcan @can('editBatch') @endcan
Mentors
@forelse($batch->mentors as $mentor)
{{ $mentor->name }}
{{ $mentor->email }}
@empty
No mentors assigned.
@endforelse
Students
@forelse($batch->students as $student)
{{ $student->name }}
{{ $student->email }}
@empty
No students enrolled.
@endforelse
@can('editBatch') @include('batch::admin.batches.partials.edit-modal', [ 'modalName' => 'edit-batch', 'show' => $showEditBatchModal, 'batch' => $batch, ]) @endcan