From c9f2f780e0dfbf22020a101e019cff162290aa5b Mon Sep 17 00:00:00 2001 From: hskwon Date: Thu, 27 Nov 2025 20:13:17 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B6=8C=ED=95=9C/=EC=97=AD=ED=95=A0/?= =?UTF-8?q?=ED=97=A4=EB=8D=94=20=ED=8E=98=EC=9D=B4=EC=A7=80=EC=97=90=20?= =?UTF-8?q?=ED=85=8C=EB=84=8C=ED=8A=B8=20=EC=BB=A8=ED=85=8D=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=EB=A9=94=EB=89=B4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - permissions 테이블의 테넌트 컬럼에 우클릭 메뉴 추가 - roles 테이블의 테넌트 컬럼에 우클릭 메뉴 추가 - 헤더의 현재 테넌트 배지에 우클릭 메뉴 추가 --- resources/views/partials/header.blade.php | 6 +++++- .../views/permissions/partials/table.blade.php | 10 +++++++++- resources/views/roles/partials/table.blade.php | 14 +++++++++++--- 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/resources/views/partials/header.blade.php b/resources/views/partials/header.blade.php index 5d03b0c2..b8825368 100644 --- a/resources/views/partials/header.blade.php +++ b/resources/views/partials/header.blade.php @@ -37,7 +37,11 @@ class="border-gray-300 rounded-lg text-sm focus:ring-primary focus:border-primar $currentTenant = $globalTenants->firstWhere('id', session('selected_tenant_id')); @endphp @if($currentTenant) - + diff --git a/resources/views/permissions/partials/table.blade.php b/resources/views/permissions/partials/table.blade.php index 057ba623..c3d5e26c 100644 --- a/resources/views/permissions/partials/table.blade.php +++ b/resources/views/permissions/partials/table.blade.php @@ -126,7 +126,15 @@ function getPermissionConfig(string $type): array {!! formatPermissionName($permission->name) !!} - {{ $permission->tenant?->company_name ?? '전역' }} + @if($permission->tenant) + {{ $permission->tenant->company_name }} + @else + 전역 + @endif diff --git a/resources/views/roles/partials/table.blade.php b/resources/views/roles/partials/table.blade.php index 887850e7..372f5abe 100644 --- a/resources/views/roles/partials/table.blade.php +++ b/resources/views/roles/partials/table.blade.php @@ -27,9 +27,17 @@ @if($isAllTenants) - - {{ $role->tenant?->company_name ?? '미지정' }} - + @if($role->tenant) + + {{ $role->tenant->company_name }} + + @else + 미지정 + @endif @endif