|
|
@@ -21,14 +21,14 @@ class PackageLogisticController extends Controller
|
|
|
$this->middleware('auth');
|
|
|
}
|
|
|
|
|
|
- public function index(OrderPackageFilters $filters)
|
|
|
+ public function index(Request $request,OrderPackageFilters $filters)
|
|
|
{
|
|
|
+ $paginateParams = $request->input();
|
|
|
$orderPackages = OrderPackage::query()->filter($filters)->with(['order' => function ($query) {
|
|
|
$query->with(['logistic', 'owner', 'packages.commodities']);
|
|
|
- }])->orderByDesc('id')->paginate(50);
|
|
|
+ }])->orderByDesc('id')->paginate($request->paginate ?? 50);
|
|
|
$logistics = Logistic::all();
|
|
|
$owners = Owner::all();
|
|
|
-
|
|
|
- return view('package.logistic.index', compact('orderPackages', 'logistics', 'owners'));
|
|
|
+ return view('package.logistic.index', compact('orderPackages', 'logistics', 'owners','paginateParams'));
|
|
|
}
|
|
|
}
|