@@ -8,10 +8,10 @@ |
||
8 | 8 | <?php $active = null; ?> |
9 | 9 | @foreach ($items as $label => $_tmp) |
10 | 10 | <?php |
11 | - if (is_null($active)) { |
|
12 | - $active = $label; |
|
13 | - } |
|
14 | - ?> |
|
11 | + if (is_null($active)) { |
|
12 | + $active = $label; |
|
13 | + } |
|
14 | + ?> |
|
15 | 15 | <li role="presentation" {!! ($active == $label) ? 'class="active"' : '' !!}><a href="#{{ md5($label) }}" aria-controls="{{ md5($label) }}" role="tab" data-toggle="tab">{{ $label }}</a></li> |
16 | 16 | @endforeach |
17 | 17 | </ul> |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | /** |
15 | 15 | * Class DisplayTable. |
16 | - |
|
17 | 16 | * @method Columns getColumns() |
18 | 17 | * @method $this setColumns(ColumnInterface $column, ... $columns) |
19 | 18 | * |
@@ -89,9 +89,9 @@ |
||
89 | 89 | parent::initialize(); |
90 | 90 | |
91 | 91 | $this->getRepository() |
92 | - ->setParentField($this->getParentField()) |
|
93 | - ->setOrderField($this->getOrderField()) |
|
94 | - ->setRootParentId($this->getRootParentId()); |
|
92 | + ->setParentField($this->getParentField()) |
|
93 | + ->setOrderField($this->getOrderField()) |
|
94 | + ->setRootParentId($this->getRootParentId()); |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | /** |
@@ -73,8 +73,8 @@ |
||
73 | 73 | protected function updateOrderFieldOnDelete() |
74 | 74 | { |
75 | 75 | static::orderModel() |
76 | - ->where($this->getOrderField(), '>', $this->getOrderValue()) |
|
77 | - ->decrement($this->getOrderField()); |
|
76 | + ->where($this->getOrderField(), '>', $this->getOrderValue()) |
|
77 | + ->decrement($this->getOrderField()); |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
@@ -4,16 +4,13 @@ |
||
4 | 4 | |
5 | 5 | use Request; |
6 | 6 | use Illuminate\Routing\Router; |
7 | -use Illuminate\Http\JsonResponse; |
|
8 | 7 | use Illuminate\Support\Collection; |
9 | 8 | use Illuminate\Database\Eloquent\Builder; |
10 | 9 | use SleepingOwl\Admin\Display\Column\Link; |
11 | 10 | use SleepingOwl\Admin\Display\Column\Text; |
12 | 11 | use SleepingOwl\Admin\Display\Column\Email; |
13 | 12 | use SleepingOwl\Admin\Display\Column\Control; |
14 | -use Illuminate\Contracts\Foundation\Application; |
|
15 | 13 | use SleepingOwl\Admin\Contracts\WithRoutesInterface; |
16 | -use SleepingOwl\Admin\Contracts\ModelConfigurationInterface; |
|
17 | 14 | |
18 | 15 | class DisplayDatatablesAsync extends DisplayDatatables implements WithRoutesInterface |
19 | 16 | { |
@@ -4,13 +4,10 @@ |
||
4 | 4 | |
5 | 5 | use Closure; |
6 | 6 | use Validator; |
7 | -use Illuminate\Http\Request; |
|
8 | 7 | use Illuminate\Routing\Router; |
9 | -use Illuminate\Http\JsonResponse; |
|
10 | 8 | use Illuminate\Http\UploadedFile; |
11 | 9 | use KodiComponents\Support\Upload; |
12 | 10 | use SleepingOwl\Admin\Contracts\WithRoutesInterface; |
13 | -use SleepingOwl\Admin\Contracts\ModelConfigurationInterface; |
|
14 | 11 | |
15 | 12 | class File extends NamedFormElement implements WithRoutesInterface |
16 | 13 | { |