1 | <?php namespace Arcanesoft\Tracker\ViewComposers\Dashboard; |
||
13 | class AuthenticatedVisitorsRatioComposer extends AbstractViewComposer |
||
14 | { |
||
15 | /* ----------------------------------------------------------------- |
||
16 | | Constants |
||
17 | | ----------------------------------------------------------------- |
||
18 | */ |
||
19 | |||
20 | const VIEW = 'tracker::admin._composers.dashboard.authenticated-visitors-ratio-chart'; |
||
21 | |||
22 | /* ----------------------------------------------------------------- |
||
23 | | Main Methods |
||
24 | | ----------------------------------------------------------------- |
||
25 | */ |
||
26 | |||
27 | /** |
||
28 | * Compose the view. |
||
29 | * |
||
30 | * @param \Illuminate\Contracts\View\View $view |
||
31 | */ |
||
32 | public function compose(View $view) |
||
45 | |||
46 | /* ----------------------------------------------------------------- |
||
47 | | Other Methods |
||
48 | | ----------------------------------------------------------------- |
||
49 | */ |
||
50 | |||
51 | /** |
||
52 | * Get the authenticated visitors ratio. |
||
53 | * |
||
54 | * @param \Illuminate\Support\Collection $visitors |
||
55 | * |
||
56 | * @return \Illuminate\Support\Collection |
||
57 | */ |
||
58 | private function getAuthenticatedVisitorsRatio($visitors) |
||
76 | } |
||
77 |