diff --git a/app/Http/Controllers/Sales/DemoTenantController.php b/app/Http/Controllers/Sales/DemoTenantController.php index 8d6f0c65..56226b65 100644 --- a/app/Http/Controllers/Sales/DemoTenantController.php +++ b/app/Http/Controllers/Sales/DemoTenantController.php @@ -150,7 +150,7 @@ public function store(Request $request) 'promo_dev_amount' => 'nullable|integer|min:0|max:5000000', 'promo_dev_waive' => 'nullable|in:0,1', 'promo_sub_percent' => 'nullable|integer|min:0|max:50', - 'promo_free_months' => 'nullable|integer|in:0,1,2,3,6', + 'promo_free_trial' => 'nullable|in:0,1', 'promo_note' => 'nullable|string|max:200', ]); @@ -173,7 +173,7 @@ public function store(Request $request) 'dev_discount_amount' => (int) $request->input('promo_dev_amount', 0), 'dev_waive' => $request->input('promo_dev_waive') === '1', 'sub_discount_percent' => (int) $request->input('promo_sub_percent', 0), - 'free_months' => (int) $request->input('promo_free_months', 0), + 'free_trial' => $request->input('promo_free_trial') === '1', 'note' => $request->input('promo_note', ''), 'applied_at' => now()->toDateTimeString(), 'applied_by_user_id' => auth()->id(), diff --git a/app/Http/Controllers/Sales/SalesContractController.php b/app/Http/Controllers/Sales/SalesContractController.php index 92115ba0..5892ee99 100644 --- a/app/Http/Controllers/Sales/SalesContractController.php +++ b/app/Http/Controllers/Sales/SalesContractController.php @@ -35,7 +35,7 @@ public function saveProducts(Request $request): JsonResponse 'promotion.dev_discount_amount' => 'nullable|numeric|min:0', 'promotion.dev_waive' => 'nullable|boolean', 'promotion.sub_discount_percent' => 'nullable|numeric|min:0|max:50', - 'promotion.free_months' => 'nullable|integer|in:0,1,2,3,6', + 'promotion.free_trial' => 'nullable|boolean', 'promotion.note' => 'nullable|string|max:200', ]); diff --git a/resources/views/sales/demo-tenants/partials/create-modal.blade.php b/resources/views/sales/demo-tenants/partials/create-modal.blade.php index e7bab12d..ebacdcd1 100644 --- a/resources/views/sales/demo-tenants/partials/create-modal.blade.php +++ b/resources/views/sales/demo-tenants/partials/create-modal.blade.php @@ -9,7 +9,7 @@ promoDevAmount: 0, promoDevWaive: false, promoSubPercent: 0, - promoFreeMonths: 0, + promoFreeTrial: false, promoNote: '', // 개발비 할인 최대값 @@ -35,7 +35,7 @@ parts.push('개발비 ' + Number(this.promoDevAmount).toLocaleString() + '원 할인'); } if (this.promoSubPercent > 0) parts.push('구독료 ' + this.promoSubPercent + '% 할인'); - if (this.promoFreeMonths > 0) parts.push('무료 ' + this.promoFreeMonths + '개월'); + if (this.promoFreeTrial) parts.push('무료 체험 1주일'); return parts.length ? parts.join(' / ') : '없음'; }, @@ -55,7 +55,7 @@ // 프로모션 적용 여부 get hasPromo() { - return this.promoDevWaive || this.promoDevPercent > 0 || this.promoDevAmount > 0 || this.promoSubPercent > 0 || this.promoFreeMonths > 0; + return this.promoDevWaive || this.promoDevPercent > 0 || this.promoDevAmount > 0 || this.promoSubPercent > 0 || this.promoFreeTrial; } }">
@@ -217,17 +217,20 @@ class="flex-1 h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer accent-e - +
-

무료 사용 기간

+

무료 체험 (1주일)

- + +
@@ -258,7 +261,7 @@ class="w-full px-3 py-1.5 border border-gray-300 rounded-lg text-sm focus:ring-2 - + diff --git a/resources/views/sales/demo-tenants/partials/show-modal.blade.php b/resources/views/sales/demo-tenants/partials/show-modal.blade.php index f87a43c0..b0aa9df4 100644 --- a/resources/views/sales/demo-tenants/partials/show-modal.blade.php +++ b/resources/views/sales/demo-tenants/partials/show-modal.blade.php @@ -122,11 +122,11 @@ {{ ($promo['sub_discount_percent'] ?? 0) > 0 ? $promo['sub_discount_percent'] . '%' : '없음' }} - {{-- 무료 기간 --}} + {{-- 무료 체험 --}}
- 무료 사용 기간 - - {{ ($promo['free_months'] ?? 0) > 0 ? $promo['free_months'] . '개월' : '없음' }} + 무료 체험 + + {{ !empty($promo['free_trial']) ? '1주일(7일)' : '없음' }}
{{-- 메모 --}} diff --git a/resources/views/sales/modals/partials/product-selection.blade.php b/resources/views/sales/modals/partials/product-selection.blade.php index 30306f09..20f9bfd3 100644 --- a/resources/views/sales/modals/partials/product-selection.blade.php +++ b/resources/views/sales/modals/partials/product-selection.blade.php @@ -490,7 +490,7 @@ function productSelection() { promoDevAmount: {{ $savedPromotion['dev_discount_amount'] ?? 0 }}, promoDevWaive: {{ !empty($savedPromotion['dev_waive']) ? 'true' : 'false' }}, promoSubPercent: {{ $savedPromotion['sub_discount_percent'] ?? 0 }}, - promoFreeMonths: {{ $savedPromotion['free_months'] ?? 0 }}, + promoFreeTrial: {{ !empty($savedPromotion['free_trial']) ? 'true' : 'false' }}, promoNote: '{{ addslashes($savedPromotion['note'] ?? '') }}', isSelected(id) { @@ -713,7 +713,7 @@ function productSelection() { dev_discount_amount: this.promoDevAmount, dev_waive: this.promoDevWaive, sub_discount_percent: this.promoSubPercent, - free_months: this.promoFreeMonths, + free_trial: this.promoFreeTrial, note: this.promoNote, }; } diff --git a/resources/views/sales/price-simulator/index.blade.php b/resources/views/sales/price-simulator/index.blade.php index d36930ec..087b56c4 100644 --- a/resources/views/sales/price-simulator/index.blade.php +++ b/resources/views/sales/price-simulator/index.blade.php @@ -620,13 +620,13 @@ class="inline-flex items-center gap-2 px-4 py-2 text-sm font-medium text-gray-70

3. 무료 체험 기간

- 서비스 시작 후 처음 몇 개월간 구독료를 면제해 줄 수 있습니다. + 서비스 시작 후 첫 1주일(7일) 구독료를 면제해 줄 수 있습니다.

-

예: 3개월 무료 체험 설정 시

-

→ 1~3월: 구독료 0원 / 4~12월: 구독료 정상 부과

-

→ 1년차 총 비용 = 개발비 + 9개월 구독료

-

선택 가능: 없음, 1개월, 2개월, 3개월, 6개월

+

예: 무료 체험 적용 시

+

→ 첫 7일: 구독료 0원 / 8일째부터: 구독료 정상 부과

+

→ 1년차 총 비용 = 개발비 + 약 11.75개월 구독료

+

선택 가능: 없음, 1주일(7일)

@@ -977,22 +977,27 @@ class="w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer accent-o - {{-- 무료 체험 기간 --}} + {{-- 무료 체험 기간 (1주일 고정) --}}
- +
- + +
-

- 첫 개월 구독료가 면제됩니다 +

+ 첫 7일간 구독료가 면제됩니다

@@ -1098,9 +1103,9 @@ class="w-full py-2 text-xs text-gray-500 bg-gray-50 hover:bg-gray-100 rounded-lg {{-- 무료 체험 기간 안내 --}} -
+
무료 체험 - + 첫 1주일(7일) 무료
{{-- 연 구독료 --}}
@@ -1116,9 +1121,9 @@ class="w-full py-2 text-xs text-gray-500 bg-gray-50 hover:bg-gray-100 rounded-lg

- 개발비 + 개월 구독료 (VAT 별도) -