1 | <?php namespace Arcanesoft\Tracker\ViewComposers\Dashboard; |
||
17 | class LatestThirtyDaysVisitsAndVisitorsComposer extends AbstractViewComposer |
||
18 | { |
||
19 | /* ------------------------------------------------------------------------------------------------ |
||
20 | | Constants |
||
21 | | ------------------------------------------------------------------------------------------------ |
||
22 | */ |
||
23 | const VIEW = 'tracker::foundation._composers.dashboard.latest-thirty-days-visits-and-visitors-chart'; |
||
24 | |||
25 | /* ------------------------------------------------------------------------------------------------ |
||
26 | | Properties |
||
27 | | ------------------------------------------------------------------------------------------------ |
||
28 | */ |
||
29 | /** |
||
30 | * Date format. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $format = 'M-d'; |
||
35 | |||
36 | /* ------------------------------------------------------------------------------------------------ |
||
37 | | Main Functions |
||
38 | | ------------------------------------------------------------------------------------------------ |
||
39 | */ |
||
40 | /** |
||
41 | * Compose the view. |
||
42 | * |
||
43 | * @param \Illuminate\Contracts\View\View $view |
||
44 | */ |
||
45 | public function compose(View $view) |
||
68 | |||
69 | /* ------------------------------------------------------------------------------------------------ |
||
70 | | Other Functions |
||
71 | | ------------------------------------------------------------------------------------------------ |
||
72 | */ |
||
73 | /** |
||
74 | * Prepare the visitors data. |
||
75 | * |
||
76 | * @param \Carbon\Carbon $start |
||
77 | * @param \Carbon\Carbon $end |
||
78 | * @param \Illuminate\Support\Collection $range |
||
79 | * |
||
80 | * @return \Illuminate\Support\Collection |
||
81 | */ |
||
82 | public function prepareVisitorsData(Carbon $start, Carbon $end, Collection $range) |
||
96 | |||
97 | /** |
||
98 | * Prepare the visits data. |
||
99 | * |
||
100 | * @param \Carbon\Carbon $start |
||
101 | * @param \Carbon\Carbon $end |
||
102 | * @param \Illuminate\Support\Collection $range |
||
103 | * |
||
104 | * @return \Illuminate\Support\Collection |
||
105 | */ |
||
106 | public function prepareVisitsData(Carbon $start, Carbon $end, $range) |
||
120 | } |
||
121 |