|  | 
| 1 |  | -@aware(['tableName']) | 
| 2 |  | -@if($this->isBootstrap) | 
|  | 1 | +@aware(['tableName','isBootstrap','isBootstrap4','isBootstrap5']) | 
|  | 2 | +@php($filterPopoverAttributes = $this->getFilterPopoverAttributes()) | 
|  | 3 | +@php($filterGenericData = $this->getFilterGenericData()) | 
|  | 4 | + | 
|  | 5 | +@if($isBootstrap) | 
| 3 | 6 |     <ul x-cloak {{ $attributes | 
| 4 |  | -            ->merge($this->getFilterPopoverAttributes()) | 
|  | 7 | +            ->merge($filterPopoverAttributes) | 
| 5 | 8 |             ->merge(['role' => 'menu']) | 
| 6 | 9 |             ->class([ | 
| 7 |  | -                'w-100' => $this->getFilterPopoverAttributes['default-width'] ?? true, | 
| 8 |  | -                'dropdown-menu mt-md-5' => $this->isBootstrap4, | 
| 9 |  | -                'dropdown-menu' => $this->isBootstrap5, | 
|  | 10 | +                'w-100' => $filterPopoverAttributes['default-width'] ?? true, | 
|  | 11 | +                'dropdown-menu mt-md-5' => $isBootstrap4, | 
|  | 12 | +                'dropdown-menu' => $isBootstrap5, | 
| 10 | 13 |             ]) }} x-bind:class="{ 'show': filterPopoverOpen }"> | 
| 11 | 14 |         @foreach ($this->getVisibleFilters() as $filter) | 
| 12 | 15 |             <div id="{{ $tableName }}-filter-{{ $filter->getKey() }}-wrapper" wire:key="{{ $tableName }}-filter-{{ $filter->getKey() }}-toolbar" class="p-2"> | 
| 13 |  | -                {{ $filter->setGenericDisplayData($this->getFilterGenericData())->render() }} | 
|  | 16 | +                {{ $filter->setGenericDisplayData($filterGenericData)->render() }} | 
| 14 | 17 |             </div> | 
| 15 | 18 |         @endforeach | 
| 16 | 19 | 
 | 
|  | 
| 23 | 26 |     <div x-cloak x-show="filterPopoverOpen" | 
| 24 | 27 |         {{  | 
| 25 | 28 |             $attributes | 
| 26 |  | -            ->merge($this->getFilterPopoverAttributes()) | 
|  | 29 | +            ->merge($filterPopoverAttributes) | 
| 27 | 30 |             ->merge([ | 
| 28 | 31 |                 'role' => 'menu', | 
| 29 | 32 |                 'aria-orientation' => 'vertical', | 
|  | 
| 36 | 39 |                 'x-transition:leave-end' => 'transform opacity-0 scale-95', | 
| 37 | 40 |             ]) | 
| 38 | 41 |             ->class([ | 
| 39 |  | -                'w-full md:w-56' => $this->getFilterPopoverAttributes()['default-width'] ?? true, | 
| 40 |  | -                'origin-top-left absolute left-0 mt-2 rounded-md shadow-lg ring-1 ring-opacity-5 divide-y focus:outline-none z-50' => $this->getFilterPopoverAttributes()['default-styling'] ?? true, | 
| 41 |  | -                'bg-white divide-gray-100 ring-black dark:bg-gray-700 dark:text-white dark:divide-gray-600' => $this->getFilterPopoverAttributes()['default-colors'] ?? true, | 
|  | 42 | +                'w-full md:w-56' => $filterPopoverAttributes['default-width'] ?? true, | 
|  | 43 | +                'origin-top-left absolute left-0 mt-2 rounded-md shadow-lg ring-1 ring-opacity-5 divide-y focus:outline-none z-50' => $filterPopoverAttributes['default-styling'] ?? true, | 
|  | 44 | +                'bg-white divide-gray-100 ring-black dark:bg-gray-700 dark:text-white dark:divide-gray-600' => $filterPopoverAttributes['default-colors'] ?? true, | 
| 42 | 45 |             ]) | 
| 43 | 46 |             ->except(['x-cloak', 'x-show', 'default','default-width', 'default-styling','default-colors'])  | 
| 44 | 47 |         }}> | 
| 45 | 48 | 
 | 
| 46 | 49 |         @foreach ($this->getVisibleFilters() as $filter) | 
| 47 | 50 |             <div class="py-1" role="none"> | 
| 48 | 51 |                 <div id="{{ $tableName }}-filter-{{ $filter->getKey() }}-wrapper" wire:key="{{ $tableName }}-filter-{{ $filter->getKey() }}-toolbar" class="block px-4 py-2 text-sm text-gray-700 space-y-1" role="menuitem"> | 
| 49 |  | -                    {{ $filter->setGenericDisplayData($this->getFilterGenericData())->render() }} | 
|  | 52 | +                    {{ $filter->setGenericDisplayData($filterGenericData)->render() }} | 
| 50 | 53 |                 </div> | 
| 51 | 54 |             </div> | 
| 52 | 55 |         @endforeach | 
|  | 
0 commit comments