32 lines
609 B
PHP
32 lines
609 B
PHP
<?php
|
|
|
|
namespace App\Filament\Tables\Columns;
|
|
|
|
use Filament\Tables\Columns\Column;
|
|
|
|
class BookmakerIcon extends Column
|
|
{
|
|
protected string $view = 'filament.tables.columns.bookmaker-icon';
|
|
|
|
protected ?string $size = null;
|
|
|
|
public function size(?string $size): static
|
|
{
|
|
$this->size = $size;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getSize(): ?string
|
|
{
|
|
switch ($this->size) {
|
|
case 'xl':
|
|
return 'h-6 w-30';
|
|
case 'lg':
|
|
return 'h-5 w-24';
|
|
default:
|
|
return 'h-4 w-18';
|
|
}
|
|
}
|
|
}
|