add table count to user list, padding to help bubble, better date formatting and tooltip
This commit is contained in:
@@ -21,7 +21,8 @@ class DashController extends Controller
|
||||
}
|
||||
|
||||
$users = User::orderBy('updated_at', 'desc')
|
||||
->paginate(15, ['id', 'title', 'name'], 'pageu');
|
||||
->withCount(['tables'])
|
||||
->paginate(15, ['id', 'title', 'name', 'tables_count'], 'pageu');
|
||||
|
||||
// TODO visit counting
|
||||
$tables = Table::forList()
|
||||
|
||||
@@ -19,8 +19,13 @@ class ProfileController extends Controller
|
||||
public function view(User $user)
|
||||
{
|
||||
$tables = $user->tables()->forList()->orderByDesc('updated_at')->paginate(10);
|
||||
$tables_count = $user->tables()->count();
|
||||
|
||||
return view('profile.view')->with(compact('tables', 'user'));
|
||||
return view('profile.view')->with(compact(
|
||||
'tables',
|
||||
'user',
|
||||
'tables_count'
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user