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

$documentPath = 'document/'.$subscriber_id; $documentPath = 'document/'.$subscriber_id;


$created = $form->Form->created_at->toDateString(); $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); $total = floatval($package->montly_fee) + floatval($package->deposit) + floatval($package->voice_fee) + floatval($package->upfront_payment);
// dd($total); // dd($total);

+ 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)) >= strtotime('11/08/2020'))
@if($package->name != '1' && $package->contract == '24' && $dateSubmittion >= '12/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)) >= strtotime('11/08/2020'))
@if ($dateSubmittion >= '12/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)) >= strtotime('11/08/2020'))
@if ($package->name != '1' && $package->contract == '24' && $dateSubmittion >= '12/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

+ 4
- 5
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)) >= strtotime('11/08/2020'))
@if($package->name != '1' && $package->contract == '24' && $created >= '2020-08-12')
<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)) >= strtotime('11/08/2020'))
@elseif ($created >= '2020-08-12')
@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> </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)) >= strtotime('11/08/2020'))
@if ($package->name != '1' && $package->contract == '24' && $created >= '2020-08-12')
<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)) >= 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> <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 21.20</b> (including 6% ST)</td> <td style="font-size: 11px;">Voice Fee : <b>RM 21.20</b> (including 6% ST)</td>

Loading…
Cancel
Save