| $nested_data = array(); | $nested_data = array(); | ||||
| if($type == 'null' && $building == 'null' && $dealer == 'null'){ | if($type == 'null' && $building == 'null' && $dealer == 'null'){ | ||||
| $form = Form::with('Subscriber','PackageDetail','WorkOrder')->orderBy('created_at', 'desc')->take(2000)->get(); | |||||
| $form = Form::with('Subscriber','PackageDetail','WorkOrder')->orderBy('created_at', 'desc')->take(2000)->get(); | |||||
| }else if($type != 'null' && $building == 'null' && $dealer == 'null'){ | }else if($type != 'null' && $building == 'null' && $dealer == 'null'){ | ||||
| $form = Form::with('Subscriber','PackageDetail','WorkOrder')->where('type_service',$type)->orderBy('created_at', 'desc')->get(); | $form = Form::with('Subscriber','PackageDetail','WorkOrder')->where('type_service',$type)->orderBy('created_at', 'desc')->get(); | ||||
| }else if($type != 'null' && $building != 'null' && $dealer == 'null'){ | }else if($type != 'null' && $building != 'null' && $dealer == 'null'){ |