Browse Source

edit bugs date for application pdf

ifah
Siti Hajar Ibrahim 5 years ago
parent
commit
dfcbcda5e9

+ 1
- 0
app/Http/Controllers/CustomerService/CustomerController.php View File

@@ -485,6 +485,7 @@ class CustomerController extends Controller
$documentPath = 'document/'.$subscriber_id;

$created = $form->Form->created_at->toDateString();
// dd($created . $created_at);
$total = floatval($package->montly_fee) + floatval($package->deposit) + floatval($package->voice_fee) + floatval($package->upfront_payment);
// dd($total);

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

@@ -21,7 +21,7 @@
<body>
<!-- Address -->
<table width="100%">
@if($package->name != '1' && $package->contract == '24' && date('d/m/Y', strtotime($form->created_at)) >= strtotime('11/08/2020'))
@if($package->name != '1' && $package->contract == '24' && $dateSubmittion >= '12/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)) >= strtotime('11/08/2020'))
@if ($dateSubmittion >= '12/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)) >= strtotime('11/08/2020'))
@if ($package->name != '1' && $package->contract == '24' && $dateSubmittion >= '12/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

+ 4
- 5
resources/views/pdf/residential-pdf.blade.php View File

@@ -21,8 +21,7 @@
<body>
<!-- Address -->
<table width="100%">
@if($package->name != '1' && $package->contract == '24' && date('d/m/Y', strtotime($created_at)) >= strtotime('11/08/2020'))
@if($package->name != '1' && $package->contract == '24' && $created >= '2020-08-12')
<tr>
<td align="left" style="font-size: 10px">
<b style="color: red">PROMOTION (RM 10 off for 24 months)</b>
@@ -423,7 +422,7 @@
<td>&nbsp;</td>
</tr>
@endforeach
@elseif (date('d/m/Y', strtotime($created_at)) >= strtotime('11/08/2020'))
@elseif ($created >= '2020-08-12')
@foreach($product as $p)
<tr>
<td width="13" height="13" style="border:1px solid black;">
@@ -472,7 +471,7 @@
</td>
</tr>
<tr><td height="4"></td></tr>
@if ($package->name != '1' && $package->contract == '24' && date('d/m/Y', strtotime($created_at)) >= strtotime('11/08/2020'))
@if ($package->name != '1' && $package->contract == '24' && $created >= '2020-08-12')
<tr>
<td style="font-size: 11px;">
<img src="{{ url('/assets/tick.png') }}" style="width:14px; height:auto"> RM 10 off for 24 months
@@ -543,7 +542,7 @@
@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)) >= strtotime('11/08/2020'))
@if($created >= '2020-08-12')
<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 21.20</b> (including 6% ST)</td>

Loading…
Cancel
Save