| $nested_data = array(); | $nested_data = array(); | ||||
| foreach ($dealer_claimAll as $c){ | foreach ($dealer_claimAll as $c){ | ||||
| $customer = Subscriber::with('Form')->where('_id', $c->customer_id)->first(); | $customer = Subscriber::with('Form')->where('_id', $c->customer_id)->first(); | ||||
| info($c->customer_id); | |||||
| $address = ''; | $address = ''; | ||||
| if($customer->Form->type_application == 'R'){ | if($customer->Form->type_application == 'R'){ | ||||
| if($customer->street != ''){ | if($customer->street != ''){ | ||||
| foreach ($dataClaim as $c){ | foreach ($dataClaim as $c){ | ||||
| $address = ''; $name = ''; | $address = ''; $name = ''; | ||||
| info($c->Subscriber->_id); | |||||
| if($c->Subscriber->Form->type_application == 'R'){ | if($c->Subscriber->Form->type_application == 'R'){ | ||||
| if($c->Subscriber->street != ''){ | if($c->Subscriber->street != ''){ |