@extends('layouts.admin') @section('title', 'Categories') @section('heading', 'Registration categories') @section('subheading', 'Read-only overview of capacity, rules and live usage.') @section('content')
@forelse ($categories as $category) @php $pct = $category->capacity ? min(100, round($category->approved_count / $category->capacity * 100)) : null; @endphp

{{ $category->name }}

{{ $category->entity_type }} · {{ $category->slug }}

{{ $category->is_active ? 'Active' : 'Inactive' }}
@if ($category->description)

{{ $category->description }}

@endif
Approved {{ $category->approved_count }}{{ $category->capacity ? ' / '.$category->capacity : '' }}@if ($pct !== null) ({{ $pct }}%)@endif
@if (! $category->capacity)

No capacity limit

@endif
{{ $category->total_count }}
Total
{{ $category->approved_count }}
Approved
{{ $category->waitlisted_count }}
Waitlist
View registrations →
@empty

No categories configured.

@endforelse
@endsection