@extends('layouts.app') @section('title', 'Live Room') @section('content') @php $isLive = $video->status === 'live'; $isEnded = $video->status === 'ended'; $statusTone = $isLive ? 'danger' : ($isEnded ? 'neutral' : 'warning'); $statusLabel = $isLive ? 'Live now' : ucfirst($video->status); @endphp
{{ $video->description ?: 'The host has started this session.' }}
{{ $video->description ?: 'The live stream will appear here when the host starts the session.' }}
@if($isEnded){{ $class->name ?? 'The class' }} learners can join now using room code {{ $video->room_code }}.
@else{{ $class->name ?? 'The class' }} will join with the room code above.
@endif