@extends('frontend.main_master') @section('title', 'Panel de Profesor - Astro Sabio') @section('body-class', 'teacher-panel-body') @section('content')
{{-- Encabezado Hero --}}

Panel de Profesor

Gestione sus clases en vivo, grabaciones y anotaciones interactivas en un solo lugar.

@csrf
@if(session('teacher_panel_status'))
{{ session('teacher_panel_status') }}
@endif {{-- Estadísticas --}}
@foreach ([ ['Clases Totales', $stats['total'], 'fa-chalkboard-user'], ['Clases Activas', $stats['active'], 'fa-tower-broadcast'], ['Clases Grabadas', $stats['recorded'], 'fa-clapperboard'], ['Duración (min)', $stats['recordedMinutes'], 'fa-clock'], ['Estudiantes', $stats['students'], 'fa-user-graduate'], ['Anotaciones', $stats['annotations'], 'fa-pen-nib'], ] as [$label, $value, $icon])
{{ $value }}
{{ $label }}
@endforeach
{{-- Clases Activas --}}

Clases Activas / Pendientes

@if($activeSessions->isEmpty())

No hay clases activas actualmente. Haga clic en "Iniciar Nueva Clase en Vivo" para abrir una sala y compartir el enlace de invitación.

@else
@foreach($activeSessions as $session) @php $joinUrl = route('panel.live.join', $session->room_id); @endphp
{{ $session->student_id ? 'EN VIVO' : 'Esperando Estudiante' }}
Estudiante: {{ $session->student ? trim($session->student->name . ' ' . $session->student->last_name) : 'Aún no se ha unido' }}
Creada: {{ $session->created_at->format('d.m.Y H:i') }} @if($session->started_at) · Inicio: {{ $session->started_at->format('H:i') }} @endif
Entrar a la Clase
@csrf
@endforeach
@endif
{{-- Clases Pasadas --}}

Historial de Clases

Todas mis grabaciones →
@if($pastSessions->isEmpty())

Aún no hay clases completadas.

@else
@foreach($pastSessions as $session) @endforeach
Fecha Estudiante Duración Grabación Acciones
{{ optional($session->ended_at ?? $session->created_at)->format('d.m.Y H:i') }} {{ $session->student ? trim($session->student->name . ' ' . $session->student->last_name) : '—' }} @if($session->started_at && $session->ended_at) {{ $session->started_at->diffForHumans($session->ended_at, true) }} @else — @endif @if($session->hasRecording()) Ver @else Sin grabación @endif @if($session->hasRecording())
@csrf
@endif
{{ $pastSessions->links() }}
@endif
{{-- Anotaciones Guardadas --}}

Anotaciones y Dibujos Guardados

@if($annotations->isEmpty())

Aún no hay dibujos guardados. Durante la clase en vivo, congele la pantalla, dibuje y guarde con 💾.

@else
@foreach($annotations as $annotation)
@if($annotation->png_path) Anotación @else
Sin vista previa
@endif
{{ $annotation->created_at->format('d.m.Y H:i') }}
{{ $annotation->liveSession->student ? trim($annotation->liveSession->student->name . ' ' . $annotation->liveSession->student->last_name) : '' }}
@csrf
@endforeach
@endif
@endsection