| foreach ($data12_1 as $key => $d) { | foreach ($data12_1 as $key => $d) { | ||||
| $customer = Subscriber::with('Form')->where('_id', $d['customer_id'])->first(); | $customer = Subscriber::with('Form')->where('_id', $d['customer_id'])->first(); | ||||
| $address = ''; $$name = ''; | |||||
| $address = ''; $name = ''; | |||||
| if($customer->Form->type_application == 'R'){ | if($customer->Form->type_application == 'R'){ | ||||
| if($customer->street != ''){ | if($customer->street != ''){ | ||||
| $address = $customer->unit_no. ' , '.$customer->building_name. ' , '.$customer->street. ' , '.$customer->postcode. ' , '.$customer->city. ' , '.$customer->state; | $address = $customer->unit_no. ' , '.$customer->building_name. ' , '.$customer->street. ' , '.$customer->postcode. ' , '.$customer->city. ' , '.$customer->state; |