{{-- resources/views/rooms/show.blade.php --}} @extends('layouts.app') @section('title', $room->name) @section('content')

{{ $room->name }}

@if($room->isBbbRoom()) BBB Room @else Regular Room @endif
Room Information
@if($room->note) @endif
Name: {{ $room->name }}
Type: {{ ucfirst($room->type) }} Room
Capacity: {{ $room->capacity ?? 'Unlimited' }}
Note: {{ $room->note }}
@if($room->isBbbRoom())
BBB Meeting Information
Meeting ID: {{ $room->bbb_meeting_id }}
Status: @php $statusColors = [ 'scheduled' => 'warning', 'active' => 'success', 'ended' => 'secondary' ]; @endphp {{ ucfirst($room->bbb_status) }}
Room Type: @if($room->isExamRoom()) Exam Room @else Lesson Room @endif
Scheduled: @if($room->bbb_scheduled_at) {{ $room->bbb_scheduled_at->format('M d, Y H:i') }} @else Not scheduled @endif
Created By: {{ $room->creator->name ?? 'System' }}
@endif
@if($room->isBbbRoom())
BigBlueButton Room Actions
@if($room->isActive() && $isRunning)
@if(auth()->id() == $room->bbb_created_by || auth()->user()->hasRole(['admin', 'lms_manager'])) Join as Moderator
@csrf
@endif Join as Participant
@elseif($room->isScheduled())
@if(auth()->id() == $room->bbb_created_by || auth()->user()->hasRole(['admin', 'lms_manager'])) Start Meeting Now @endif
@elseif($room->bbb_status == 'ended')
This meeting has ended. @if($room->bbb_record) View Recordings @endif
@endif
@else @if(auth()->user()->hasRole(['admin', 'lms_manager']))
Convert to BBB Room

This is a regular room. You can convert it to a BigBlueButton video conference room.

Convert to BBB Room
@endif @endif
Associated Classes
@if($room->classes->count() > 0)
@foreach($room->classes as $class) @endforeach
Batch Subject Teacher Semester Hours/Week
{{ $class->batch->name ?? 'N/A' }} {{ $class->subject->title ?? 'N/A' }} {{ $class->teacher->user->name ?? 'N/A' }} {{ $class->semester }} {{ $class->weekly_hours }} hrs
@else

No classes are assigned to this room.

@endif
@if($room->isBbbRoom())
Participants {{ $room->bbbParticipants->count() }}
@if($room->bbbParticipants->count() > 0)
@foreach($room->bbbParticipants as $participant)
{{ $participant->user->name }}
{{ $participant->role }} • {{ $participant->joined_at->format('H:i') }}
{{ ucfirst($participant->role) }}
@endforeach
@else

No participants have joined yet.

@endif
BBB Settings
  • Recording: @if($room->bbb_record) Enabled @else Disabled @endif
  • @if($room->isExamRoom())
  • Webcam Required: @if($room->bbb_require_webcam) Yes @else No @endif
  • Microphone Required: @if($room->bbb_require_mic) Yes @else No @endif
  • @endif
  • Duration: {{ $room->bbb_duration }} minutes
@if(auth()->id() == $room->bbb_created_by || auth()->user()->hasRole(['admin', 'lms_manager'])) @endif
@endif
Room Actions
Edit Room @if($room->classes_count == 0)
@csrf @method('DELETE')
@endif Back to Rooms
@endsection @if($room->isBbbRoom()) @push('scripts') @endpush @endif