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 +