Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- monitoring
- // $data_new = array_reduce($data_monitoring, function($accumulator, $item){
- // $index = $item->customer_name;
- // if (!isset($accumulator[$index])) {
- // $accumulator[$index] = [
- // 'product' => [
- // 'kode_part' => $item->kode_part,
- // 'no_part' => $item->no_part,
- // 'product_name' => $item->product_name,
- // 'qty' => $item->qty,
- // 'sub_comp' => 'sub_comp',
- // ],
- // ];
- // }
- // return $accumulator;
- // }, []);
- // dd($data_monitoring);
- // dd($new_data_monitoring);
Add Comment
Please, Sign In to add comment