|
|
|
@ -33,7 +33,7 @@ class DocumentController extends Controller
|
|
|
|
|
if ($request->has('sortBy') && $request->has('sortRule')) {
|
|
|
|
|
$query->orderBy($request->sortBy, $request->sortRule);
|
|
|
|
|
} else {
|
|
|
|
|
$query->orderBy('created_at', 'desc');
|
|
|
|
|
$query->orderBy('updated_at', 'desc');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($request->q != null || $request->q != '') {
|
|
|
|
@ -260,7 +260,8 @@ class DocumentController extends Controller
|
|
|
|
|
return $this->print($collections);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private function print($collections) {
|
|
|
|
|
private function print($collections)
|
|
|
|
|
{
|
|
|
|
|
return view('exports.documents', ['collections' => $collections->toArray()]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|