1 | <?php namespace Arcanesoft\Tracker\ViewComposers\Dashboard; |
||
14 | class AuthenticatedVisitorsRatioComposer extends AbstractViewComposer |
||
15 | { |
||
16 | /* ------------------------------------------------------------------------------------------------ |
||
17 | | Constants |
||
18 | | ------------------------------------------------------------------------------------------------ |
||
19 | */ |
||
20 | const VIEW = 'tracker::foundation._composers.dashboard.authenticated-visitors-ratio-chart'; |
||
21 | |||
22 | /* ------------------------------------------------------------------------------------------------ |
||
23 | | Main Functions |
||
24 | | ------------------------------------------------------------------------------------------------ |
||
25 | */ |
||
26 | /** |
||
27 | * Compose the view. |
||
28 | * |
||
29 | * @param \Illuminate\Contracts\View\View $view |
||
30 | */ |
||
31 | public function compose(View $view) |
||
50 | |||
51 | /* ------------------------------------------------------------------------------------------------ |
||
52 | | Other Functions |
||
53 | | ------------------------------------------------------------------------------------------------ |
||
54 | */ |
||
55 | /** |
||
56 | * Get the authenticated visitors. |
||
57 | * |
||
58 | * @param \Carbon\Carbon $start |
||
59 | * @param \Carbon\Carbon $end |
||
60 | * |
||
61 | * @return \Illuminate\Support\Collection |
||
62 | */ |
||
63 | private function getAuthenticatedVisitors($start, $end) |
||
73 | |||
74 | /** |
||
75 | * Get the guest visitors. |
||
76 | * |
||
77 | * @param \Carbon\Carbon $start |
||
78 | * @param \Carbon\Carbon $end |
||
79 | * |
||
80 | * @return \Illuminate\Support\Collection |
||
81 | */ |
||
82 | private function getGuestVisitors($start, $end) |
||
92 | } |
||
93 |