Zhouzhendong 5 роки тому
батько
коміт
2b4b800813

+ 2 - 1
app/Http/Controllers/CustomerBaseController.php

@@ -30,7 +30,8 @@ class CustomerBaseController extends Controller
         }]);
         $owners = app("OwnerService")->getIntersectPermitting(['id','name','customer_id']);
         $tags = CustomerTag::query()->orderByDesc('count')->get(["id","name"]);
-        return response()->view('customer.customer.index',compact("customers","owners","tags"));
+        $params = $request->input();
+        return response()->view('customer.customer.index',compact("customers","owners","tags","params"));
     }
 
     /**

+ 1 - 0
resources/views/customer/customer/index.blade.php

@@ -145,6 +145,7 @@
                     </td>
                 </tr>
             </table>
+            {{$customers->appends($params)->links()}}
         </div>
     </div>
 @stop