Ver código fonte

see untagged form

ifah
Siti Hajar Ibrahim 4 anos atrás
pai
commit
849b4547f1
1 arquivos alterados com 4 adições e 7 exclusões
  1. 4
    7
      app/Http/Controllers/Controller.php

+ 4
- 7
app/Http/Controllers/Controller.php Ver arquivo

@@ -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);

Carregando…
Cancelar
Salvar