fix update player

This commit is contained in:
salam committed 2026-09-11 10:36:16 +02:00
1 parent e3f1e8a8d9
commit f028a8b2a8
16 files changed
+605 -224

No files matched your search

+4 -4
View File
@@ -3,7 +3,7 @@
namespace App\Filament\Widgets;
use App\Filament\Widgets\Data\HelperStatisticType;
use App\Filament\Widgets\Data\LoadPlayer;
use App\Filament\Widgets\Data\LoadPlayerWidgets;
use Filament\Support\RawJs;
use Filament\Widgets\ChartWidget;
use Illuminate\Support\HtmlString;
@@ -38,16 +38,16 @@ class ChartPlayer extends ChartWidget
c0.211,0.1782,0.5264,0.1516,0.7046-0.0593C13.0037,6.5523,13.0018,6.2761,12.84,6.09z"></path>
</g>
</svg>
' . $this->player . '
'.$this->player.'
</span>
<span>' . $this->type . '</span>
<span>'.$this->type.'</span>
</span>
');
}
protected function getData(): array
{
$data = LoadPlayer::load($this->filters, true);
$data = LoadPlayerWidgets::load($this->filters, true);
if ($data) {
$this->player = $data['player_name'] ?? '';