@extends('layouts.app') @section('title', '카테고리 관리') @section('content')

카테고리 관리

@if($tenant) {{ $tenant->company_name }} @if($isHQ) 본사 @endif 카테고리를 관리합니다. @else 테넌트별 카테고리를 관리합니다. @endif

동기화 @if($tenant) @endif
@if(!$tenant)
헤더에서 테넌트를 선택해주세요.
@else
코드 그룹
@if($globalCategories->count() > 0) @endif

글로벌 카테고리

({{ $globalCategories->count() }})
@if($globalCategories->count() > 0) @endif @if(!$isHQ) 본사만 편집 가능 @endif
@forelse($globalCategories as $cat) @php $existsInTenant = in_array($cat->code, $tenantCodes); @endphp
{{ $cat->code }} {{ $cat->name }} @if($cat->depth > 0) Lv.{{ $cat->depth + 1 }} @endif @if($existsInTenant) 복사됨 @else NEW @endif {{ $cat->sort_order }} @if($isHQ) @else {{ $cat->is_active ? 'ON' : 'OFF' }} @endif
@if($isHQ) @endif @if($isHQ) @endif
@empty
글로벌 카테고리가 없습니다.
@endforelse
@if($tenantCategories->count() > 0 && ($isHQ || auth()->user()?->isSuperAdmin())) @endif

테넌트 카테고리

({{ $tenantCategories->count() }})
@if($tenantCategories->count() > 0 && ($isHQ || auth()->user()?->isSuperAdmin())) @endif
@forelse($tenantCategories as $cat) @php $existsInGlobal = in_array($cat->code, $globalCodes); @endphp
@if($isHQ || auth()->user()?->isSuperAdmin()) @endif {{ $cat->code }} {{ $cat->name }} @if($cat->depth > 0) Lv.{{ $cat->depth + 1 }} @endif {{ $cat->sort_order }}
@empty
테넌트 카테고리가 없습니다.
글로벌 카테고리를 복사하거나 새로 추가하세요.
@endforelse
@endif
@endsection @push('scripts') @endpush