@extends('layouts.admin') @section('css') @endsection @section('admin')

Voice Rooms @if($search || $status || $room_type) ({{ $rooms->total() }} results) @endif

@csrf
Clear
@if($search || $status || $room_type)
@if($search) Search results for: "{{ $search }}" @endif @if($status) | Status: {{ ucfirst($status) }} @endif @if($room_type) | Type: {{ ucfirst($room_type) }} @endif | Found {{ $rooms->total() }} rooms @if($search || $status || $room_type) Clear filters @endif
@endif
@foreach($rooms as $room) @endforeach
Room ID Room Name Room Type Host User Status Description Coins Total Hours Online Users Total Joined Room Level Created Actions
{{ $room->room_id }}
{{ $room->room_name }} @if($room->announcement)
{{ Str::limit($room->announcement, 30) }} @endif
@if($room->room_type == 'private') Private @else Public @endif @if($room->room_password)
🔒 Password Protected @endif
@if($room->user)
{{ $room->user->user_id ?? 'N/A' }}
{{ $room->user->name ?? '' }}
@else No Host @endif
@switch($room->room_status) @case('active') Active @break @case('pending') Pending @break @case('rejected') Rejected @break @case('blocked') Blocked @break @default {{ $room->room_status ?? 'Unknown' }} @endswitch @if($room->room_description) {{ Str::limit($room->room_description, 50) }} @else No description @endif {{ number_format($room->room_coin ?? 0) }} {{ number_format($room->room_total_hour ?? 0, 1) }} hrs @php $onlineCount = $room->online_users()->count(); @endphp {{ $onlineCount }} @php $joinedCount = $room->join_room_users()->count(); @endphp {{ $joinedCount }} @if($room->levels) Level {{ $room->levels->level->level_name ?? 'N/A' }}
EXP: {{ $room->room_exp ?? 0 }} @else No Level @endif
{{ \Carbon\Carbon::parse($room->created_at)->format('M d, Y') }}
{{ \Carbon\Carbon::parse($room->created_at)->format('H:i') }}
{{$rooms->links()}}
@endsection