public function save_order_list(Request $request, Order $order)
 {
     $data = $request->all();
     $order_id = $data[0]['order_id'];
     $status = true;
     foreach ($data as $val) {
         $val['available'] = $val['available'] ? 1 : 0;
         if (!$val['order_id']) {
             $val['order_id'] = $order_id;
             $status = $status && Order::create($val);
         } else {
             $update_data['price'] = $val['price'];
             $update_data['description'] = $val['description'];
             $update_data['available'] = $val['available'];
             $status = $status && $order->update_order_by_id($val['id'], $update_data);
         }
     }
     return response()->json(['status' => $status]);
 }