瀏覽代碼

CBB 1Gbps Promotion - DMS

hajar
Siti Hajar Ibrahim 5 年之前
父節點
當前提交
25bb7d4165

+ 7
- 7
app/Http/Controllers/Form/BusinessController.php 查看文件

@@ -365,7 +365,10 @@ class BusinessController extends Controller

$pg = $request->package;

return view('sales.form.dealer.business_package', compact('data', 'pg'));
$coverage = Coverage::where('_id', $request->coverage)->first();
$city = $coverage->city;

return view('sales.form.dealer.business_package', compact('data', 'pg', 'city'));
}

public function viewFormPreviewD(Request $request)
@@ -404,12 +407,9 @@ class BusinessController extends Controller
$promo_st = number_format(floatval($promo_price) * 1.06, 2);
$total_monthly = number_format($promo_st + ($voice_price * 1.06) + $ip_tax, 2);
} else if ($request->package == "1Gbps") {
if ($request->ip == "1 Fixed IP RM200/1P/Month") {
$gst = number_format(floatval($product->retail_price) * 1.06, 2);
$total_monthly = 3920.94;
} elseif ($request->ip == "5 Fixed IP RM400/1P/Month") {
$gst = number_format(floatval($product->retail_price) * 1.06, 2);
$total_monthly = 4132.94;
if ($request->subscription == '24' && $coverage->city == 'CYBERJAYA') {
$gst = 1058.94;
$total_monthly = 1058.94;
} else {
$gst = 3708.94;
$total_monthly = 3708.94;

+ 13
- 3
resources/views/sales/form/dealer/business_package.blade.php 查看文件

@@ -214,6 +214,10 @@
<label class="radio-inline">
<input type="checkbox" id="10off" checked=""> <small id="10off1">Year End Promotion (RM10 off for 24 months)</small>
</label>
@elseif ($pg == "1Gbps" && $city == "CYBERJAYA")
<label class="radio-inline">
<input type="checkbox" id="10off" checked=""> <small id="10off1">City Broadband Business Cyberjaya 1Gbps@RM999 Promotion</small>
</label>
@endif
</div>
</div>
@@ -244,9 +248,15 @@
<div class="form-group">
<div class="checkbox">
@if ($pg == "1Gbps")
<label>
<input type="checkbox" name="ip" id="ip" value="Free 3 Fixed IP" checked> <p style="margin-bottom: 0px !important">Free 3 Fixed IP</p>
</label>
@if ($city == "CYBERJAYA")
<label>
<input type="checkbox" name="ip" id="ip" value="Free 1 Fixed IP" checked> <p style="margin-bottom: 0px !important">Free 1 Fixed IP</p>
</label>
@else
<label>
<input type="checkbox" name="ip" id="ip" value="Free 3 Fixed IP" checked> <p style="margin-bottom: 0px !important">Free 3 Fixed IP</p>
</label>
@endif
@else
<label>
<p>Add on subscribtion for Fixed IP?</p>

+ 8
- 0
resources/views/sales/form/dealer/business_preview.blade.php 查看文件

@@ -226,6 +226,11 @@
<td>Year End Promotion (RM10 off for 24 months)</td>
</tr>
@endif
@if ($a['subscription']==24 && $a['package'] == '1Gbps' && $coverage->city == 'CYBERJAYA')
<tr><th width="50%">Promotion</th>
<td>City Broadband Business Cyberjaya 1Gbps@RM999 Promotion</td>
</tr>
@endif
<tr><th width="50%">Contract Term</th>
<td>{{$a['subscription']}} Months</td>
</tr>
@@ -311,6 +316,9 @@
@if($a['package']!='1Gbps' && $a['subscription']=='24')
<td><span style="text-decoration: line-through;">RM{{ $product->retail_price }}</span> RM{{ $promo_price}}</td>
<td>RM{{ $promo_st }}</td>
@elseif($a['package']=='1Gbps' && $a['subscription']=='24' && $coverage->city == 'CYBERJAYA')
<td><span style="text-decoration: line-through;">RM{{ $product->retail_price }}</span> RM999</td>
<td>RM{{ $gst }}</td>
@else
<td>RM{{ $product->retail_price }}</td>
<td>RM{{ $gst }}</td>

Loading…
取消
儲存