feat:사용량조회 화면에 테넌트 요약 카드 추가

- 바로빌 설정 화면과 동일한 스타일의 보라색 그라데이션 카드
- 테넌트 ID, 회사명, 사업자번호, 대표자, 담당자, 바로빌 ID 표시
- 파트너사(테넌트 1) 배지 표시

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
pro
2026-01-27 14:25:05 +09:00
parent a759001670
commit aadd6d5e07
2 changed files with 62 additions and 1 deletions

View File

@@ -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'));
}
}