Browse Source

take 1000

ifah
root 5 years ago
parent
commit
01144cf1a8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/Http/Controllers/CustomerService/CustomerController.php

+ 1
- 1
app/Http/Controllers/CustomerService/CustomerController.php View File

$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(500)->get();
$form = Form::with('Subscriber','PackageDetail','WorkOrder')->orderBy('created_at', 'desc')->take(1000)->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'){

Loading…
Cancel
Save