Skip to content

Commit eaadfb5

Browse files
committed
Merging
1 parent 894759d commit eaadfb5

File tree

1 file changed

+25
-33
lines changed

1 file changed

+25
-33
lines changed

resources/views/datatable.blade.php

Lines changed: 25 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,31 @@
2828
)
2929

3030
@if($this->shouldShowTools)
31-
<x-livewire-tables::tools>
32-
@if ($this->showSortPillsSection)
33-
<x-livewire-tables::tools.sorting-pills />
34-
</x-livewire-tables::tools>
31+
<x-livewire-tables::tools>
32+
@if ($this->showSortPillsSection)
33+
<x-livewire-tables::tools.sorting-pills />
34+
@endif
35+
@if($this->showFilterPillsSection)
36+
<x-livewire-tables::tools.filter-pills />
37+
@endif
38+
39+
@includeWhen(
40+
$this->hasConfigurableAreaFor('before-toolbar'),
41+
$this->getConfigurableAreaFor('before-toolbar'),
42+
$this->getParametersForConfigurableArea('before-toolbar')
43+
)
44+
45+
@if($this->shouldShowToolBar)
46+
<x-livewire-tables::tools.toolbar />
47+
@endif
48+
49+
@includeWhen(
50+
$this->hasConfigurableAreaFor('after-toolbar'),
51+
$this->getConfigurableAreaFor('after-toolbar'),
52+
$this->getParametersForConfigurableArea('after-toolbar')
53+
)
54+
55+
</x-livewire-tables::tools>
3556
@endif
3657

3758
@includeWhen(
@@ -40,35 +61,6 @@
4061
$this->getParametersForConfigurableArea('after-tools')
4162
)
4263

43-
<x-livewire-tables::table>
44-
45-
<x-slot name="thead">
46-
@if($this->getCurrentlyReorderingStatus)
47-
<x-livewire-tables::table.th.reorder x-cloak x-show="currentlyReorderingStatus" />
48-
@endif
49-
@if($this->showFilterPillsSection)
50-
<x-livewire-tables::tools.filter-pills />
51-
@endif
52-
53-
@includeWhen(
54-
$this->hasConfigurableAreaFor('before-toolbar'),
55-
$this->getConfigurableAreaFor('before-toolbar'),
56-
$this->getParametersForConfigurableArea('before-toolbar')
57-
)
58-
59-
@if($this->shouldShowToolBar)
60-
<x-livewire-tables::tools.toolbar />
61-
@endif
62-
63-
@includeWhen(
64-
$this->hasConfigurableAreaFor('after-toolbar'),
65-
$this->getConfigurableAreaFor('after-toolbar'),
66-
$this->getParametersForConfigurableArea('after-toolbar')
67-
)
68-
69-
</x-livewire-tables::tools>
70-
@endif
71-
7264
<x-livewire-tables::table>
7365

7466
<x-slot name="thead">

0 commit comments

Comments
 (0)