|
|
|
@ -22,9 +22,8 @@ class DashController extends Controller |
|
|
|
|
|
|
|
|
|
$users = User::orderBy('updated_at', 'desc') |
|
|
|
|
->withCount(['tables']) |
|
|
|
|
->paginate(15, ['id', 'title', 'name', 'tables_count'], 'pageu'); |
|
|
|
|
->paginate(10, ['id', 'title', 'name', 'tables_count'], 'pageu'); |
|
|
|
|
|
|
|
|
|
// TODO visit counting |
|
|
|
|
$tables = Table::forList() |
|
|
|
|
->orderBy('visits', 'desc') |
|
|
|
|
->paginate(10, ['*'], 'paget'); |
|
|
|
|