Browse Source

edit submission pdf based on promotion

hajar
Siti Hajar Ibrahim 4 years ago
parent
commit
9183b56e96
1 changed files with 54 additions and 42 deletions
  1. 54
    42
      resources/views/pdf/newBusiness-pdf.blade.php

+ 54
- 42
resources/views/pdf/newBusiness-pdf.blade.php View File

@@ -29,6 +29,14 @@
</tr>
@endif
@if($package->name == '1' && $package->contract == '24' && $form->city == 'CYBERJAYA' && $created >= '2020-12-16')
<tr>
<td align="left" style="font-size: 10px">
<b style="color: red">City Broadband Business Cyberjaya 1Gbps@RM999 Promotion</b>
</td>
</tr>
@endif
<tr>
<td align="right" class="fontStyle1">
<b>ALLO TECHNOLOGY SDN BHD</b>
@@ -354,37 +362,46 @@
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
@if(($created >= '2020-08-12' && $created < '2020-11-01') || $created >= '2020-12-01')
@if(($created >= '2020-08-12' && $created < '2020-11-01') || $created >= '2020-12-01')
@foreach($product as $p)
@if($p->speed != '10' && $p->speed != '30')
<tr>
<td width="13" height="13" style="border:1px solid black;">
<span>
@if( $package->name == $p->speed )
<img src="{{ url('/assets/tick.png') }}" style="width:14px; height:auto">
@if($p->speed != '10' && $p->speed != '30')
<tr>
<td width="13" height="13" style="border:1px solid black;">
<span>
@if( $package->name == $p->speed )
<img src="{{ url('/assets/tick.png') }}" style="width:14px; height:auto">
@endif
</span>
</td>
<td width="5">&nbsp;</td>
<td style="font-size: 11px;"><b>{{ $p->package_name }}</b></td>
<td width="10">&nbsp;</td>
@if( $p->aug20_price != '0' && $package->contract == "24")
<td style="font-size: 11px;">
<span style="text-decoration: line-through;">
<b>RM {{ $p->retail_price }}</b> ( RM {{ number_format(floatval($p->retail_price) * 1.06, 2) }} )
</span>
<b>RM {{ $p->aug20_price }}</b> ( RM {{ number_format(floatval($p->aug20_price) * 1.06, 2) }} )
</td>
@elseif($package->name == '1' && $package->contract == '24' && $form->city == 'CYBERJAYA' && $created >= '2020-12-16')
@if ( $p->speed == '1')
<td style="font-size: 11px;">
<span style="text-decoration: line-through;">
<b>RM {{ $p->retail_price }}</b> ( RM 3708.94 )
</span>
<b>RM 999 </b> ( RM 1058.94 )
</td>
@endif
@elseif($p->promotion_price == '0' || $package->contract == "12" )
@if ( $p->speed != '1')
<td style="font-size: 11px;"><b>RM {{ $p->retail_price }}</b> ( RM {{ number_format(floatval($p->retail_price) * 1.06, 2) }} )</td>
@elseif ( $p->speed == '1')
<td style="font-size: 11px;"><b>RM {{ $p->retail_price }}</b> ( RM 3708.94 )</td>
@endif
</span>
</td>
<td width="5">&nbsp;</td>
<td style="font-size: 11px;"><b>{{ $p->package_name }}</b></td>
<td width="10">&nbsp;</td>
@if( $p->aug20_price != '0' && $package->contract == "24")
<td style="font-size: 11px;">
<span style="text-decoration: line-through;">
<b>RM {{ $p->retail_price }}</b> ( RM {{ number_format(floatval($p->retail_price) * 1.06, 2) }} )
</span>
<b>RM {{ $p->aug20_price }}</b> ( RM {{ number_format(floatval($p->aug20_price) * 1.06, 2) }} )
</td>
@elseif($p->promotion_price == '0' || $package->contract == "12" )
@if ( $p->speed != '1')
<td style="font-size: 11px;"><b>RM {{ $p->retail_price }}</b> ( RM {{ number_format(floatval($p->retail_price) * 1.06, 2) }} )</td>
@elseif ( $p->speed == '1')
<td style="font-size: 11px;"><b>RM {{ $p->retail_price }}</b> ( RM 3708.94 )</td>
@endif
<td>&nbsp;</td>
</tr>
@endif
<td>&nbsp;</td>
</tr>
@endif
@endforeach
@else
@foreach($product as $p)
@@ -417,6 +434,13 @@
</td>
</tr>
@endif
@if($package->name == '1' && $package->contract == '24' && $form->city == 'CYBERJAYA' && $created >= '2020-12-16'))
<tr>
<td style="font-size: 11px;">
<img src="{{ url('/assets/tick.png') }}" style="width:14px; height:auto"> City Broadband Business Cyberjaya 1Gbps@RM999 Promotion
</td>
</tr>
@endif
<tr>
<td style="font-size: 9px;font-style: italic">*All prices shown in the bracket include 6% Services Tax (SST)</td>
</tr>
@@ -500,25 +524,13 @@
</tr>
<tr>
@if ($package->name == "1")
@if ($package->ip == "1 Fixed IP RM200/1P/Month")
@if ($package->contract == "12")
<td style="font-size: 11px;">Total : <b>RM 4238.94</b> </td>
@else
<td style="font-size: 11px;">Total : <b>RM 3920.94</b> </td>
@endif
@elseif ($package->ip == "5 Fixed IP RM400/1P/Month")
@if ($package->contract == "12")
<td style="font-size: 11px;">Total : <b>RM 4450.94</b> </td>
@else
<td style="font-size: 11px;">Total : <b>RM 4132.94</b> </td>
@endif
@else
@if ($package->contract == "12")
@if ($package->contract == "24" && $form->city == "CYBERJAYA" && $created >= '2020-12-16')
<td style="font-size: 11px;">Total : <b>RM 1058.94</b> </td>
@elseif ($package->contract == "12")
<td style="font-size: 11px;">Total : <b>RM 4026.94</b> </td>
@else
<td style="font-size: 11px;">Total : <b>RM 3708.94</b> </td>
@endif
@endif
@else
@if($package->voice_fee == "yes" || $package->voice_fee == "Yes" || $package->voice_fee == "YES")
<td style="font-size: 11px;">Total : <b>RM {{ number_format(floatval($package->montly_fee) + floatval($package->upfront_payment) + floatval($package->ip_tax) + 21.20 , 2) }}</b></td>

Loading…
Cancel
Save