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