Pārlūkot izejas kodu

see untagged form

ifah
Siti Hajar Ibrahim pirms 5 gadiem
vecāks
revīzija
4507d33213
1 mainītis faili ar 7 papildinājumiem un 6 dzēšanām
  1. 7
    6
      app/Http/Controllers/Controller.php

+ 7
- 6
app/Http/Controllers/Controller.php Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt