@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; $tz = $tenant->timezone ?? config('app.timezone'); @endphp

Upcoming

@forelse($upcoming as $class) @php $start = $class->starts_at->copy()->setTimezone($tz); $end = $class->ends_at->copy()->setTimezone($tz); @endphp

{{ $class->title }}

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

{{ $start->format('D, d M') }} · {{ $start->format('g:i A') }} – {{ $end->format('g:i A') }}

{{ $class->platformLabel() }}{{ $class->teacher ? ' · '.$class->teacher->first_name.' '.$class->teacher->last_name : '' }}

@if($class->isLive())Live now@endif
@if($class->isJoinable()) Join class @else Opens {{ $start->copy()->subMinutes(\App\Models\LiveClass::EARLY_JOIN_MINUTES)->diffForHumans() }} @endif
@empty

No live classes scheduled.

@endforelse

Past classes & recordings

@forelse($past as $class)

{{ $class->title }}

{{ $class->starts_at->copy()->setTimezone($tz)->format('d M Y') }} · {{ $class->batch?->name }} · {{ $joined->contains($class->id) ? 'You attended' : 'Missed' }}

@if($class->recording_url) Watch recording @elseif($class->status === 'cancelled') Cancelled @endif
@empty

No past classes yet.

@endforelse