revert wip starttime
This commit is contained in:
Hermann Telser committed 2026-02-25 14:38:44 +01:00
1 parent e48365cd9b
commit 3e3330bf80
7 files changed
+47 -125

No files matched your search

@@ -1,47 +0,0 @@
<?php
namespace App\Filament\Tables\Columns;
use Filament\Tables\Columns\Column;
use Illuminate\Support\Carbon;
class ColumnStarttime extends Column
{
protected string $view = 'filament.tables.columns.column-starttime';
protected $starttime;
protected $tx;
protected $cl;
protected $color;
public function setTime($record)
{
$this->tx = Carbon::createFromTimestamp(strtotime($record->starttime));
if ($record->event_bookmaker?->starttime) {
$this->cl = Carbon::createFromTimestamp(strtotime($record->event_bookmaker?->starttime));
$this->starttime = Carbon::createFromTimestamp(strtotime($record->event_bookmaker?->starttime));
if ($this->tx == $this->cl) {
$this->color = 'text-green-600';
} else {
$this->color = 'text-orange-600';
}
} else {
$this->color = 'text-blue-600';
$this->starttime = Carbon::createFromTimestamp(strtotime($record->starttime));
}
}
public function getColor()
{
return $this->color;
}
public function getStarttime()
{
return $this->starttime;
}
}