Browse Source

Year End Promo (RM10 off promotion)

ifah
Siti Hajar Ibrahim 5 years ago
parent
commit
052cae3c81

+ 16
- 16
app/Http/Controllers/Form/BusinessController.php View File

@@ -107,7 +107,7 @@ class BusinessController extends Controller

$total_monthly = 0;
$gst ='';
// $promo_st = '';
$promo_st = '';

$voice = "No";
if($request->voice == "Yes"){
@@ -127,12 +127,12 @@ class BusinessController extends Controller
$ip_tax = number_format((floatval($ip_fee) * 1.06),2);
}

// if ($request->package != "1Gbps" && $request->subscription == '24'){
// $promo_price = number_format(floatval($product->retail_price) - 10);
// $promo_st = number_format(floatval($promo_price) * 1.06,2);
// $total_monthly = number_format($promo_st + ($voice_price * 1.06) + $ip_tax, 2);
// }
if ($request->package == "1Gbps"){
if ($request->package != "1Gbps" && $request->subscription == '24'){
$promo_price = number_format(floatval($product->retail_price) - 10);
$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;
@@ -194,7 +194,7 @@ class BusinessController extends Controller
'thedate' => $request->thedate,
));

return view('sales.form.business_preview', compact('data','coverage','product','deposit','otc', 'otc_st','gst','total_monthly', 'upfront_total'));
return view('sales.form.business_preview', compact('data', 'coverage', 'product', 'deposit', 'otc', 'otc_st', 'gst', 'promo_price', 'promo_st', 'total_monthly', 'upfront_total'));
}

public function storeFormData(Request $request){
@@ -363,7 +363,7 @@ class BusinessController extends Controller

$total_monthly = 0;
$gst ='';
// $promo_st = '';
$promo_st = '';

$voice = "No";
if($request->voice == "Yes"){
@@ -383,12 +383,12 @@ class BusinessController extends Controller
$ip_tax = number_format((floatval($ip_fee) * 1.06),2);
}

// if ($request->package != "1Gbps" && $request->subscription == '24'){
// $promo_price = number_format(floatval($product->retail_price) - 10);
// $promo_st = number_format(floatval($promo_price) * 1.06,2);
// $total_monthly = number_format($promo_st + ($voice_price * 1.06) + $ip_tax, 2);
// }
if ($request->package == "1Gbps"){
if ($request->package != "1Gbps" && $request->subscription == '24'){
$promo_price = number_format(floatval($product->retail_price) - 10);
$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;
@@ -455,7 +455,7 @@ class BusinessController extends Controller
'dealer_id' => $request->dealer_id,
));

return view('sales.form.dealer.business_preview', compact('data','coverage','product','deposit','otc', 'otc_st','gst','total_monthly', 'upfront_total'));
return view('sales.form.dealer.business_preview', compact('data', 'coverage', 'product', 'deposit', 'otc', 'otc_st', 'gst', 'promo_price', 'promo_st', 'total_monthly', 'upfront_total'));
}

public function storeFormDataD(Request $request){

+ 20
- 20
app/Http/Controllers/Form/ResidentialController.php View File

@@ -139,17 +139,17 @@ class ResidentialController extends Controller

$total_monthly = 0;
$gst ='';
// $promo_st = '';
// if ($request->package != "1Gbps" && $request->subscription == '24'){
// $promo_price = number_format(floatval($product->retail_price) - 10);
// $promo_st = number_format(floatval($promo_price) * 1.06,2);
// $total_monthly = number_format($promo_st + ($voice_price * 1.06), 2);
// }
// else{
$promo_st = '';
if ($request->package != "1Gbps" && $request->subscription == '24'){
$promo_price = number_format(floatval($product->retail_price) - 10);
$promo_st = number_format(floatval($promo_price) * 1.06,2);
$total_monthly = number_format($promo_st + ($voice_price * 1.06), 2);
}
else{
$gst = number_format(floatval($product->retail_price) * 1.06,2);
$total_monthly = number_format($gst + ($voice_price * 1.06), 2);
// }
}

if($request->citizenship != 'Malaysian' && $request->subscription == '12' && $voice == 'No'){
$otc = 300;
@@ -195,7 +195,7 @@ class ResidentialController extends Controller
'thedate' => $request->thedate,
));

return view('sales.form.residential_preview', compact('data','coverage','product','deposit','otc', 'otc_st','gst','total_monthly', 'upfront_total'));
return view('sales.form.residential_preview', compact('data', 'coverage', 'product', 'deposit', 'otc', 'otc_st', 'gst', 'promo_price', 'promo_st', 'total_monthly', 'upfront_total'));
}

public function storeFormData(Request $request){
@@ -408,17 +408,17 @@ class ResidentialController extends Controller

$total_monthly = 0;
$gst ='';
// $promo_st = '';
// if ($request->package != "1Gbps" && $request->subscription == '24'){
// $promo_price = number_format(floatval($product->retail_price) - 10);
// $promo_st = number_format(floatval($promo_price) * 1.06,2);
// $total_monthly = number_format($promo_st + ($voice_price * 1.06), 2);
// }
// else{
$promo_st = '';
if ($request->package != "1Gbps" && $request->subscription == '24'){
$promo_price = number_format(floatval($product->retail_price) - 10);
$promo_st = number_format(floatval($promo_price) * 1.06,2);
$total_monthly = number_format($promo_st + ($voice_price * 1.06), 2);
}
else{
$gst = number_format(floatval($product->retail_price) * 1.06,2);
$total_monthly = number_format($gst + ($voice_price * 1.06), 2);
// }
}

if($request->citizenship != 'Malaysian' && $request->subscription == '12' && $voice == 'No'){
$otc = 300;
@@ -465,7 +465,7 @@ class ResidentialController extends Controller
'thedate' => $request->thedate,
));

return view('sales.form.dealer.residential_preview', compact('data','coverage','product','deposit','otc', 'otc_st','gst','total_monthly', 'upfront_total'));
return view('sales.form.dealer.residential_preview', compact('data', 'coverage', 'product', 'deposit', 'otc', 'otc_st', 'gst', 'promo_price', 'promo_st', 'total_monthly', 'upfront_total'));
}

public function storeFormDataD(Request $request){

+ 2
- 2
resources/views/email/invoice.blade.php View File

@@ -200,14 +200,14 @@
<p>{{ $form->PackageDetail->rfs }}</p>
</td>
</tr>
<!-- @if ($form->PackageDetail->contract == '24' && $form->PackageDetail->name != '1')
@if ($form->PackageDetail->contract == '24' && $form->PackageDetail->name != '1')
<tr>
<td colspan="2" style="padding:10px 15px" width="50%" valign="middle" align="center" bgcolor="#eee">
<b>Promotion</b>
<p>RM10 off for 24 months</p>
</td>
</tr>
@endif -->
@endif
<tr>
<td colspan="2" style="padding:10px 15px" width="50%" valign="middle" align="center" bgcolor="#eee">
<b>Home Voice Plan</b>

+ 2
- 2
resources/views/email/invoiceb.blade.php View File

@@ -199,14 +199,14 @@
<p>{{ $form->PackageDetail->rfs }}</p>
</td>
</tr>
<!-- @if ($form->PackageDetail->contract == '24' && $form->PackageDetail->name != '1')
@if ($form->PackageDetail->contract == '24' && $form->PackageDetail->name != '1')
<tr>
<td colspan="2" style="padding:10px 15px" width="50%" valign="middle" align="center" bgcolor="#eee">
<b>Promotion</b>
<p>RM10 off for 24 months</p>
</td>
</tr>
@endif -->
@endif
<tr>
<td colspan="1" style="padding:10px 15px" width="50%" valign="middle" align="center" bgcolor="#eee">
<b> Business Voice Plan</b>

+ 2
- 2
resources/views/sales/form/business_package.blade.php View File

@@ -209,11 +209,11 @@
<input type="radio" id="subscription2" name="subscription" value="24" checked="">24 Months <br>
<small id="OTC-side" style="color:red; display:none">.</small>
</label>
<!-- @if ($pg != "1Gbps")
@if ($pg != "1Gbps")
<label class="radio-inline">
<input type="checkbox" id="10off" checked=""> <small id="10off1">RM10 off for 24 months</small>
</label>
@endif -->
@endif
</div>
</div>
</div>

+ 12
- 1
resources/views/sales/form/business_preview.blade.php View File

@@ -199,6 +199,7 @@
<input type="hidden" name="deposit" value="{{ $deposit }}">
<input type="hidden" name="otc" value="{{ $otc_st }}">
<input type="hidden" name="gst" value="{{ $gst }}">
<input type="hidden" name="promo_st" value="{{ $promo_st }}">
<input type="hidden" name="total_monthly" value="{{ $total_monthly }}">
<div class="tracking-process"></div>
@@ -218,6 +219,11 @@
<tr><th width="50%">Package</th>
<td>City Broadband Business {{$a['package']}}</td>
</tr>
@if ($a['subscription']==24 && ($a['package'] != '1Gbps'))
<tr><th width="50%">Promotion</th>
<td>RM10 off for 24 months</td>
</tr>
@endif
<tr><th width="50%">Contract Term</th>
<td>{{$a['subscription']}} Months</td>
</tr>
@@ -300,8 +306,13 @@
<th>Total*</th>
</tr>
<tr><th>City Broadband Business - {{$a['package']}}</th>
@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>
@else
<td>RM{{ $product->retail_price }}</td>
<td>RM{{ $gst }}</td>
@endif
</tr>
@if($a['voice']=='Yes')
<tr><th>Business Voice Plan</th>
@@ -459,7 +470,7 @@
<div class="nonstick-footer padding bg-blue" align="center">
<span class="medium-title text-centeryellow" style="color: yellow;">Got A Question?</span>
<div align="center">
<a class="nomargin btn btn-default" href="#" style="width: 230px;">
<a class="nomargin btn btn-default" href="https://www.citybroadband.my/support/faqs/business/year-end-promo/" style="width: 230px;">
Read FAQ
</a>
<a style="width:230px" href="#" class="nomargin btn btn-default">

+ 2
- 2
resources/views/sales/form/dealer/business_package.blade.php View File

@@ -210,11 +210,11 @@
<input type="radio" id="subscription2" name="subscription" value="24" checked="">24 Months <br>
<small id="OTC-side" style="color:red; display:none">.</small>
</label>
<!-- @if ($pg != "1Gbps")
@if ($pg != "1Gbps")
<label class="radio-inline">
<input type="checkbox" id="10off" checked=""> <small id="10off1">RM10 off for 24 months</small>
</label>
@endif -->
@endif
</div>
</div>
</div>

+ 12
- 1
resources/views/sales/form/dealer/business_preview.blade.php View File

@@ -200,6 +200,7 @@
<input type="hidden" name="deposit" value="{{ $deposit }}">
<input type="hidden" name="otc" value="{{ $otc_st }}">
<input type="hidden" name="gst" value="{{ $gst }}">
<input type="hidden" name="promo_st" value="{{ $promo_st }}">
<input type="hidden" name="total_monthly" value="{{ $total_monthly }}">


@@ -220,6 +221,11 @@
<tr><th width="50%">Package</th>
<td>City Broadband Business {{$a['package']}}</td>
</tr>
@if ($a['subscription']==24 && ($a['package'] != '1Gbps'))
<tr><th width="50%">Promotion</th>
<td>RM10 off for 24 months</td>
</tr>
@endif
<tr><th width="50%">Contract Term</th>
<td>{{$a['subscription']}} Months</td>
</tr>
@@ -302,8 +308,13 @@
<th>Total*</th>
</tr>
<tr><th>City Broadband Business - {{$a['package']}}</th>
@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>
@else
<td>RM{{ $product->retail_price }}</td>
<td>RM{{ $gst }}</td>
@endif
</tr>
@if($a['voice']=='Yes')
<tr><th>Business Voice Plan</th>
@@ -473,7 +484,7 @@
<div class="nonstick-footer padding bg-blue" align="center">
<span class="medium-title text-centeryellow" style="color: yellow;">Got A Question?</span>
<div align="center">
<a class="nomargin btn btn-default" href="#" style="width: 230px;">
<a class="nomargin btn btn-default" href="https://www.citybroadband.my/support/faqs/business/year-end-promo/" style="width: 230px;">
Read FAQ
</a>
<a style="width:230px" href="#" class="nomargin btn btn-default">

+ 2
- 2
resources/views/sales/form/dealer/residential_package.blade.php View File

@@ -202,11 +202,11 @@
<label class="radio-inline">
<input id="subscription2" type="radio" name="subscription" value="24" checked="">24 Months <br> <small id="OTC-side" style="color:red; display:none">.</small>
</label>
<!-- @if ($a['package'] != "1Gbps")
@if ($a['package'] != "1Gbps")
<label class="radio-inline">
<input type="checkbox" id="10off" checked=""> <small id="10off1">RM10 off for 24 months</small>
</label>
@endif -->
@endif
</div>
</div>
</div>

+ 12
- 1
resources/views/sales/form/dealer/residential_preview.blade.php View File

@@ -196,6 +196,7 @@
<input type="hidden" name="deposit" value="{{ $deposit }}">
<input type="hidden" name="otc" value="{{ $otc_st }}">
<input type="hidden" name="gst" value="{{ $gst }}">
<input type="hidden" name="promo_st" value="{{ $promo_st }}">
<input type="hidden" name="total_monthly" value="{{ $total_monthly }}">

<div class="tracking-process"></div>
@@ -215,6 +216,11 @@
<tr><th width="50%">Package</th>
<td>City Broadband Residential {{$a['package']}}</td>
</tr>
@if ($a['subscription']==24 && ($a['package']=='50Mbps' || $a['package']=='100Mbps' || $a['package']=='300Mbps' || $a['package']=='500Mbps'))
<tr><th width="50%">Promotion</th>
<td>RM10 off for 24 months</td>
</tr>
@endif
<tr><th width="50%">Contract Term</th>
<td>{{$a['subscription']}} Months</td>
</tr>
@@ -289,8 +295,13 @@
<th>Total*</th>
</tr>
<tr><th>City Broadband Residential - {{$a['package']}}</th>
@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>
@else
<td>RM{{ $product->retail_price }}</td>
<td>RM{{ $gst }}</td>
@endif
</tr>
@if($a['voice']=='Yes')
<tr><th>Home Voice Plan</th>
@@ -475,7 +486,7 @@
<div class="nonstick-footer padding bg-blue" align="center">
<span class="medium-title text-centeryellow" style="color: yellow;">Got A Question?</span>
<div align="center">
<a class="nomargin btn btn-default" href="#" style="width: 230px;">
<a class="nomargin btn btn-default" href="https://www.citybroadband.my/support/faqs/residential/year-end-promo/" style="width: 230px;">
Read FAQ
</a>
<a style="width:230px" href="#" class="nomargin btn btn-default">

+ 2
- 2
resources/views/sales/form/residential_package.blade.php View File

@@ -201,11 +201,11 @@
<label class="radio-inline">
<input id="subscription2" type="radio" name="subscription" value="24" checked="">24 Months <br> <small id="OTC-side" style="color:red; display:none">.</small>
</label>
<!-- @if ($a['package'] != "1Gbps")
@if ($a['package'] != "1Gbps")
<label class="radio-inline">
<input type="checkbox" id="10off" checked=""> <small id="10off1">RM10 off for 24 months</small>
</label>
@endif -->
@endif
</div>
</div>
</div>

+ 12
- 1
resources/views/sales/form/residential_preview.blade.php View File

@@ -195,6 +195,7 @@
<input type="hidden" name="deposit" value="{{ $deposit }}">
<input type="hidden" name="otc" value="{{ $otc_st }}">
<input type="hidden" name="gst" value="{{ $gst }}">
<input type="hidden" name="promo_st" value="{{ $promo_st }}">
<input type="hidden" name="total_monthly" value="{{ $total_monthly }}">

<div class="tracking-process"></div>
@@ -214,6 +215,11 @@
<tr><th width="50%">Package</th>
<td>City Broadband Residential {{$a['package']}}</td>
</tr>
@if ($a['subscription']==24 && ($a['package']=='50Mbps' || $a['package']=='100Mbps' || $a['package']=='300Mbps' || $a['package']=='500Mbps'))
<tr><th width="50%">Promotion</th>
<td>RM10 off for 24 months</td>
</tr>
@endif
<tr><th width="50%">Contract Term</th>
<td>{{$a['subscription']}} Months</td>
</tr>
@@ -288,8 +294,13 @@
<th>Total*</th>
</tr>
<tr><th>City Broadband Residential - {{$a['package']}}</th>
@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>
@else
<td>RM{{ $product->retail_price }}</td>
<td>RM{{ $gst }}</td>
@endif
</tr>
@if($a['voice']=='Yes')
<tr><th>Home Voice Plan</th>
@@ -462,7 +473,7 @@
<div class="nonstick-footer padding bg-blue" align="center">
<span class="medium-title text-centeryellow" style="color: yellow;">Got A Question?</span>
<div align="center">
<a class="nomargin btn btn-default" href="#" style="width: 230px;">
<a class="nomargin btn btn-default" href="https://www.citybroadband.my/support/faqs/residential/year-end-promo/" style="width: 230px;">
Read FAQ
</a>
<a style="width:230px" href="#" class="nomargin btn btn-default">

Loading…
Cancel
Save