Explorar el Código

see untagged form

ifah
Siti Hajar Ibrahim hace 6 años
padre
commit
4507d33213
Se han modificado 1 ficheros con 7 adiciones y 6 borrados
  1. 7
    6
      app/Http/Controllers/Controller.php

+ 7
- 6
app/Http/Controllers/Controller.php Ver fichero

@@ -17,15 +17,16 @@ class Controller extends BaseController
{

$result = array();
$work_order = WorkOrder::all();
$untaggedform = Form::where('customer_category', null)->get();

foreach ($work_order as $key => $a) {
$untaggedform = Form::where('_id',$a->_id)->where('customer_category',null)->get();
dd($untaggedform);
foreach ($untaggedform as $key => $a) {
$work_order = WorkOrder::where('_id', $a->_id)->get();
if(!emptyArray($work_order)){
array_push($result, array(
'_id' => $untaggedform->_id,
'wo' => $work_order->wo,
));
}
}

return json_encode($result);

Cargando…
Cancelar
Guardar