|  | 
| 1 |  | -@aware(['component', 'tableName','isTailwind','isBootstrap','isBootstrap4','isBootstrap5']) | 
| 2 |  | -<div @class([ | 
| 3 |  | -        'ml-0 ml-md-2' => $this->isBootstrap4, | 
| 4 |  | -        'ms-0 ms-md-2' => $this->isBootstrap5, | 
| 5 |  | -    ]) | 
|  | 1 | +@aware(['tableName']) | 
|  | 2 | +<div  | 
|  | 3 | +    {{  | 
|  | 4 | +        $attributes->merge($this->getPerPageWrapperAttributes()) | 
|  | 5 | +        ->class([ | 
|  | 6 | +            'ml-0 ml-md-2' => $this->isBootstrap4 && ($this->getPerPageWrapperAttributes()['default-styling'] ?? true), | 
|  | 7 | +            'ms-0 ms-md-2' => $this->isBootstrap5 && ($this->getPerPageWrapperAttributes()['default-styling'] ?? true), | 
|  | 8 | +        ]) | 
|  | 9 | +        ->except(['default','default-styling','default-colors'])  | 
|  | 10 | +    }} | 
| 6 | 11 | > | 
| 7 | 12 |     <select wire:model.live="perPage" id="{{ $tableName }}-perPage" | 
| 8 | 13 |         {{  | 
| 9 |  | -            $attributes->merge($component->getPerPageFieldAttributes()) | 
|  | 14 | +            $attributes->merge($this->getPerPageFieldAttributes()) | 
| 10 | 15 |             ->class([ | 
| 11 |  | -                'form-control' => $this->isBootstrap4 && $component->getPerPageFieldAttributes()['default-styling'], | 
| 12 |  | -                'form-select' => $this->isBootstrap5 && $component->getPerPageFieldAttributes()['default-styling'], | 
| 13 |  | -                'block w-full rounded-md shadow-sm transition duration-150 ease-in-out sm:text-sm sm:leading-5 focus:ring focus:ring-opacity-50' => $this->isTailwind && $component->getPerPageFieldAttributes()['default-styling'], | 
| 14 |  | -                'border-gray-300 focus:border-indigo-300 focus:ring-indigo-200 dark:bg-gray-700 dark:text-white dark:border-gray-600' => $this->isTailwind && $component->getPerPageFieldAttributes()['default-colors'], | 
|  | 16 | +                'form-control' => $this->isBootstrap4 && ($this->getPerPageFieldAttributes()['default-styling'] ?? true), | 
|  | 17 | +                'form-select' => $this->isBootstrap5 && ($this->getPerPageFieldAttributes()['default-styling'] ?? true), | 
|  | 18 | +                'block w-full rounded-md shadow-sm transition duration-150 ease-in-out sm:text-sm sm:leading-5 focus:ring focus:ring-opacity-50' => $this->isTailwind && (($this->getPerPageFieldAttributes()['default'] ?? false) || ($this->getPerPageFieldAttributes()['default-styling'] ?? true)), | 
|  | 19 | +                'border-gray-300 focus:border-indigo-300 focus:ring-indigo-200 dark:bg-gray-700 dark:text-white dark:border-gray-600' => $this->isTailwind && (($this->getPerPageFieldAttributes()['default'] ?? false) || ($this->getPerPageFieldAttributes()['default-colors'] ?? true)), | 
| 15 | 20 |             ]) | 
| 16 | 21 |             ->except(['default','default-styling','default-colors'])  | 
| 17 | 22 |         }} | 
| 18 | 23 |     > | 
| 19 |  | -        @foreach ($component->getPerPageAccepted() as $item) | 
|  | 24 | +        @foreach ($this->getPerPageAccepted() as $item) | 
| 20 | 25 |             <option | 
| 21 | 26 |                 value="{{ $item }}" | 
| 22 | 27 |                 wire:key="{{ $tableName }}-per-page-{{ $item }}" | 
|  | 
0 commit comments