Pārlūkot izejas kodu

Business not 50Mbps OTC 400

ifah
Siti Hajar Ibrahim pirms 5 gadiem
vecāks
revīzija
1bbcf7fa63

+ 6
- 0
app/Http/Controllers/Form/BusinessController.php Parādīt failu

@@ -152,6 +152,9 @@ class BusinessController extends Controller
}else if( $request->subscription == '12' && $voice == 'Yes'){
$otc = 300 + 100;
$deposit = $product->deposit;
}else if($request->subscription == '12' && $request->package != '50Mbps'){
$otc = 400;
$deposit = $product->deposit;
}else {
$otc = 0.0;
$deposit = $product->deposit;
@@ -402,6 +405,9 @@ class BusinessController extends Controller
}else if( $request->subscription == '12' && $voice == 'Yes'){
$otc = 300 + 100;
$deposit = $product->deposit;
}else if($request->subscription == '12' && $request->package != '50Mbps'){
$otc = 400;
$deposit = $product->deposit;
}else {
$otc = 0.0;
$deposit = $product->deposit;

+ 6
- 2
resources/views/sales/form/business_package.blade.php Parādīt failu

@@ -199,7 +199,11 @@
<div>
<label class="radio-inline">
<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 class="radio-inline">
<input type="radio" id="subscription2" name="subscription" value="24" checked="">24 Months
@@ -225,7 +229,7 @@
</label>
@else
<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>
@endif
</div>

+ 6
- 2
resources/views/sales/form/dealer/business_package.blade.php Parādīt failu

@@ -200,7 +200,11 @@
<div>
<label class="radio-inline">
<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 class="radio-inline">
<input type="radio" id="subscription2" name="subscription" value="24" checked="">24 Months <br>
@@ -227,7 +231,7 @@
</label>
@else
<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>
@endif
</div>

Notiek ielāde…
Atcelt
Saglabāt