@extends('admin.layouts.home') @section('title', 'Manage Spaces') @section('content')

Manage Spaces

Total Spaces
{{ $totalSpaces ?? 0 }}
Active Spaces
{{ $activeSpaces ?? 0 }}
Completed Spaces
{{ $completedSpaces ?? 0 }}
Scheduled Spaces
{{ $scheduledSpaces ?? 0 }}
All Spaces
@forelse($spaces as $space) @empty @endforelse
ID Title Topic Status Privacy Host Members Paid Created Actions
{{ $space->id }}
{{ \Str::limit($space->title, 50) }} @if($space->description)
{{ \Str::limit($space->description, 60) }}
@endif
{{ $space->topic ?? 'N/A' }} @if($space->status === 'active') Active @elseif($space->status === 'completed') Completed @elseif($space->status === 'scheduled') Scheduled @else {{ ucfirst($space->status) }} @endif @if($space->privacy == 1) Public @elseif($space->privacy == 2) Followers Only @elseif($space->privacy == 3) Private @else Unknown @endif @if($space->user)
{{ $space->user->name }}
@else Unknown @endif
{{ $space->members_count ?? 0 }} @if($space->is_paid) ${{ number_format($space->amount, 2) }} @else Free @endif {{ $space->created_at->format('M d, Y') }}
No spaces found
{{ $spaces->links('pagination::bootstrap-5') }}
@endsection