| @@ 36-46 (lines=11) @@ | ||
| 33 | * |
|
| 34 | * @return $this |
|
| 35 | */ |
|
| 36 | public function stripedTable() |
|
| 37 | { |
|
| 38 | if (! str_contains($this->tableAttributes['class'], 'table-striped')) { |
|
| 39 | $this->tableAttributes['class'] = str_replace( |
|
| 40 | 'table-hover', '', |
|
| 41 | $this->tableAttributes['class'].' table-striped' |
|
| 42 | ); |
|
| 43 | } |
|
| 44 | ||
| 45 | return $this; |
|
| 46 | } |
|
| 47 | ||
| 48 | /** |
|
| 49 | * Change table style to hovered. |
|
| @@ 53-63 (lines=11) @@ | ||
| 50 | * |
|
| 51 | * @return $this |
|
| 52 | */ |
|
| 53 | public function hoveredTable() |
|
| 54 | { |
|
| 55 | if (! str_contains($this->tableAttributes['class'], 'table-hover')) { |
|
| 56 | $this->tableAttributes['class'] = str_replace( |
|
| 57 | 'table-striped', '', |
|
| 58 | $this->tableAttributes['class'].' table-hover' |
|
| 59 | ); |
|
| 60 | } |
|
| 61 | ||
| 62 | return $this; |
|
| 63 | } |
|
| 64 | } |
|
| 65 | ||