@extends('layouts.app') @section('title', 'Online Classes - Videos') @section('content') @php $canManage = auth()->user()?->hasPermission('online.manage') ?? false; @endphp
| Class | Title | Subject | Teacher | Scheduled | Duration | Room code | Status | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ $classNames[$video->class_id] ?? '—' }} | {{ $video->title }} | {{ $subjects->firstWhere('id', $video->subject_id)?->name ?? '—' }} | {{ $teachers->firstWhere('id', $video->staff_id)?->full_name ?? '—' }} | {{ \Carbon\Carbon::parse($video->scheduled_at)->format('d M Y H:i') }} | {{ $video->duration }} min | {{ $video->room_code }} | ||