瀏覽代碼

edit bugs date for application pdf

ifah
Siti Hajar Ibrahim 5 年之前
父節點
當前提交
ead940062f
共有 2 個文件被更改,包括 9 次插入13 次删除
  1. 3
    3
      resources/views/pdf/newBusiness-pdf.blade.php
  2. 6
    10
      resources/views/pdf/residential-pdf.blade.php

+ 3
- 3
resources/views/pdf/newBusiness-pdf.blade.php 查看文件

@@ -21,7 +21,7 @@
<body>
<!-- Address -->
<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>
<td align="left" style="font-size: 10px">
<b style="color: red">PROMOTION (RM 10 off for 24 months)</b>
@@ -350,7 +350,7 @@
<tr>
<td>
<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)
@if($p->speed != '10' && $p->speed != '30')
<tr>
@@ -402,7 +402,7 @@
</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>
<td style="font-size: 11px;">
<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 查看文件

@@ -21,8 +21,8 @@
<body>
<!-- Address -->
<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>
<td align="left" style="font-size: 10px">
<b style="color: red">PROMOTION (RM 10 off for 24 months)</b>
@@ -423,7 +423,7 @@
<td>&nbsp;</td>
</tr>
@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)
<tr>
<td width="13" height="13" style="border:1px solid black;">
@@ -462,11 +462,7 @@
<td width="5">&nbsp;</td>
<td style="font-size: 11px;"><b>{{ $p->package_name }}</b></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>
@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>
</tr>
@endforeach
@@ -476,7 +472,7 @@
</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>
<td style="font-size: 11px;">
<img src="{{ url('/assets/tick.png') }}" style="width:14px; height:auto"> RM 10 off for 24 months
@@ -547,10 +543,10 @@
@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>
@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>
@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
</tr>

Loading…
取消
儲存