@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $statusColors = ['upcoming' => 'amber', 'running' => 'green', 'completed' => 'slate', 'cancelled' => 'red']; @endphp
Weekly Routine @include('tenant.coaching._errors') @if($courses->isEmpty())
Create a course first — batches are runs of a course. Go to Courses →
@endif
@forelse($batches as $batch) @empty @endforelse
Batch Schedule Instructor Room / Mode Seats Status
{{ $batch->name }}

{{ $batch->course?->name }} · {{ $batch->code }}

{{ $batch->daysLabel() }}

{{ $batch->timeLabel() }} · from {{ $batch->start_date->format('d M Y') }}

{{ $batch->teacher ? $batch->teacher->first_name.' '.$batch->teacher->last_name : '—' }} {{ $batch->mode === 'online' ? 'Online' : ($batch->room?->name ?? '—') }}@if($batch->mode === 'hybrid') · Hybrid @endif {{ $batch->active_enrollments_count }}{{ $batch->capacity ? ' / '.$batch->capacity : '' }} @if($batch->capacity && $batch->active_enrollments_count >= $batch->capacity)Full@endif {{ ucfirst($batch->status) }}
No batches match these filters.
@include('tenant.coaching.batches._form', ['batch' => null])