Table::macro('condensed', function (string $class = 'fi-table-condensed'): Table {
/** @var Table $this */
$existing = $this->getExtraAttributes()['class'] ?? '';
$this->extraAttributes([
'class' => trim("{$existing} {$class}"),
]);
return $this;
});
Table::macro('condensed', function (string $class = 'fi-table-condensed'): Table {
/** @var Table $this */
$existing = $this->getExtraAttributes()['class'] ?? '';
$this->extraAttributes([
'class' => trim("{$existing} {$class}"),
]);
return $this;
});