wip icons totalshots

This commit is contained in:
salam committed 2026-06-19 09:53:04 +02:00
1 parent d1736d3bca
commit 5ace682869
2 files changed
+41 -2

No files matched your search

@@ -0,0 +1,27 @@
<?php
namespace App\Actions\Selections;
use App\Models\StatistikoEvent;
class LoadStatisticTypes
{
public static function load()
{
$arr = [
'gls' => '<div class="flex gap-2"><svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5" fill="#000000" viewBox="0 0 256 256"><path d="M96,72a8,8,0,0,1,8-8A104.11,104.11,0,0,1,208,168a8,8,0,0,1-16,0,88.1,88.1,0,0,0-88-88A8,8,0,0,1,96,72ZM240,192H80V32a8,8,0,0,0-16,0V64H32a8,8,0,0,0,0,16H64V200a8,8,0,0,0,8,8H240a8,8,0,0,0,0-16Z"></path></svg><span>Goals</span></div>',
'crn' => '<div class="flex gap-2"><x-phosphor-angle /><span>Corner</span></div>',
];
// 'crn' => '<div class="flex gap-2"><x-phosphor-soccer-angle class="w-5 h-5 /><span>Corner</span></div>',
// 'fls' => 'Fouls Commited',
// 'ofs' => 'Offside',
// 'crd' => 'Cards',
// 'snt' => 'Shots On Target',
// 'tsh' => 'Total Shots',
// ])
return $arr;
}
}
+14 -2
View File
@@ -148,10 +148,22 @@ class Statistic extends BaseDashboard
->schema([
Select::make('statistic_type')
->hiddenLabel()
->allowHtml()
->placeholder('Statistic Type')
->prefixIconColor('success')
->prefixIcon('phosphor-arrows-out-line-vertical')
->default('none')
->prefixIcon(function (Get $get) {
return match ($get('statistic_type')) {
'gls' => 'phosphor-soccer-ball',
'crn' => 'phosphor-angle',
'fls' => 'phosphor-first-aid-kit',
'ofs' => 'phosphor-arrow-fat-lines-right',
'crd' => 'phosphor-cards',
'snt' => 'phosphor-target',
'tsh' => 'phosphor-chart-polar',
default => 'phosphor-soccer-ball',
};
})
->default('gls')
->selectablePlaceholder(false)
->options([
'gls' => 'Goals',