diff --git a/app/Http/Controllers/Barobill/BarobillController.php b/app/Http/Controllers/Barobill/BarobillController.php index 63c297ec..820cad66 100644 --- a/app/Http/Controllers/Barobill/BarobillController.php +++ b/app/Http/Controllers/Barobill/BarobillController.php @@ -61,7 +61,14 @@ public function settings(Request $request): View|Response return response('', 200)->header('HX-Redirect', route('barobill.settings.index')); } - return view('barobill.settings.index'); + // 현재 선택된 테넌트 정보 + $tenantId = session('selected_tenant_id', 1); + $currentTenant = Tenant::find($tenantId); + + // 해당 테넌트의 바로빌 회원사 정보 + $barobillMember = BarobillMember::where('tenant_id', $tenantId)->first(); + + return view('barobill.settings.index', compact('currentTenant', 'barobillMember')); } /** diff --git a/resources/views/barobill/settings/index.blade.php b/resources/views/barobill/settings/index.blade.php index 81e635e8..bdffe04a 100644 --- a/resources/views/barobill/settings/index.blade.php +++ b/resources/views/barobill/settings/index.blade.php @@ -3,6 +3,58 @@ @section('title', '바로빌 설정') @section('content') + +@if($currentTenant) +
+
+
+
+ + + + +
+
+
+ T-ID: {{ $currentTenant->id }} + @if($currentTenant->id == 1) + 파트너사 + @endif +
+

{{ $currentTenant->company_name }}

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

사업자번호

+

{{ $barobillMember->biz_no }}

+
+
+

대표자

+

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

+
+
+

담당자

+

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

+
+
+

바로빌 ID

+

{{ $barobillMember->barobill_id }}

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