From aadd6d5e070c4fe11046e8eed45c36a7a8db409c Mon Sep 17 00:00:00 2001 From: pro Date: Tue, 27 Jan 2026 14:25:05 +0900 Subject: [PATCH] =?UTF-8?q?feat:=EC=82=AC=EC=9A=A9=EB=9F=89=EC=A1=B0?= =?UTF-8?q?=ED=9A=8C=20=ED=99=94=EB=A9=B4=EC=97=90=20=ED=85=8C=EB=84=8C?= =?UTF-8?q?=ED=8A=B8=20=EC=9A=94=EC=95=BD=20=EC=B9=B4=EB=93=9C=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 바로빌 설정 화면과 동일한 스타일의 보라색 그라데이션 카드 - 테넌트 ID, 회사명, 사업자번호, 대표자, 담당자, 바로빌 ID 표시 - 파트너사(테넌트 1) 배지 표시 Co-Authored-By: Claude Opus 4.5 --- .../Barobill/BarobillController.php | 12 ++++- .../views/barobill/usage/index.blade.php | 51 +++++++++++++++++++ 2 files changed, 62 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Barobill/BarobillController.php b/app/Http/Controllers/Barobill/BarobillController.php index 820cad66..ae04b9f4 100644 --- a/app/Http/Controllers/Barobill/BarobillController.php +++ b/app/Http/Controllers/Barobill/BarobillController.php @@ -128,6 +128,16 @@ public function usage(Request $request): View|Response return response('', 200)->header('HX-Redirect', route('barobill.usage.index')); } - return view('barobill.usage.index'); + // 현재 선택된 테넌트 정보 + $tenantId = session('selected_tenant_id', 1); + $currentTenant = Tenant::find($tenantId); + + // 해당 테넌트의 바로빌 회원사 정보 + $barobillMember = BarobillMember::where('tenant_id', $tenantId)->first(); + + // 본사(테넌트 1) 여부 + $isHeadquarters = $tenantId == 1; + + return view('barobill.usage.index', compact('currentTenant', 'barobillMember', 'isHeadquarters')); } } diff --git a/resources/views/barobill/usage/index.blade.php b/resources/views/barobill/usage/index.blade.php index caadeb01..9448f50e 100644 --- a/resources/views/barobill/usage/index.blade.php +++ b/resources/views/barobill/usage/index.blade.php @@ -3,6 +3,57 @@ @section('title', '사용량조회') @section('content') + +@if($currentTenant) +
+
+
+
+ + + +
+
+
+ T-ID: {{ $currentTenant->id }} + @if($isHeadquarters ?? false) + 파트너사 + @endif +
+

{{ $currentTenant->company_name }}

+
+
+ @if($barobillMember) +
+
+

사업자번호

+

{{ $barobillMember->formatted_biz_no }}

+
+
+

대표자

+

{{ $barobillMember->ceo_name ?? '-' }}

+
+
+

담당자

+

{{ $barobillMember->manager_name ?? '-' }}

+
+
+

바로빌 ID

+

{{ $barobillMember->barobill_id }}

+
+
+ @else +
+ + + + 바로빌 회원사 미연동 +
+ @endif +
+
+@endif +