Conditions | 5 |
Paths | 12 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | * |
||
23 | * @return \Illuminate\Http\JsonResponse|\Illuminate\View\View |
||
24 | */ |
||
25 | public function index(RoutesDataTable $routesDataTable) |
||
26 | { |
||
27 | $middlewareClosure = function ($middleware) { |
||
28 | return $middleware instanceof Closure ? 'Closure' : $middleware; |
||
29 | }; |
||
30 | |||
31 | return $routesDataTable->with([ |
||
32 | 'id' => 'adminarea-routes-index-table', |
||
33 | 'middlewareClosure' => $middlewareClosure, |
||
34 | 'phrase' => trans('cortex/console::common.routes'), |
||
35 | ])->render('cortex/foundation::adminarea.pages.datatable'); |
||
36 | } |
||
37 | } |
||
38 |