add table count to user list, padding to help bubble, better date formatting and tooltip

This commit is contained in:
2018-07-29 13:31:05 +02:00
parent 550cf30654
commit ffc5a42252
9 changed files with 52 additions and 16 deletions
+6 -1
View File
@@ -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'
));
}
/**