feat:고객관리 상세/수정 모달창 구현
- TenantProspectController에 modalShow, modalEdit 메서드 추가 - prospects 라우트에 modal-show, modal-edit 엔드포인트 추가 - index.blade.php에 모달 컨테이너 및 JavaScript 추가 - partials/show-modal.blade.php, edit-modal.blade.php 신규 생성 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -220,6 +220,27 @@ public function checkBusinessNumber(Request $request)
|
||||
return response()->json($result);
|
||||
}
|
||||
|
||||
/**
|
||||
* 모달용 상세 정보
|
||||
*/
|
||||
public function modalShow(int $id): View
|
||||
{
|
||||
$prospect = TenantProspect::with(['registeredBy', 'tenant', 'convertedBy'])
|
||||
->findOrFail($id);
|
||||
|
||||
return view('sales.prospects.partials.show-modal', compact('prospect'));
|
||||
}
|
||||
|
||||
/**
|
||||
* 모달용 수정 폼
|
||||
*/
|
||||
public function modalEdit(int $id): View
|
||||
{
|
||||
$prospect = TenantProspect::findOrFail($id);
|
||||
|
||||
return view('sales.prospects.partials.edit-modal', compact('prospect'));
|
||||
}
|
||||
|
||||
/**
|
||||
* 첨부 이미지 삭제 (AJAX)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user