@extends('admin.layouts.home') @section('title', 'Space Details') @section('styles') @endsection @section('content')

Space Details

Back to Spaces
Space Information

{{ $space->title }} {{ ucfirst($space->status) }} {{ $privacyLabels[$space->privacy] ?? 'Unknown' }} @if($space->is_paid) Paid: ${{ number_format($space->amount, 2) }} @else Free @endif

{{ $space->description }}

Topic: {{ $space->topic ?? 'N/A' }}

Created: {{ $space->created_at->format('M d, Y H:i') }}

@if($space->start_time)

Start Time: {{ \Carbon\Carbon::parse($space->start_time)->format('M d, Y H:i') }}

@endif

Host: @if($space->user) {{ $space->user->name }} @else Unknown User @endif

Total Members: {{ $totalMembers }}

Hosts: {{ $totalHosts }}

Co-Hosts: {{ $totalCoHosts }}

Listeners: {{ $totalListeners }}

@if($space->agora_token_id)

Agora Token: {{ \Str::limit($space->agora_token_id, 20) }}...

@endif
@if($members->isEmpty()) @else
@foreach($members as $member) @endforeach
User Role Join Status Joined
@if($member->user) @if($member->user->profile_photo) {{ $member->user->name }} @else
{{ strtoupper(substr($member->user->name, 0, 1)) }}
@endif
{{ $member->user->name }}
{{ $member->user->email ?? 'N/A' }}
@else Unknown User (ID: {{ $member->user_id }}) @endif
@if($member->is_host) Host @elseif($member->is_cohost) Co-Host @else Listener @endif @if(isset($member->join_status)) @if($member->join_status == 1) Joined @else Pending @endif @else N/A @endif {{ $member->created_at->format('M d, Y H:i') }}
@endif
@endsection @section('scripts') @endsection