Przeglądaj źródła

see untagged form

ifah
Siti Hajar Ibrahim 5 lat temu
rodzic
commit
849b4547f1
1 zmienionych plików z 4 dodań i 7 usunięć
  1. 4
    7
      app/Http/Controllers/Controller.php

+ 4
- 7
app/Http/Controllers/Controller.php Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz