icons all to phosphor

This commit is contained in:
salam committed 2026-01-11 18:22:20 +01:00
1 parent 1c766f0ee6
commit b31f3ec005
6 files changed
+59 -35

No files matched your search

@@ -7,4 +7,25 @@ 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-20';
default:
return 'h-4 w-16';
}
}
}
-9
View File
@@ -2,7 +2,6 @@
namespace App\Filament\Tables\Columns;
use App\Models\BookmakerSport;
use Filament\Tables\Columns\Column;
class ColumnMl extends Column
@@ -33,14 +32,6 @@ class ColumnMl extends Column
return $this->bookmakers;
}
public function getActivBookmaker()
{
return BookmakerSport::with('bookmaker')
->whereNotIn('bookmaker_id', $this->having)
->where('sport_id', auth()->user()->sport_id)
->get();
}
public function loadData($record)
{
$this->has_data = count($record->odds_2ways) ? true : false;