1 | <?php namespace Arcanesoft\Tracker\ViewComposers\Dashboard; |
||
16 | class OperatingSystemRationComposer extends AbstractViewComposer |
||
17 | { |
||
18 | /* ----------------------------------------------------------------- |
||
19 | | Constants |
||
20 | | ----------------------------------------------------------------- |
||
21 | */ |
||
22 | |||
23 | const VIEW = 'tracker::admin._composers.dashboard.os-ratio-chart'; |
||
24 | |||
25 | /* ----------------------------------------------------------------- |
||
26 | | Main Methods |
||
27 | | ----------------------------------------------------------------- |
||
28 | */ |
||
29 | |||
30 | /** |
||
31 | * Compose the view. |
||
32 | * |
||
33 | * @param \Illuminate\Contracts\View\View $view |
||
34 | */ |
||
35 | public function compose(View $view) |
||
46 | |||
47 | /* ----------------------------------------------------------------- |
||
48 | | Other Methods |
||
49 | | ----------------------------------------------------------------- |
||
50 | */ |
||
51 | |||
52 | /** |
||
53 | * Get the operating systems count from sessions. |
||
54 | * |
||
55 | * @param \Carbon\Carbon $start |
||
56 | * @param \Carbon\Carbon $end |
||
57 | * |
||
58 | * @return \Illuminate\Support\Collection |
||
59 | */ |
||
60 | private function getOperatingSystemsCountFromSessions(Carbon $start, Carbon $end) |
||
78 | } |
||
79 |