feat: [barobill] 설정 페이지에 바로빌 연동 섹션 추가
- 바로빌 로그인 정보 조건부 표시 (등록/미등록) - 바로빌 로그인 정보 등록/수정 모달 추가 - 계좌 연동, 카드 연동, 공인인증서 등록 섹션 추가 - 미등록 시 연동 카드 비활성 처리
This commit is contained in:
@@ -73,7 +73,17 @@ public function settings(Request $request): View|Response
|
||||
// 서버 모드 판별
|
||||
$isTestMode = $barobillMember ? $barobillMember->isTestMode() : true;
|
||||
|
||||
return view('barobill.settings.index', compact('currentTenant', 'barobillMember', 'isTestMode'));
|
||||
// 바로빌 로그인 정보 등록 여부
|
||||
$hasBarobillLogin = false;
|
||||
if ($barobillMember) {
|
||||
try {
|
||||
$hasBarobillLogin = !empty($barobillMember->barobill_id) && !empty($barobillMember->barobill_pwd);
|
||||
} catch (\Throwable $e) {
|
||||
$hasBarobillLogin = !empty($barobillMember->barobill_id) && !empty($barobillMember->getRawOriginal('barobill_pwd'));
|
||||
}
|
||||
}
|
||||
|
||||
return view('barobill.settings.index', compact('currentTenant', 'barobillMember', 'isTestMode', 'hasBarobillLogin'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user