add each cawangan nama cawangan
This commit is contained in:
@@ -719,9 +719,9 @@ class CustomerController extends Controller
|
|||||||
->select('kodcaw')
|
->select('kodcaw')
|
||||||
->where('nokp', '=', $ic)
|
->where('nokp', '=', $ic)
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
if($customer)
|
if($customer)
|
||||||
array_push($custcawangan, $customer);
|
array_push($custcawangan,['kodcaw' => $customer['kodcaw'], 'namacawangan' => $cawangan['details_caw']]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return response()->json($custcawangan);
|
return response()->json($custcawangan);
|
||||||
|
|||||||
Reference in New Issue
Block a user