@@ 20-36 (lines=17) @@ | ||
17 | use Gitamin\Models\Project; |
|
18 | use Illuminate\Contracts\View\View; |
|
19 | ||
20 | class AdminComposer |
|
21 | { |
|
22 | /** |
|
23 | * Bind data to the view. |
|
24 | * |
|
25 | * @param \Illuminate\Contracts\View\View $view |
|
26 | */ |
|
27 | public function compose(View $view) |
|
28 | { |
|
29 | $view->withIssueCount(Issue::all()->count()); |
|
30 | $view->withProjectCount(Project::all()->count()); |
|
31 | $view->withGroupCount(Group::IsGroup()->Mine()->count()); |
|
32 | $view->withMomentCount(Moment::all()->count()); |
|
33 | } |
|
34 | } |
|
35 |
@@ 20-36 (lines=17) @@ | ||
17 | use Gitamin\Models\Project; |
|
18 | use Illuminate\Contracts\View\View; |
|
19 | ||
20 | class DashboardComposer |
|
21 | { |
|
22 | /** |
|
23 | * Bind data to the view. |
|
24 | * |
|
25 | * @param \Illuminate\Contracts\View\View $view |
|
26 | */ |
|
27 | public function compose(View $view) |
|
28 | { |
|
29 | $view->withIssueCount(Issue::all()->count()); |
|
30 | $view->withProjectCount(Project::all()->count()); |
|
31 | $view->withGroupCount(Group::IsGroup()->Mine()->count()); |
|
32 | $view->withMomentCount(Moment::all()->count()); |
|
33 | } |
|
34 | } |
|
35 |