@php $tenantCount = $tenants->total(); $statusGroups = $tenants->getCollection()->groupBy('status'); $tenantCreditUsage = $tenantCreditUsage ?? collect(); $tenantSiteSettings = $tenantSiteSettings ?? collect(); @endphp
@if (session('status')) {{ session('status') }} @endif 전체 {{ $tenantCount }} 활성 {{ $statusGroups->get('active', collect())->count() }} 비활성 {{ $statusGroups->get('inactive', collect())->count() }} 정지 {{ $statusGroups->get('suspended', collect())->count() }} 테넌트 추가
검색 @if ($tenants->isEmpty()) @else
@foreach ($tenants as $tenant) @php $domains = $tenant->domains?->pluck('domain')->values() ?? collect(); $creator = $tenant->creator; @endphp
{{ $tenant->name }}
{{ $tenant->id }}
생성자: {{ $creator?->name ?? '-' }}
@php $indexable = (bool) ($tenantSiteSettings->get($tenant->id)?->indexable ?? true); @endphp
{{ $indexable ? '검색 색인 허용' : '검색 색인 차단' }}
@php $credit = $tenantCreditUsage->get($tenant->id); @endphp @if ($credit)
AI Credit: {{ number_format($credit['total_credit_remaining']) }}
@endif
{{ $tenant->status }} {{ $tenant->plan }}
@if ($domains->isNotEmpty())
도메인: {{ $domains->join(', ') }}
@endif
사이트 열기 수정
@csrf @method('PATCH') {{ $indexable ? '색인 끄기' : '색인 켜기' }}
@endforeach
@endif