Browse Source

edit bugs date for application pdf

ifah
Siti Hajar Ibrahim 5 years ago
parent
commit
ead940062f

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

<body> <body>
<!-- Address --> <!-- Address -->
<table width="100%"> <table width="100%">
@if($package->name != '1' && $package->contract == '24' && date('d/m/Y', strtotime($form->created_at)) >= '11/08/2020')
@if($package->name != '1' && $package->contract == '24' && date('d/m/Y', strtotime($form->created_at)) >= strtotime('11/08/2020'))
<tr> <tr>
<td align="left" style="font-size: 10px"> <td align="left" style="font-size: 10px">
<b style="color: red">PROMOTION (RM 10 off for 24 months)</b> <b style="color: red">PROMOTION (RM 10 off for 24 months)</b>
<tr> <tr>
<td> <td>
<table border="0" cellpadding="0" cellspacing="0"> <table border="0" cellpadding="0" cellspacing="0">
@if (date('d/m/Y', strtotime($form->created_at)) >= '11/08/2020')
@if (date('d/m/Y', strtotime($form->created_at)) >= strtotime('11/08/2020'))
@foreach($product as $p) @foreach($product as $p)
@if($p->speed != '10' && $p->speed != '30') @if($p->speed != '10' && $p->speed != '30')
<tr> <tr>
</td> </td>
</tr> </tr>
<tr><td height="4"></td></tr> <tr><td height="4"></td></tr>
@if ($package->name != '1' && $package->contract == '24' && date('d/m/Y', strtotime($form->created_at)) >= '11/08/2020')
@if ($package->name != '1' && $package->contract == '24' && date('d/m/Y', strtotime($form->created_at)) >= strtotime('11/08/2020'))
<tr> <tr>
<td style="font-size: 11px;"> <td style="font-size: 11px;">
<img src="{{ url('/assets/tick.png') }}" style="width:14px; height:auto"> RM 10 off for 24 months <img src="{{ url('/assets/tick.png') }}" style="width:14px; height:auto"> RM 10 off for 24 months

+ 6
- 10
resources/views/pdf/residential-pdf.blade.php View File

<body> <body>
<!-- Address --> <!-- Address -->
<table width="100%"> <table width="100%">
@if($package->name != '1' && $package->contract == '24' && date('d/m/Y', strtotime($created_at)) >= '11/08/2020')
@if($package->name != '1' && $package->contract == '24' && date('d/m/Y', strtotime($created_at)) >= strtotime('11/08/2020'))
<tr> <tr>
<td align="left" style="font-size: 10px"> <td align="left" style="font-size: 10px">
<b style="color: red">PROMOTION (RM 10 off for 24 months)</b> <b style="color: red">PROMOTION (RM 10 off for 24 months)</b>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
@endforeach @endforeach
@elseif (date('d/m/Y', strtotime($created_at)) >= '11/08/2020')
@elseif (date('d/m/Y', strtotime($created_at)) >= strtotime('11/08/2020'))
@foreach($product as $p) @foreach($product as $p)
<tr> <tr>
<td width="13" height="13" style="border:1px solid black;"> <td width="13" height="13" style="border:1px solid black;">
<td width="5">&nbsp;</td> <td width="5">&nbsp;</td>
<td style="font-size: 11px;"><b>{{ $p->package_name }}</b></td> <td style="font-size: 11px;"><b>{{ $p->package_name }}</b></td>
<td width="10">&nbsp;</td> <td width="10">&nbsp;</td>
@if( $p->promotion_price != '0')
<td style="font-size: 11px;"><b>RM {{ $p->retail_price }}</b> ( RM {{ number_format(floatval($p->retail_price) * 1.06, 2) }} )</td> <td style="font-size: 11px;"><b>RM {{ $p->retail_price }}</b> ( RM {{ number_format(floatval($p->retail_price) * 1.06, 2) }} )</td>
@elseif($p->promotion_price == '0')
<td style="font-size: 11px;"><b>RM {{ $p->retail_price }}</b> ( RM {{ number_format(floatval($p->retail_price) * 1.06, 2) }} )</td>
@endif
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
@endforeach @endforeach
</td> </td>
</tr> </tr>
<tr><td height="4"></td></tr> <tr><td height="4"></td></tr>
@if ($package->name != '1' && $package->contract == '24' && date('d/m/Y', strtotime($created_at)) >= '11/08/2020')
@if ($package->name != '1' && $package->contract == '24' && date('d/m/Y', strtotime($created_at)) >= strtotime('11/08/2020'))
<tr> <tr>
<td style="font-size: 11px;"> <td style="font-size: 11px;">
<img src="{{ url('/assets/tick.png') }}" style="width:14px; height:auto"> RM 10 off for 24 months <img src="{{ url('/assets/tick.png') }}" style="width:14px; height:auto"> RM 10 off for 24 months
@if($package->voice_fee == "no" || $package->voice_fee == "No" || $package->voice_fee == "NO") @if($package->voice_fee == "no" || $package->voice_fee == "No" || $package->voice_fee == "NO")
<td style="font-size: 11px;">Voice Fee : <b>RM 0.00</b></td> <td style="font-size: 11px;">Voice Fee : <b>RM 0.00</b></td>
@elseif($package->voice_fee == "yes" || $package->voice_fee == "Yes" || $package->voice_fee == "YES") @elseif($package->voice_fee == "yes" || $package->voice_fee == "Yes" || $package->voice_fee == "YES")
@if(date('d/m/Y', strtotime($created_at)) >= '11/08/2020')
@if(date('d/m/Y', strtotime($created_at)) >= strtotime('11/08/2020'))
<td style="font-size: 11px;">Voice Fee : <b>RM 21.20</b> (including 6% ST)</td> <td style="font-size: 11px;">Voice Fee : <b>RM 21.20</b> (including 6% ST)</td>
@else @else
<td style="font-size: 11px;">Voice Fee : <b>RM 20</b></td>
<td style="font-size: 11px;">Voice Fee : <b>RM 21.20</b> (including 6% ST)</td>
@endif @endif
@endif @endif
</tr> </tr>

Loading…
Cancel
Save