Browse Source

edit docket pdf

hajar
Siti Hajar Ibrahim 5 years ago
parent
commit
b31fb1fb84

+ 5
- 1
app/Http/Controllers/Contractor/DocketController.php View File

if($form->type_application == 'R'){ if($form->type_application == 'R'){
$building = $form->Subscriber->building_name; $building = $form->Subscriber->building_name;
}else if($form->type_application == 'B'){ }else if($form->type_application == 'B'){
$building = $form->Subscriber->company_name;
if ($form->Subscriber->building_name != null) {
$building = $form->Subscriber->building_name;
} else {
$building = $form->Subscriber->company_name;
}
} }


$reg_time = $d->created_at; $reg_time = $d->created_at;

+ 5
- 1
app/Http/Controllers/CustomerService/DocketController.php View File

if($form->type_application == 'R'){ if($form->type_application == 'R'){
$building = $form->Subscriber->building_name; $building = $form->Subscriber->building_name;
}else if($form->type_application == 'B'){ }else if($form->type_application == 'B'){
$building = $form->Subscriber->company_name;
if ($form->Subscriber->building_name != null){
$building = $form->Subscriber->building_name;
} else {
$building = $form->Subscriber->company_name;
}
} }
if(empty($form->customer_category)){ if(empty($form->customer_category)){

+ 6
- 2
resources/views/pdf/docket-pdf.blade.php View File

</tr> </tr>
<tr style="height: 50px;"> <tr style="height: 50px;">
<td style="font-size: 12px; width: 150px;">Customer Name</td> <td style="font-size: 12px; width: 150px;">Customer Name</td>
<td>:</td>
<td style="font-size: 12px;"> {{ $form->Subscriber->name }}</td>
<td>:</td>
@if ($form->type_application == "R")
<td style="font-size: 12px;"> {{ $form->Subscriber->name }}</td>
@elseif ($form->type_application == "B")
<td style="font-size: 12px;"> {{ $form->Subscriber->company_name }}</td>
@endif
</tr> </tr>
<tr style="height: 50px;"> <tr style="height: 50px;">
<td style="font-size: 12px;">Address</td> <td style="font-size: 12px;">Address</td>

Loading…
Cancel
Save