|
|
@@ -17,17 +17,14 @@ class Controller extends BaseController |
|
|
|
{ |
|
|
|
|
|
|
|
$result = array(); |
|
|
|
$untaggedform = Form::where('customer_category', null)->get(); |
|
|
|
$work_order = WorkOrder::all(); |
|
|
|
|
|
|
|
foreach ($untaggedform as $key => $a) { |
|
|
|
$work_order = WorkOrder::where('_id', $a->_id)->get(); |
|
|
|
foreach ($work_order as $key => $a) { |
|
|
|
$untaggedform = Form::where('_id',$a->_id)->where('customer_category',null)->get(); |
|
|
|
|
|
|
|
if(!empty($work_order->wo)){ |
|
|
|
dd($work_order); |
|
|
|
array_push($result, array( |
|
|
|
'wo' => $work_order->wo, |
|
|
|
'_id' => $untaggedform->_id, |
|
|
|
)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return json_encode($result); |