Ignore:
Timestamp:
02/24/21 21:58:42 (4 years ago)
Author:
Berat Kjufliju <kufliju@…>
Branches:
master
Children:
ff9da8b
Parents:
0c07a90
Message:

ADD technoweek offer, companies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/Http/Controllers/Dashboard/IndexController.php

    r0c07a90 rf457265  
    3636            "allPosts" => Post::count(),
    3737            "currentUserPosts" => Post::where("user_id", auth()->user()->id)->count(),
    38             "users" => User::count(),
     38            "users" => !is_null(auth()->user()->company) ? auth()->user()->company->users->count() : User::count(),
    3939            "total_comments" => Comment::count(),
    4040            "comments" => auth()->user()->comments->count()
Note: See TracChangeset for help on using the changeset viewer.