Browse Source

adjust street name

ifah
Siti Hajar Ibrahim 5 years ago
parent
commit
72d0514503

+ 6
- 1
app/Http/Controllers/Api/ClaimedController.php View File

}else if($f->formT == 'B'){ }else if($f->formT == 'B'){
$name = $f->Subscriber->company_name; $name = $f->Subscriber->company_name;
$contact_no = $f->Subscriber->company_num; $contact_no = $f->Subscriber->company_num;
$building = $f->Subscriber->street;
if($f->Subscriber->building_name == null){
$building = $f->Subscriber->street;
} else {
$building = $f->Subscriber->building_name;
}
} }
if(!empty($f->docket)){ if(!empty($f->docket)){

+ 14
- 4
app/Http/Controllers/Api/FormController.php View File

}else if($f->type_application == 'B'){ }else if($f->type_application == 'B'){
$name = $f->Subscriber->company_name; $name = $f->Subscriber->company_name;
$contact_no = $f->Subscriber->company_num; $contact_no = $f->Subscriber->company_num;
$building = $f->Subscriber->street;
$address = $f->Subscriber->postcode. ' , '.$f->Subscriber->city. ' , '.$f->Subscriber->state;
if ($f->Subscriber->building_name == null) {
$building = $f->Subscriber->street;
$address = $f->Subscriber->postcode . ' , ' . $f->Subscriber->city . ' , ' . $f->Subscriber->state;
} else {
$building = $f->Subscriber->building_name;
$address = $f->Subscriber->street . ' , ' . $f->Subscriber->postcode . ' , ' . $f->Subscriber->city . ' , ' . $f->Subscriber->state;
}
} }


if($f->Subscriber->city == 'Jasin'){ if($f->Subscriber->city == 'Jasin'){
$company_reg = $f->Subscriber->company_reg; $company_reg = $f->Subscriber->company_reg;
$subscriber_id = $f->Subscriber->subscriber_id; $subscriber_id = $f->Subscriber->subscriber_id;
$contact_no = $f->Subscriber->company_num; $contact_no = $f->Subscriber->company_num;
$building = $f->Subscriber->street;
$address = $f->Subscriber->postcode. ' , '.$f->Subscriber->city. ' , '.$f->Subscriber->state;
if ($f->Subscriber->building_name == null) {
$building = $f->Subscriber->street;
$address = $f->Subscriber->postcode . ' , ' . $f->Subscriber->city . ' , ' . $f->Subscriber->state;
} else {
$building = $f->Subscriber->building_name;
$address = $f->Subscriber->street . ' , ' . $f->Subscriber->postcode . ' , ' . $f->Subscriber->city . ' , ' . $f->Subscriber->state;
}
} }


$woD = '-'; $woId = 'none'; $natureWork = ''; $doId = ''; $woRate=""; $installer_name=""; $contractor_name=""; $woD = '-'; $woId = 'none'; $natureWork = ''; $doId = ''; $woRate=""; $installer_name=""; $contractor_name="";

+ 18
- 10
app/Http/Controllers/Api/MynixController.php View File

}else if($form->type_application == 'B'){ }else if($form->type_application == 'B'){


if($form->Subscriber->unit_no != ''){ if($form->Subscriber->unit_no != ''){
$address = $form->Subscriber->unit_no. ', '.$form->Subscriber->company_name. ', '.$form->Subscriber->street. ' , '.$form->Subscriber->postcode. ' , '.$form->Subscriber->city. ' , '.$form->Subscriber->state;
$unit = $form->Subscriber->unit_no;
}else { }else {
$address = $form->Subscriber->company_name. ', '.$form->Subscriber->street. ' , '.$form->Subscriber->postcode. ' , '.$form->Subscriber->city. ' , '.$form->Subscriber->state;
$unit = ' ';
}

if ($form->Subscriber->building_name == null) {
$address = $unit . ' , ' .$form->Subscriber->street . ' , ' .$form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
} else {
$address = $unit . ' , ' . $form->Subscriber->building_name . ' , ' .$form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
} }
} }
if($v->type_application == 'R'){ if($v->type_application == 'R'){
if($v->Subscriber->street != ''){ if($v->Subscriber->street != ''){
$address = $v->Subscriber->unit_no. ' , '.$v->Subscriber->building_name. ' , '.$v->Subscriber->street. ' , '.$v->Subscriber->postcode. ' , '.$v->Subscriber->city. ' , '.$v->Subscriber->state; $address = $v->Subscriber->unit_no. ' , '.$v->Subscriber->building_name. ' , '.$v->Subscriber->street. ' , '.$v->Subscriber->postcode. ' , '.$v->Subscriber->city. ' , '.$v->Subscriber->state;
$building = $v->Subscriber->building_name;
}else { }else {
$address = $v->Subscriber->unit_no. ' , '.$v->Subscriber->building_name. ' , '.$v->Subscriber->postcode. ' , '.$v->Subscriber->city. ' , '.$v->Subscriber->state; $address = $v->Subscriber->unit_no. ' , '.$v->Subscriber->building_name. ' , '.$v->Subscriber->postcode. ' , '.$v->Subscriber->city. ' , '.$v->Subscriber->state;
$building = $v->Subscriber->building_name;
} }
}else if($v->type_application == 'B'){ }else if($v->type_application == 'B'){


if($v->Subscriber->unit_no != ''){
$address = $v->Subscriber->unit_no. ', '.$v->Subscriber->company_name. ', '.$v->Subscriber->street. ' , '.$v->Subscriber->postcode. ' , '.$v->Subscriber->city. ' , '.$v->Subscriber->state;
$building = $v->Subscriber->company_name;
}else {
$address = $v->Subscriber->company_name. ', '.$v->Subscriber->street. ' , '.$v->Subscriber->postcode. ' , '.$v->Subscriber->city. ' , '.$v->Subscriber->state;
$building = $v->Subscriber->company_name;
if ($v->Subscriber->unit_no != '') {
$unit = $v->Subscriber->unit_no;
} else {
$unit = ' ';
}

if ($v->Subscriber->building_name == null) {
$address = $unit . ' , ' . $v->Subscriber->street . ' , ' . $v->Subscriber->postcode . ' , ' . $v->Subscriber->city . ' , ' . $v->Subscriber->state;
} else {
$address = $unit . ' , ' . $v->Subscriber->building_name . ' , ' . $v->Subscriber->street . ' , ' . $v->Subscriber->postcode . ' , ' . $v->Subscriber->city . ' , ' . $v->Subscriber->state;
} }
} }

+ 20
- 8
app/Http/Controllers/Api/WorkOrderMobile.php View File

}else if($form->type_application == 'B'){ }else if($form->type_application == 'B'){


if($form->Subscriber->unit_no != ''){
$address = $form->Subscriber->unit_no. ', '.$form->Subscriber->company_name. ', '.$form->Subscriber->street. ' , '.$form->Subscriber->postcode. ' , '.$form->Subscriber->city. ' , '.$form->Subscriber->state;
}else {
$address = $form->Subscriber->company_name. ', '.$form->Subscriber->street. ' , '.$form->Subscriber->postcode. ' , '.$form->Subscriber->city. ' , '.$form->Subscriber->state;
if ($form->Subscriber->unit_no != '') {
$unit = $form->Subscriber->unit_no;
} else {
$unit = ' ';
}

if ($form->Subscriber->building_name == null) {
$address = $unit . ' , ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
} else {
$address = $unit . ' , ' . $form->Subscriber->building_name . ' , ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
} }
} }
}else if($form->type_application == 'B'){ }else if($form->type_application == 'B'){


if($form->Subscriber->unit_no != ''){
$address = $form->Subscriber->unit_no. ', '.$form->Subscriber->company_name. ', '.$form->Subscriber->street. ' , '.$form->Subscriber->postcode. ' , '.$form->Subscriber->city. ' , '.$form->Subscriber->state;
}else {
$address = $form->Subscriber->company_name. ', '.$form->Subscriber->street. ' , '.$form->Subscriber->postcode. ' , '.$form->Subscriber->city. ' , '.$form->Subscriber->state;
if ($form->Subscriber->unit_no != '') {
$unit = $form->Subscriber->unit_no;
} else {
$unit = ' ';
}

if ($form->Subscriber->building_name == null) {
$address = $unit . ' , ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
} else {
$address = $unit . ' , ' . $form->Subscriber->building_name . ' , ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
} }
} }

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



}else if($form->type_application == 'B'){ }else if($form->type_application == 'B'){


if($form->Subscriber->unit_no != ''){
$address = $form->Subscriber->unit_no. ', '.$form->Subscriber->company_name. ', '.$form->Subscriber->street. ' , '.$form->Subscriber->postcode. ' , '.$form->Subscriber->city. ' , '.$form->Subscriber->state;
}else {
$address = $form->Subscriber->company_name. ', '.$form->Subscriber->street. ' , '.$form->Subscriber->postcode. ' , '.$form->Subscriber->city. ' , '.$form->Subscriber->state;
}
if ($form->Subscriber->unit_no != '') {
$unit = $form->Subscriber->unit_no;
} else {
$unit = ' ';
}

if ($form->Subscriber->building_name == null) {
$address = $unit . ' , ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
} else {
$address = $unit . ' , ' . $form->Subscriber->building_name . ' , ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
}


} }

+ 10
- 4
app/Http/Controllers/Contractor/WorkOrderController.php View File



}else if($form->type_application == 'B'){ }else if($form->type_application == 'B'){


if($form->Subscriber->unit_no != ''){
$address = $form->Subscriber->unit_no. ', '.$form->Subscriber->company_name. ', '.$form->Subscriber->street. ' , '.$form->Subscriber->postcode. ' , '.$form->Subscriber->city. ' , '.$form->Subscriber->state;
}else {
$address = $form->Subscriber->company_name. ', '.$form->Subscriber->street. ' , '.$form->Subscriber->postcode. ' , '.$form->Subscriber->city. ' , '.$form->Subscriber->state;
if ($form->Subscriber->unit_no != '') {
$unit = $form->Subscriber->unit_no;
} else {
$unit = ' ';
}

if ($form->Subscriber->building_name == null) {
$address = $unit . ' , ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
} else {
$address = $unit . ' , ' . $form->Subscriber->building_name . ' , ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
} }


} }

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



}else if($form->type_application == 'B'){ }else if($form->type_application == 'B'){


if($form->Subscriber->unit_no != ''){
$address = $form->Subscriber->unit_no. ', '.$form->Subscriber->company_name. ', '.$form->Subscriber->street. ' , '.$form->Subscriber->postcode. ' , '.$form->Subscriber->city. ' , '.$form->Subscriber->state;
}else {
$address = $form->Subscriber->company_name. ', '.$form->Subscriber->street. ' , '.$form->Subscriber->postcode. ' , '.$form->Subscriber->city. ' , '.$form->Subscriber->state;
}
if ($form->Subscriber->unit_no != '') {
$unit = $form->Subscriber->unit_no;
} else {
$unit = ' ';
}

if ($form->Subscriber->building_name == null) {
$address = $unit . ' , ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
} else {
$address = $unit . ' , ' . $form->Subscriber->building_name . ' , ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
}


} }

+ 10
- 4
app/Http/Controllers/CustomerService/WorkOrderController.php View File



}else if($form->type_application == 'B'){ }else if($form->type_application == 'B'){


if($form->Subscriber->unit_no != ''){
$address = $form->Subscriber->unit_no. ', '.$form->Subscriber->company_name. ', '.$form->Subscriber->street. ' , '.$form->Subscriber->postcode. ' , '.$form->Subscriber->city. ' , '.$form->Subscriber->state;
}else {
$address = $form->Subscriber->company_name. ', '.$form->Subscriber->street. ' , '.$form->Subscriber->postcode. ' , '.$form->Subscriber->city. ' , '.$form->Subscriber->state;
if ($form->Subscriber->unit_no != '') {
$unit = $form->Subscriber->unit_no;
} else {
$unit = ' ';
}

if ($form->Subscriber->building_name == null) {
$address = $unit . ' , ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
} else {
$address = $unit . ' , ' . $form->Subscriber->building_name . ' , ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
} }


} }

+ 129
- 33
app/Http/Controllers/DS/DealerController.php View File

} else if ($c->Subscriber->Form->type_application == 'B') { } else if ($c->Subscriber->Form->type_application == 'B') {


if ($c->Subscriber->unit_no != '') { if ($c->Subscriber->unit_no != '') {
$address = $c->Subscriber->unit_no . ', ' . $c->Subscriber->company_name . ', ' . $c->Subscriber->street . ' , ' . $c->Subscriber->postcode . ' , ' . $c->Subscriber->city . ' , ' . $c->Subscriber->state;
$unit = $c->Subscriber->unit_no;
} else { } else {
$address = $c->Subscriber->company_name . ', ' . $c->Subscriber->street . ' , ' . $c->Subscriber->postcode . ' , ' . $c->Subscriber->city . ' , ' . $c->Subscriber->state;
$unit = ' ';
}

if ($c->Subscriber->building_name == null) {
$address = $unit . ' , ' . $c->Subscriber->street . ' , ' . $c->Subscriber->postcode . ' , ' . $c->Subscriber->city . ' , ' . $c->Subscriber->state;
} else {
$address = $unit . ' , ' . $c->Subscriber->building_name . ' , ' . $c->Subscriber->street . ' , ' . $c->Subscriber->postcode . ' , ' . $c->Subscriber->city . ' , ' . $c->Subscriber->state;
} }


$name = $c->Subscriber->company_name; $name = $c->Subscriber->company_name;
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else {
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
} }


} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else {
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else {
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else {
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else {
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else {
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else {
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else {
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else {
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else {
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else {
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else {
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else {
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($c->Subscriber->Form->type_application == 'B') { } else if ($c->Subscriber->Form->type_application == 'B') {


if ($c->Subscriber->unit_no != '') { if ($c->Subscriber->unit_no != '') {
$address = $c->Subscriber->unit_no . ', ' . $c->Subscriber->company_name . ', ' . $c->Subscriber->street . ' , ' . $c->Subscriber->postcode . ' , ' . $c->Subscriber->city . ' , ' . $c->Subscriber->state;
$unit = $c->Subscriber->unit_no;
} else {
$unit = ' ';
}

if ($c->Subscriber->building_name == null) {
$address = $unit . ' , ' . $c->Subscriber->street . ' , ' . $c->Subscriber->postcode . ' , ' . $c->Subscriber->city . ' , ' . $c->Subscriber->state;
} else { } else {
$address = $c->Subscriber->company_name . ', ' . $c->Subscriber->street . ' , ' . $c->Subscriber->postcode . ' , ' . $c->Subscriber->city . ' , ' . $c->Subscriber->state;
$address = $unit . ' , ' . $c->Subscriber->building_name . ' , ' . $c->Subscriber->street . ' , ' . $c->Subscriber->postcode . ' , ' . $c->Subscriber->city . ' , ' . $c->Subscriber->state;
} }


$name = $c->Subscriber->company_name; $name = $c->Subscriber->company_name;


$name = $c->Subscriber->name; $name = $c->Subscriber->name;
} else if ($c->Subscriber->Form->type_application == 'B') { } else if ($c->Subscriber->Form->type_application == 'B') {
if ($c->Subscriber->unit_no != '') { if ($c->Subscriber->unit_no != '') {
$address = $c->Subscriber->unit_no . ', ' . $c->Subscriber->company_name . ', ' . $c->Subscriber->street . ' , ' . $c->Subscriber->postcode . ' , ' . $c->Subscriber->city . ' , ' . $c->Subscriber->state;
$unit = $c->Subscriber->unit_no;
} else {
$unit = ' ';
}

if ($c->Subscriber->building_name == null) {
$address = $unit . ' , ' . $c->Subscriber->street . ' , ' . $c->Subscriber->postcode . ' , ' . $c->Subscriber->city . ' , ' . $c->Subscriber->state;
} else { } else {
$address = $c->Subscriber->company_name . ', ' . $c->Subscriber->street . ' , ' . $c->Subscriber->postcode . ' , ' . $c->Subscriber->city . ' , ' . $c->Subscriber->state;
$address = $unit . ' , ' . $c->Subscriber->building_name . ' , ' . $c->Subscriber->street . ' , ' . $c->Subscriber->postcode . ' , ' . $c->Subscriber->city . ' , ' . $c->Subscriber->state;
} }


$name = $c->Subscriber->company_name; $name = $c->Subscriber->company_name;

+ 135
- 34
app/Http/Controllers/DS/MarketingController.php View File

} else if ($form->type_application == 'B') { } else if ($form->type_application == 'B') {


if ($form->Subscriber->unit_no != '') { if ($form->Subscriber->unit_no != '') {
$address = $form->Subscriber->unit_no . ', ' . $form->Subscriber->company_name . ', ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
$unit = $form->Subscriber->unit_no;
} else { } else {
$address = $form->Subscriber->company_name . ', ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
$unit = ' ';
}

if ($form->Subscriber->building_name == null) {
$address = $unit . ' , ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
} else {
$address = $unit . ' , ' . $form->Subscriber->building_name . ' , ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
} }
} }


} else if ($form->type_application == 'B') { } else if ($form->type_application == 'B') {


if ($form->Subscriber->unit_no != '') { if ($form->Subscriber->unit_no != '') {
$address = $form->Subscriber->unit_no . ', ' . $form->Subscriber->company_name . ', ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
$unit = $form->Subscriber->unit_no;
} else { } else {
$address = $form->Subscriber->company_name . ', ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
$unit = ' ';
}

if ($form->Subscriber->building_name == null) {
$address = $unit . ' , ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
} else {
$address = $unit . ' , ' . $form->Subscriber->building_name . ' , ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
} }
} }


} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else {
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else {
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else {
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else {
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else {
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else {
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else {
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else {
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else {
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else {
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else {
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else {
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($customer->Form->type_application == 'B') { } else if ($customer->Form->type_application == 'B') {


if ($customer->unit_no != '') { if ($customer->unit_no != '') {
$address = $customer->unit_no . ', ' . $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$unit = $customer->unit_no;
} else {
$unit = ' ';
}

if ($customer->building_name == null) {
$address = $unit . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} else { } else {
$address = $customer->company_name . ', ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
$address = $unit . ' , ' . $customer->building_name . ' , ' . $customer->street . ' , ' . $customer->postcode . ' , ' . $customer->city . ' , ' . $customer->state;
} }
$name = $customer->company_name; $name = $customer->company_name;
} }
} else if ($c->Subscriber->Form->type_application == 'B') { } else if ($c->Subscriber->Form->type_application == 'B') {


if ($c->Subscriber->unit_no != '') { if ($c->Subscriber->unit_no != '') {
$address = $c->Subscriber->unit_no . ', ' . $c->Subscriber->company_name . ', ' . $c->Subscriber->street . ' , ' . $c->Subscriber->postcode . ' , ' . $c->Subscriber->city . ' , ' . $c->Subscriber->state;
$unit = $c->Subscriber->unit_no;
} else { } else {
$address = $c->Subscriber->company_name . ', ' . $c->Subscriber->street . ' , ' . $c->Subscriber->postcode . ' , ' . $c->Subscriber->city . ' , ' . $c->Subscriber->state;
$unit = ' ';
} }


if ($c->Subscriber->building_name == null) {
$address = $unit . ' , ' . $c->Subscriber->street . ' , ' . $c->Subscriber->postcode . ' , ' . $c->Subscriber->city . ' , ' . $c->Subscriber->state;
} else {
$address = $unit . ' , ' . $c->Subscriber->building_name . ' , ' . $c->Subscriber->street . ' , ' . $c->Subscriber->postcode . ' , ' . $c->Subscriber->city . ' , ' . $c->Subscriber->state;
}
$name = $c->Subscriber->company_name; $name = $c->Subscriber->company_name;
} }


} else if ($c->Subscriber->Form->type_application == 'B') { } else if ($c->Subscriber->Form->type_application == 'B') {


if ($c->Subscriber->unit_no != '') { if ($c->Subscriber->unit_no != '') {
$address = $c->Subscriber->unit_no . ', ' . $c->Subscriber->company_name . ', ' . $c->Subscriber->street . ' , ' . $c->Subscriber->postcode . ' , ' . $c->Subscriber->city . ' , ' . $c->Subscriber->state;
$unit = $c->Subscriber->unit_no;
} else {
$unit = ' ';
}

if ($c->Subscriber->building_name == null) {
$address = $unit . ' , ' . $c->Subscriber->street . ' , ' . $c->Subscriber->postcode . ' , ' . $c->Subscriber->city . ' , ' . $c->Subscriber->state;
} else { } else {
$address = $c->Subscriber->company_name . ', ' . $c->Subscriber->street . ' , ' . $c->Subscriber->postcode . ' , ' . $c->Subscriber->city . ' , ' . $c->Subscriber->state;
$address = $unit . ' , ' . $c->Subscriber->building_name . ' , ' . $c->Subscriber->street . ' , ' . $c->Subscriber->postcode . ' , ' . $c->Subscriber->city . ' , ' . $c->Subscriber->state;
} }


$name = $c->Subscriber->company_name; $name = $c->Subscriber->company_name;

+ 10
- 4
app/Mail/AssignWorkOrder.php View File



}else if($form->type_application == 'B'){ }else if($form->type_application == 'B'){


if($form->Subscriber->unit_no != ''){
$address = $form->Subscriber->unit_no. ', '.$form->Subscriber->company_name. ', '.$form->Subscriber->street. ' , '.$form->Subscriber->postcode. ' , '.$form->Subscriber->city. ' , '.$form->Subscriber->state;
}else {
$address = $form->Subscriber->company_name. ', '.$form->Subscriber->street. ' , '.$form->Subscriber->postcode. ' , '.$form->Subscriber->city. ' , '.$form->Subscriber->state;
if ($form->Subscriber->unit_no != '') {
$unit = $form->Subscriber->unit_no;
} else {
$unit = ' ';
}

if ($form->Subscriber->building_name == null) {
$address = $unit . ' , ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
} else {
$address = $unit . ' , ' . $form->Subscriber->building_name . ' , ' . $form->Subscriber->street . ' , ' . $form->Subscriber->postcode . ' , ' . $form->Subscriber->city . ' , ' . $form->Subscriber->state;
} }


} }

+ 1
- 1
resources/views/email/assign_wo.blade.php View File

@if(empty($customer->company_name)) @if(empty($customer->company_name))
<p>{{ $customer->unit_no }}, {{ $customer->building_name }}, {{ $customer->postcode }}, {{ $customer->city }}, {{ $customer->state }}</p> <p>{{ $customer->unit_no }}, {{ $customer->building_name }}, {{ $customer->postcode }}, {{ $customer->city }}, {{ $customer->state }}</p>
@else @else
<p>{{ $customer->unit_no }}, {{ $customer->company_name }}, {{ $customer->street }}, {{ $customer->postcode }}, {{ $customer->city }}, {{ $customer->state }}</p>
<p>{{ $customer->company_name }}, {{ $customer->unit_no }}, {{ $customer->street }}, {{ $customer->postcode }}, {{ $customer->city }}, {{ $customer->state }}</p>
@endif @endif
</td> </td>
</tr> </tr>

+ 1
- 1
resources/views/email/invoiceb.blade.php View File

<tr> <tr>
<td colspan="2" style="padding:10px 15px" width="50%" valign="middle" align="center" bgcolor="#eee"> <td colspan="2" style="padding:10px 15px" width="50%" valign="middle" align="center" bgcolor="#eee">
<b>Service Installation Address</b> <b>Service Installation Address</b>
<p>{{ $form->Subscriber->unit_no }}, {{ ucwords($form->Subscriber->street) }}, {{ $form->Subscriber->postcode }}, {{ $form->Subscriber->city }}, {{ $form->Subscriber->state }}</p>
<p>{{ $form->Subscriber->unit_no }}, {{ $form->Subscriber->building_name }} , {{ ucwords($form->Subscriber->street) }}, {{ $form->Subscriber->postcode }}, {{ $form->Subscriber->city }}, {{ $form->Subscriber->state }}</p>
</td> </td>
</tr> </tr>
</tbody> </tbody>

Loading…
Cancel
Save