@php $activeStatus = $activeStatus ?? (string) request()->query('status', 'all'); $courses = $courses ?? collect(); $showCreateBatchModal = request()->boolean('create') || old('_batch_form') === 'create'; $showEditBatchModal = old('_batch_form') === 'edit'; $tabs = [ 'all' => ['label' => 'All', 'icon' => 'fa-solid fa-layer-group'], 'upcoming' => ['label' => 'Upcoming', 'icon' => 'fa-regular fa-calendar-plus'], 'running' => ['label' => 'Running', 'icon' => 'fa-solid fa-person-running'], 'completed' => ['label' => 'Completed', 'icon' => 'fa-solid fa-circle-check'], ]; @endphp

Admin ยท Batch Management

Batches

All batches across courses with mentors, students and schedule count.

@can('create', \Modules\Batch\Models\Batch::class) @endcan
@push('styles') @endpush
@foreach ($tabs as $key => $tab) @php $isActive = $activeStatus === $key; @endphp {{ $tab['label'] }} @endforeach

Batch Records

Use search to quickly find any course batch.

{{ ucfirst($activeStatus) }} View
SL Batch Course Status Mentors Students Classes Actions
@can('create', \Modules\Batch\Models\Batch::class)

New Batch

Create batch

Choose a course and set the class schedule in one step.

@include('batch::admin.batches.partials.create-form', [ 'modalName' => 'create-batch', 'includeCourseSelect' => true, 'courses' => $courses, ])
@endcan @can('editBatch') @include('batch::admin.batches.partials.edit-modal', [ 'modalName' => 'edit-batch', 'show' => $showEditBatchModal, ]) @endcan @push('scripts') @endpush