| Batch Details | Schedule | Instructor | Occupancy | Status | Actions |
|---|---|---|---|---|---|
|
{{ \Carbon\Carbon::parse($batch->start_date)->format('d') }}
{{ \Carbon\Carbon::parse($batch->start_date)->format('M') }}
{{ $batch->batch_name }}
{{ $batch->batch_code }}
•
{{-- Course Name + Deleted Check --}}
@if ($batch->course)
{{ Str::limit($batch->course->name, 20) }}
@if ($batch->course->trashed())
DELETED
@endif
@else
Course Removed
@endif
|
{{-- 2. Schedule --}}
{{ \Carbon\Carbon::parse($batch->start_time)->format('h:i A') }} -
{{ \Carbon\Carbon::parse($batch->end_time)->format('h:i A') }}
{{ \Carbon\Carbon::parse($batch->start_date)->diffInDays(\Carbon\Carbon::parse($batch->end_date)) + 1 }}
Days Duration
|
{{-- 3. Instructor --}}
@if ($batch->instructor)
{{ substr($batch->instructor->name, 0, 1) }}
{{ $batch->instructor->name }}
|
{{-- 4. Occupancy --}}
{{ $batch->booked_seats }} / {{ $batch->total_seats }}
{{ $occ }}%
|
{{-- 5. Status --}}
@if ($batch->status === 'open') Open @elseif($batch->status === 'full') Full @else Closed @endif | {{-- 6. Actions --}}
|
No Batches FoundTry adjusting your filters or search. |
|||||