|
1 | 1 | @aware(['component', 'tableName','isTailwind','isBootstrap']) |
2 | 2 | @props([]) |
| 3 | +@php($toolBarAttributes = $this->getToolBarAttributesBag()) |
3 | 4 |
|
4 | | -<div @class([ |
5 | | - 'd-md-flex justify-content-between mb-3' => $this->isBootstrap, |
6 | | - 'md:flex md:justify-between mb-4 px-4 md:p-0' => $this->isTailwind, |
7 | | - ]) |
| 5 | +<div |
| 6 | + {{ |
| 7 | + $toolBarAttributes->merge() |
| 8 | + ->class(['md:flex md:justify-between mb-4 px-4 md:p-0' => $isTailwind && ($toolBarAttributes['default-styling'] ?? true)]) |
| 9 | + ->class(['d-md-flex justify-content-between mb-3' => $isBootstrap && ($toolBarAttributes['default-styling'] ?? true)]) |
| 10 | + ->except(['default','default-styling','default-colors']) |
| 11 | + }} |
8 | 12 | > |
9 | 13 | <div @class([ |
10 | 14 | 'd-md-flex' => $this->isBootstrap, |
|
52 | 56 | 'md:flex md:items-center space-y-4 md:space-y-0 md:space-x-2' => $this->isTailwind, |
53 | 57 | ]) |
54 | 58 | > |
55 | | - @if ($this->hasConfigurableAreaFor('toolbar-right-start')) |
56 | | - @include($this->getConfigurableAreaFor('toolbar-right-start'), $this->getParametersForConfigurableArea('toolbar-right-start')) |
57 | | - @endif |
| 59 | + @includeWhen($this->hasConfigurableAreaFor('toolbar-right-start'), $this->getConfigurableAreaFor('toolbar-right-start'), $this->getParametersForConfigurableArea('toolbar-right-start')) |
58 | 60 |
|
59 | 61 | @if($this->hasActions && $this->showActionsInToolbar && $this->getActionsPosition == 'right') |
60 | 62 | <x-livewire-tables::includes.actions/> |
|
72 | 74 | <x-livewire-tables::tools.toolbar.items.pagination-dropdown /> |
73 | 75 | @endif |
74 | 76 |
|
75 | | - @if ($this->hasConfigurableAreaFor('toolbar-right-end')) |
76 | | - @include($this->getConfigurableAreaFor('toolbar-right-end'), $this->getParametersForConfigurableArea('toolbar-right-end')) |
77 | | - @endif |
| 77 | + @includeWhen($this->hasConfigurableAreaFor('toolbar-right-end'), $this->getConfigurableAreaFor('toolbar-right-end'), $this->getParametersForConfigurableArea('toolbar-right-end')) |
78 | 78 | </div> |
79 | 79 | </div> |
80 | 80 | @if ( |
|
0 commit comments