feat: [ai-quotation] 견적서 5종 템플릿 선택 시스템 추가

- classic(클래식), modern(모던), blue(블루), dark(다크), colorful(컬러풀) 5종
- 문서 상단 미리보기 카드 클릭으로 즉시 디자인 전환
- URL 쿼리 파라미터 ?template=xxx 방식, 기본값 classic
- 인쇄/PDF 시 선택 UI 자동 숨김 (no-print)
- 기존 디자인은 classic 템플릿으로 100% 보존
This commit is contained in:
김보곤
2026-03-02 19:27:36 +09:00
parent 1fa2e0ca34
commit 420b80e45a
7 changed files with 793 additions and 191 deletions

View File

@@ -57,7 +57,7 @@ public function createQuotation(Request $request): View|\Illuminate\Http\Respons
/**
* AI 견적 문서 (인쇄용 견적서)
*/
public function documentQuotation(int $id): View
public function documentQuotation(Request $request, int $id): View
{
$quotation = $this->quotationService->getById($id);
@@ -65,7 +65,13 @@ public function documentQuotation(int $id): View
abort(404, '완료된 견적만 문서로 조회할 수 있습니다.');
}
return view('rd.ai-quotation.document', compact('quotation'));
$template = $request->query('template', 'classic');
$allowed = ['classic', 'modern', 'blue', 'dark', 'colorful'];
if (! in_array($template, $allowed)) {
$template = 'classic';
}
return view('rd.ai-quotation.document', compact('quotation', 'template'));
}
/**