@extends('layouts.admin') @section('css') @endsection @section('admin')
| 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' }}
@else
No Host
@endif
{{ $room->user->name ?? '' }} |
@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') }} |