@php use App\Support\Money; $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; @endphp
@forelse($active as $enrollment) @php $batch = $enrollment->batch; $stats = $attendance->get($batch->id); $due = $enrollment->dueCents(); @endphp

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

{{ $batch->name }}

@if($batch->meetsOn($today))Class today@endif
Days
{{ $batch->daysLabel() }}
Time
{{ $batch->timeLabel() }}
Instructor
{{ $batch->teacher ? $batch->teacher->first_name.' '.$batch->teacher->last_name : '—' }}
Where
{{ $batch->mode === 'online' ? 'Online' : ($batch->room?->name ?? '—') }}
Attendance
{{ $stats && $stats->total ? round($stats->attended / $stats->total * 100).'% ('.$stats->attended.'/'.$stats->total.')' : '—' }}
@if($showFees)
Fee due
{{ $due ? Money::format($due, $currency) : 'Paid up' }}
@endif
@if($batch->online_link && $batch->mode !== 'offline') Join online class @endif @if($showFees && $due) Pay fees @endif
@empty
You're not enrolled in any batch right now.
@endforelse
@if($past->isNotEmpty())

Past batches

@foreach($past as $enrollment)
{{ $enrollment->batch?->course?->name }} — {{ $enrollment->batch?->name }} {{ ucfirst($enrollment->status) }}
@endforeach
@endif