1 | <?php |
||
16 | class StatisticsController extends AuthorizedController |
||
17 | { |
||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | protected $resource = 'list-statistics'; |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | protected $resourceMethodsWithoutModels = [ |
||
27 | 'agents', |
||
28 | 'geoips', |
||
29 | 'devices', |
||
30 | 'paths', |
||
31 | 'platforms', |
||
32 | 'requests', |
||
33 | 'routes', |
||
34 | ]; |
||
35 | |||
36 | /** |
||
37 | * Show statistics index. |
||
38 | * |
||
39 | * @return \Illuminate\View\View |
||
40 | */ |
||
41 | public function index() |
||
45 | |||
46 | /** |
||
47 | * List all agents. |
||
48 | * |
||
49 | * @param \Cortex\Statistics\DataTables\Adminarea\AgentsDataTable $agentsDataTable |
||
50 | * |
||
51 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
52 | */ |
||
53 | public function agents(AgentsDataTable $agentsDataTable) |
||
59 | |||
60 | /** |
||
61 | * List all geoips. |
||
62 | * |
||
63 | * @param \Cortex\Statistics\DataTables\Adminarea\GeoipsDataTable $geoipsDataTable |
||
64 | * |
||
65 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
66 | */ |
||
67 | public function geoips(GeoipsDataTable $geoipsDataTable) |
||
73 | |||
74 | /** |
||
75 | * List all devices. |
||
76 | * |
||
77 | * @param \Cortex\Statistics\DataTables\Adminarea\DevicesDataTable $devicesDataTable |
||
78 | * |
||
79 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
80 | */ |
||
81 | public function devices(DevicesDataTable $devicesDataTable) |
||
87 | |||
88 | /** |
||
89 | * List all paths. |
||
90 | * |
||
91 | * @param \Cortex\Statistics\DataTables\Adminarea\PathsDataTable $pathsDataTable |
||
92 | * |
||
93 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
94 | */ |
||
95 | public function paths(PathsDataTable $pathsDataTable) |
||
101 | |||
102 | /** |
||
103 | * List all platforms. |
||
104 | * |
||
105 | * @param \Cortex\Statistics\DataTables\Adminarea\PlatformsDataTable $platformsDataTable |
||
106 | * |
||
107 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
108 | */ |
||
109 | public function platforms(PlatformsDataTable $platformsDataTable) |
||
115 | |||
116 | /** |
||
117 | * List all requests. |
||
118 | * |
||
119 | * @param \Cortex\Statistics\DataTables\Adminarea\RequestsDataTable $requestsDataTable |
||
120 | * |
||
121 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
122 | */ |
||
123 | public function requests(RequestsDataTable $requestsDataTable) |
||
129 | |||
130 | /** |
||
131 | * List all routes. |
||
132 | * |
||
133 | * @param \Cortex\Statistics\DataTables\Adminarea\RoutesDataTable $routesDataTable |
||
134 | * |
||
135 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
136 | */ |
||
137 | public function routes(RoutesDataTable $routesDataTable) |
||
143 | } |
||
144 |