Browse Source

take 2000

ifah
Siti Hajar Ibrahim 5 years ago
parent
commit
96baf416b6
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



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(1000)->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();

Loading…
Cancel
Save