design changes to save space
This commit is contained in:
1 parent
4b06f98bee
commit
fcbf718492
10 files changed
+319
-304
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Filament\Widgets;
|
||||
|
||||
use App\Filament\Widgets\Data\HelperStatisticType;
|
||||
use App\Filament\Widgets\Data\LoadPlayer;
|
||||
use Filament\Support\RawJs;
|
||||
use Filament\Widgets\ChartWidget;
|
||||
@@ -25,7 +26,10 @@ class ChartPlayer extends ChartWidget
|
||||
$data = LoadPlayer::load($this->filters);
|
||||
|
||||
if ($data) {
|
||||
$this->description = $data['player_name'];
|
||||
$this->description = ucfirst(HelperStatisticType::get($this->filters));
|
||||
if ($data['player_name']) {
|
||||
$this->description .= ' '.$data['player_name'];
|
||||
}
|
||||
}
|
||||
|
||||
return $data;
|
||||
|
||||
Reference in new issue
Block a user