Files
sam-manage/resources/views/rd/ai-quotation/document-templates/classic.blade.php
김보곤 e5ab358a76 feat: [ai-quotation] 견적서 5종 템플릿 선택 시스템 추가
- classic(클래식), modern(모던), blue(블루), dark(다크), colorful(컬러풀) 5종
- 문서 상단 미리보기 카드 클릭으로 즉시 디자인 전환
- URL 쿼리 파라미터 ?template=xxx 방식, 기본값 classic
- 인쇄/PDF 시 선택 UI 자동 숨김 (no-print)
- 기존 디자인은 classic 템플릿으로 100% 보존
2026-03-02 19:27:36 +09:00

143 lines
6.6 KiB
PHP

{{-- 클래식 견적서 템플릿 전통 한국 제조업 스타일 --}}
<style>
.classic .doc-table { width: 100%; border-collapse: collapse; }
.classic .doc-table th, .classic .doc-table td { border: 1px solid #333; padding: 6px 10px; font-size: 13px; }
.classic .doc-table th { background-color: #f3f4f6; font-weight: 600; }
.classic .seal-box { display: inline-block; width: 60px; height: 60px; border: 2px solid #dc2626; border-radius: 50%; text-align: center; line-height: 56px; color: #dc2626; font-weight: 700; font-size: 16px; }
</style>
<div class="classic document-page max-w-[210mm] mx-auto my-8 bg-white shadow-lg" style="padding: 15mm 20mm;">
{{-- 제목 --}}
<h1 class="text-center text-3xl font-bold tracking-[0.5em] mb-8 pb-4 border-b-2 border-gray-800">
</h1>
{{-- 견적 정보 --}}
<div class="flex justify-between mb-6 text-sm">
<div>
<p><span class="font-semibold">견적번호:</span> {{ $quotationNo }}</p>
<p><span class="font-semibold">유효기간:</span> 견적일로부터 30</p>
</div>
<div class="text-right">
<p><span class="font-semibold">견적일자:</span> {{ $quotation->created_at->format('Y년 m월 d일') }}</p>
</div>
</div>
{{-- 수신 / 공급자 --}}
<table class="doc-table mb-6">
<colgroup>
<col style="width: 8%;"><col style="width: 42%;"><col style="width: 8%;"><col style="width: 42%;">
</colgroup>
<thead>
<tr>
<th colspan="2" class="text-center" style="background-color: #eff6ff;"> </th>
<th colspan="2" class="text-center" style="background-color: #f0fdf4;"> </th>
</tr>
</thead>
<tbody>
<tr>
<th>귀사명</th><td>{{ $quotation->title }}</td>
<th> </th><td>()코드브릿지엑스</td>
</tr>
<tr>
<th> </th><td>{{ $company['industry'] ?? '-' }}</td>
<th> </th><td>이의찬</td>
</tr>
<tr>
<th> </th><td>{{ $company['scale'] ?? '-' }}</td>
<th> </th><td>인천 남동구 남동대로 215번길 30</td>
</tr>
<tr>
<th>현재시스템</th><td>{{ !empty($company['current_systems']) ? implode(', ', $company['current_systems']) : '-' }}</td>
<th>연락처</th><td>032-123-4567</td>
</tr>
</tbody>
</table>
{{-- 합계 --}}
<div class="mb-6 p-4 border-2 border-gray-800 text-center">
<p class="text-sm mb-2">아래와 같이 견적합니다.</p>
<p class="text-xl font-bold">
합계금액: {{ $devTotalKorean }}원정
<span class="text-base font-normal">(&#8361;{{ number_format($devSubtotal) }})</span>
</p>
<p class="text-xs text-gray-600 mt-1"> 부가가치세 별도 / 구독료 {{ number_format($monthlySubtotal) }} 별도</p>
</div>
{{-- 품목 --}}
<table class="doc-table mb-6">
<colgroup>
<col style="width: 5%;"><col style="width: 7%;"><col style="width: 20%;"><col style="width: 33%;"><col style="width: 17.5%;"><col style="width: 17.5%;">
</colgroup>
<thead>
<tr>
<th class="text-center">No</th><th class="text-center">구분</th><th class="text-center"> </th>
<th class="text-center"> </th><th class="text-center">개발비 ()</th><th class="text-center"> 구독료 ()</th>
</tr>
</thead>
<tbody>
@foreach($sortedItems as $index => $item)
<tr>
<td class="text-center">{{ $index + 1 }}</td>
<td class="text-center">{{ $item->is_required ? '필수' : '선택' }}</td>
<td>{{ $item->module_name }}</td>
<td class="text-xs">{{ Str::limit($item->reason, 80) }}</td>
<td class="text-right">{{ number_format((int) $item->dev_cost) }}</td>
<td class="text-right">{{ number_format((int) $item->monthly_fee) }}</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<th colspan="4" class="text-right"> </th>
<td class="text-right font-bold">{{ number_format($devSubtotal) }}</td>
<td class="text-right font-bold">{{ number_format($monthlySubtotal) }}</td>
</tr>
<tr>
<th colspan="4" class="text-right">부가세 (10%)</th>
<td class="text-right">{{ number_format($devVat) }}</td>
<td class="text-right">{{ number_format($monthlyVat) }}</td>
</tr>
<tr style="background-color: #f3f4f6;">
<th colspan="4" class="text-right text-base"> </th>
<td class="text-right font-bold text-base">{{ number_format($devTotal) }}</td>
<td class="text-right font-bold text-base">{{ number_format($monthlyTotal) }}</td>
</tr>
</tfoot>
</table>
{{-- 비고 --}}
<div class="mb-8">
<table class="doc-table">
<thead><tr><th class="text-left"> </th></tr></thead>
<tbody>
<tr>
<td class="text-sm leading-relaxed" style="padding: 12px 16px;">
<ol class="list-decimal list-inside space-y-1">
<li>상기 금액은 부가가치세 별도입니다.</li>
<li>개발비 납부 조건: 계약 50%, 완료 50% 분할 납부</li>
<li> 구독료: 서비스 오픈일부터 과금 ( {{ number_format($monthlyTotal) }}, VAT 포함)</li>
@if($estimatedMonths)
<li>예상 구축 기간: {{ $estimatedMonths }}개월</li>
@endif
<li> 견적서의 유효기간은 견적일로부터 30일입니다.</li>
<li>세부 사항은 별도 협의를 통해 조정될 있습니다.</li>
</ol>
</td>
</tr>
</tbody>
</table>
</div>
{{-- 서명 --}}
<div class="flex justify-end items-center gap-6 mt-12">
<div class="text-right">
<p class="text-lg font-bold mb-1">()코드브릿지엑스</p>
<p class="text-sm text-gray-600">대표이사 </p>
</div>
<div class="seal-box">()</div>
</div>
</div>