@forelse($tenants as $tenant) @if($tenant->deleted_at) {{-- 삭제된 항목 --}} @else {{-- 활성 항목 --}} @endif @empty @endforelse
ID 생성일 회사명 코드 상태 유형 연락처 사용자 부서 메뉴 역할 사용량 관리
{{ $tenant->id }} {{ $tenant->created_at?->format('ymd') ?? '-' }}
{{ $tenant->company_name }}
@if($tenant->ceo_name)
대표: {{ $tenant->ceo_name }}
@endif
{{ $tenant->code }} {{ $tenant->status_label }} @php $typeLabels = ['STD' => '일반', 'TPL' => '템플릿', 'HQ' => '본사']; $typeColors = [ 'STD' => 'bg-gray-100 text-gray-800', 'TPL' => 'bg-purple-100 text-purple-800', 'HQ' => 'bg-blue-100 text-blue-800' ]; $type = $tenant->tenant_type ?? 'STD'; @endphp {{ $typeLabels[$type] ?? $type }}
{{ $tenant->email ?? '-' }}
@if($tenant->phone)
{{ $tenant->phone_formatted }}
@endif
{{ $tenant->users_count ?? 0 }} {{ $tenant->departments_count ?? 0 }} {{ $tenant->menus_count ?? 0 }} {{ $tenant->roles_count ?? 0 }}
{{ $tenant->storage_used_formatted }}
@if(auth()->user()?->is_super_admin) @else - @endif 수정
등록된 테넌트가 없습니다.
@include('partials.pagination', [ 'paginator' => $tenants, 'target' => '#tenant-table', 'includeForm' => '#filterForm' ])