@extends('layouts.teacher') @section('title', $session->displayTitle().' · Live class') @section('content')
Back @if (session('status'))
{{ session('status') }}
@endif @if ($errors->any())
{{ $errors->first() }}
@endif

Class: {{ $session->displayTitle() }}

Type: {{ $session->delivery_method?->label() }}

@if ($session->delivery_method?->value === 'one_to_one')

Student: {{ $session->student?->full_name ?: '1-to-1' }}

@endif

Status: {{ $session->status?->label() }}

Time: {{ $session->starts_at?->timezone('Africa/Accra')->format('g:i A') }} – {{ $session->ends_at?->timezone('Africa/Accra')->format('g:i A') }}

@if ($session->status?->isEnded())

This class has ended. Students can no longer join this session.

@else

Start Class is available from the scheduled start time. End Class is available from the scheduled end time. Use Extend if the class needs more time. Students cannot start or end a class.

@include('teacher.live.actions', [ 'session' => $session, 'canJoin' => $canJoin, 'canEnd' => $canEnd, 'canExtend' => $canExtend ?? false, 'startBlockedReason' => $startBlockedReason ?? null, 'endBlockedReason' => $endBlockedReason ?? null, 'size' => 'btn-md', ])
@endif
@if ($session->report) @include('lessons.partials.class-report', ['report' => $session->report, 'audience' => 'teacher']) @endif
@endsection