浏览代码

Business not 50Mbps OTC 400

ifah
父节点
当前提交
1bbcf7fa63

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

}else if( $request->subscription == '12' && $voice == 'Yes'){ }else if( $request->subscription == '12' && $voice == 'Yes'){
$otc = 300 + 100; $otc = 300 + 100;
$deposit = $product->deposit; $deposit = $product->deposit;
}else if($request->subscription == '12' && $request->package != '50Mbps'){
$otc = 400;
$deposit = $product->deposit;
}else { }else {
$otc = 0.0; $otc = 0.0;
$deposit = $product->deposit; $deposit = $product->deposit;
}else if( $request->subscription == '12' && $voice == 'Yes'){ }else if( $request->subscription == '12' && $voice == 'Yes'){
$otc = 300 + 100; $otc = 300 + 100;
$deposit = $product->deposit; $deposit = $product->deposit;
}else if($request->subscription == '12' && $request->package != '50Mbps'){
$otc = 400;
$deposit = $product->deposit;
}else { }else {
$otc = 0.0; $otc = 0.0;
$deposit = $product->deposit; $deposit = $product->deposit;

+ 6
- 2
resources/views/sales/form/business_package.blade.php 查看文件

<div> <div>
<label class="radio-inline"> <label class="radio-inline">
<input type="radio" id="subscription1" name="subscription" value="12">12 Months <br> <input type="radio" id="subscription1" name="subscription" value="12">12 Months <br>
<small id="OTC" style="color:red; display:none">A one-time charge of RM300 applies for 12 months subscription.</small>
@if ($pg == "50Mbps")
<small id="OTC" style="color:red; display:none">A one-time charge of RM300 applies for 12 months subscription.</small>
@else
<small id="OTC" style="color:red; display:none">A one-time charge of RM400 applies for 12 months subscription.</small>
@endif
</label> </label>
<label class="radio-inline"> <label class="radio-inline">
<input type="radio" id="subscription2" name="subscription" value="24" checked="">24 Months <input type="radio" id="subscription2" name="subscription" value="24" checked="">24 Months
</label> </label>
@else @else
<label> <label>
<input type="checkbox" name="voice" id="voice" value="No" checked> <p style="margin-bottom: 0px !important">Free Business Voice Plan and 1 Dect Phone </p>
<input type="checkbox" name="voice" id="voice" value="Yes" checked> <p style="margin-bottom: 0px !important">Free Business Voice Plan and 1 Dect Phone </p>
</label> </label>
@endif @endif
</div> </div>

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

<div> <div>
<label class="radio-inline"> <label class="radio-inline">
<input type="radio" id="subscription1" name="subscription" value="12">12 Months <br> <input type="radio" id="subscription1" name="subscription" value="12">12 Months <br>
<small id="OTC" style="color:red; display:none">A one-time charge of RM300 applies for 12 months subscription.</small>
@if ($pg == "50Mbps")
<small id="OTC" style="color:red; display:none">A one-time charge of RM300 applies for 12 months subscription.</small>
@else
<small id="OTC" style="color:red; display:none">A one-time charge of RM400 applies for 12 months subscription.</small>
@endif
</label> </label>
<label class="radio-inline"> <label class="radio-inline">
<input type="radio" id="subscription2" name="subscription" value="24" checked="">24 Months <br> <input type="radio" id="subscription2" name="subscription" value="24" checked="">24 Months <br>
</label> </label>
@else @else
<label> <label>
<input type="checkbox" name="voice" id="voice" value="No" checked> <p style="margin-bottom: 0px !important">Free Business Voice Plan and 1 Dect Phone </p>
<input type="checkbox" name="voice" id="voice" value="Yes" checked> <p style="margin-bottom: 0px !important">Free Business Voice Plan and 1 Dect Phone </p>
</label> </label>
@endif @endif
</div> </div>

正在加载...
取消
保存