Sfoglia il codice sorgente

see untagged form

ifah
Siti Hajar Ibrahim 4 anni fa
parent
commit
849b4547f1
1 ha cambiato i file con 4 aggiunte e 7 eliminazioni
  1. 4
    7
      app/Http/Controllers/Controller.php

+ 4
- 7
app/Http/Controllers/Controller.php Vedi File

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

Loading…
Annulla
Salva