This commit is contained in:
salam committed 2026-08-11 11:02:22 +02:00
1 parent 10baadb780
commit 874f6f75c8
7 files changed
+85 -132

No files matched your search

-20
View File
@@ -1,20 +0,0 @@
<?php
namespace App\Actions\Selections;
use App\Models\SofaScorePlayerPosition;
class LoadPosition
{
public static function load()
{
$res = SofaScorePlayerPosition::get();
$arr = [];
foreach ($res as $val) {
$arr[$val->ss_code] = $val->season;
}
return $arr;
}
}
@@ -1,27 +0,0 @@
<?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;
}
}
@@ -1,6 +1,6 @@
<?php
namespace App\Actions\Selections;
namespace App\Filament\Pages\Selections;
use App\Models\StatistikoEvent;
use App\Models\SofaScorePlayerPosition;
@@ -73,11 +73,11 @@ class LoadPlayer
$infostring .= ' - ' . round($minues_played / $events_played) . 'min';
if ($events_played < $colorlevel) {
$arr[$position][$val->ss_player_id] = '<span class="text-red-600 dark:text-red-500"><b>' . $val->details->player_name . '</b><br>' . $infostring . '</span>';
$arr[$position][$val->ss_player_id] = '<span class="text-red-600 dark:text-red-500 cursor-pointer"><b>' . $val->details->player_name . '</b><br>' . $infostring . '</span>';
} else if ($events_played < $colorlevel * 2) {
$arr[$position][$val->ss_player_id] = '<span class="text-blue-600 dark:text-blue-500"><b>' . $val->details->player_name . '</b><br>' . $infostring . '</span>';
$arr[$position][$val->ss_player_id] = '<span class="text-blue-600 dark:text-blue-500 cursor-pointer"><b>' . $val->details->player_name . '</b><br>' . $infostring . '</span>';
} else {
$arr[$position][$val->ss_player_id] = '<span class="text-green-600 dark:text-green-500"><b>' . $val->details->player_name . '</b><br>' . $infostring . '</span>';
$arr[$position][$val->ss_player_id] = '<span class="text-green-600 dark:text-green-500 cursor-pointer"><b>' . $val->details->player_name . '</b><br>' . $infostring . '</span>';
}
}
return $arr;
@@ -1,6 +1,6 @@
<?php
namespace App\Actions\Selections;
namespace App\Filament\Pages\Selections;
use App\Models\StatistikoEvent;
+15 -14
View File
@@ -2,28 +2,28 @@
namespace App\Filament\Pages;
use BackedEnum;
use Filament\Support\RawJs;
use Filament\Actions\Action;
use Filament\Schemas\Schema;
use App\Actions\LoadStatisticFixturesLeaguesOptions;
use App\Actions\LoadStatisticFixturesMatchOptions;
use App\Filament\Pages\Selections\LoadPlayer;
use App\Filament\Pages\Selections\LoadSeasons;
use App\Models\SofaScoreRosa;
use App\Models\StatisticFixtures;
use Illuminate\Support\HtmlString;
use BackedEnum;
use BezhanSalleh\FilamentShield\Traits\HasPageShield;
use Filament\Actions\Action;
use Filament\Forms\Components\DatePicker;
use Filament\Forms\Components\Radio;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\Slider;
use Filament\Schemas\Components\Grid;
use App\Actions\Selections\LoadPlayer;
use App\Actions\Selections\LoadSeasons;
use Filament\Forms\Components\DatePicker;
use Filament\Pages\Dashboard as BaseDashboard;
use Illuminate\Contracts\Support\Htmlable;
use Filament\Pages\Dashboard\Concerns\HasFiltersForm;
use Filament\Schemas\Components\Grid;
use Filament\Schemas\Components\Utilities\Get;
use Filament\Schemas\Components\Utilities\Set;
use App\Actions\LoadStatisticFixturesMatchOptions;
use App\Actions\LoadStatisticFixturesLeaguesOptions;
use BezhanSalleh\FilamentShield\Traits\HasPageShield;
use Filament\Pages\Dashboard\Concerns\HasFiltersForm;
use Filament\Schemas\Schema;
use Filament\Support\RawJs;
use Illuminate\Contracts\Support\Htmlable;
use Illuminate\Support\HtmlString;
class Statistic extends BaseDashboard
{
@@ -237,6 +237,7 @@ class Statistic extends BaseDashboard
->color('success')
->tooltip(fn() => $this->tooltip_player_info())
)
->extraAttributes(fn() => ['id' => 'player_selector'])
->options(function (Get $get) {
return LoadPlayer::load($get);
}),
Generated
+61 -61
View File
@@ -81,16 +81,16 @@
},
{
"name": "anourvalar/eloquent-serialize",
"version": "1.3.10",
"version": "1.3.11",
"source": {
"type": "git",
"url": "https://github.com/AnourValar/eloquent-serialize.git",
"reference": "2be26f176b764a2d6f20118bfa4b125f71fa88f8"
"reference": "abd890c4d1ad8e90dd454d01283fbf342f80f1e5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/AnourValar/eloquent-serialize/zipball/2be26f176b764a2d6f20118bfa4b125f71fa88f8",
"reference": "2be26f176b764a2d6f20118bfa4b125f71fa88f8",
"url": "https://api.github.com/repos/AnourValar/eloquent-serialize/zipball/abd890c4d1ad8e90dd454d01283fbf342f80f1e5",
"reference": "abd890c4d1ad8e90dd454d01283fbf342f80f1e5",
"shasum": ""
},
"require": {
@@ -140,9 +140,9 @@
],
"support": {
"issues": "https://github.com/AnourValar/eloquent-serialize/issues",
"source": "https://github.com/AnourValar/eloquent-serialize/tree/1.3.10"
"source": "https://github.com/AnourValar/eloquent-serialize/tree/1.3.11"
},
"time": "2026-06-20T14:30:25+00:00"
"time": "2026-08-07T06:14:19+00:00"
},
{
"name": "awcodes/light-switch",
@@ -3357,16 +3357,16 @@
},
{
"name": "league/commonmark",
"version": "2.9.0",
"version": "2.9.2",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/commonmark.git",
"reference": "5703d83ba3da3b2e356a5fedc848ed6d8ffb6529"
"reference": "72e9a87efcf41a8e83be3ed0866b69d77565cb12"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/commonmark/zipball/5703d83ba3da3b2e356a5fedc848ed6d8ffb6529",
"reference": "5703d83ba3da3b2e356a5fedc848ed6d8ffb6529",
"url": "https://api.github.com/repos/thephpleague/commonmark/zipball/72e9a87efcf41a8e83be3ed0866b69d77565cb12",
"reference": "72e9a87efcf41a8e83be3ed0866b69d77565cb12",
"shasum": ""
},
"require": {
@@ -3460,7 +3460,7 @@
"type": "tidelift"
}
],
"time": "2026-08-03T13:42:31+00:00"
"time": "2026-08-11T00:58:45+00:00"
},
{
"name": "league/config",
@@ -4091,16 +4091,16 @@
},
{
"name": "livewire/livewire",
"version": "v4.3.5",
"version": "v4.4.0",
"source": {
"type": "git",
"url": "https://github.com/livewire/livewire.git",
"reference": "7ef4b2a876c71744e86463079dd506b26eeab624"
"reference": "514b29d5a23594d4e4846494f580268b20c2f11e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/livewire/livewire/zipball/7ef4b2a876c71744e86463079dd506b26eeab624",
"reference": "7ef4b2a876c71744e86463079dd506b26eeab624",
"url": "https://api.github.com/repos/livewire/livewire/zipball/514b29d5a23594d4e4846494f580268b20c2f11e",
"reference": "514b29d5a23594d4e4846494f580268b20c2f11e",
"shasum": ""
},
"require": {
@@ -4155,7 +4155,7 @@
"description": "A front-end framework for Laravel.",
"support": {
"issues": "https://github.com/livewire/livewire/issues",
"source": "https://github.com/livewire/livewire/tree/v4.3.5"
"source": "https://github.com/livewire/livewire/tree/v4.4.0"
},
"funding": [
{
@@ -4163,7 +4163,7 @@
"type": "github"
}
],
"time": "2026-08-03T04:09:44+00:00"
"time": "2026-08-10T15:24:22+00:00"
},
{
"name": "maennchen/zipstream-php",
@@ -4885,16 +4885,16 @@
},
{
"name": "nesbot/carbon",
"version": "3.13.1",
"version": "3.13.2",
"source": {
"type": "git",
"url": "https://github.com/CarbonPHP/carbon.git",
"reference": "2937ad3d1d2c506fd2bc97d571438a95641f44e2"
"reference": "a1c54919f5fff9800cd03c32bd01defd5a4061cb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/2937ad3d1d2c506fd2bc97d571438a95641f44e2",
"reference": "2937ad3d1d2c506fd2bc97d571438a95641f44e2",
"url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/a1c54919f5fff9800cd03c32bd01defd5a4061cb",
"reference": "a1c54919f5fff9800cd03c32bd01defd5a4061cb",
"shasum": ""
},
"require": {
@@ -4986,7 +4986,7 @@
"type": "tidelift"
}
],
"time": "2026-07-09T18:23:49+00:00"
"time": "2026-08-08T11:40:35+00:00"
},
{
"name": "nette/php-generator",
@@ -7302,16 +7302,16 @@
},
{
"name": "symfony/console",
"version": "v7.4.15",
"version": "v7.4.16",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
"reference": "088ec6fe0ef6819cbc301174093b6bfa4ad26930"
"reference": "f4c69c9aed03abf933b294257d618bdd9b30a06d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/console/zipball/088ec6fe0ef6819cbc301174093b6bfa4ad26930",
"reference": "088ec6fe0ef6819cbc301174093b6bfa4ad26930",
"url": "https://api.github.com/repos/symfony/console/zipball/f4c69c9aed03abf933b294257d618bdd9b30a06d",
"reference": "f4c69c9aed03abf933b294257d618bdd9b30a06d",
"shasum": ""
},
"require": {
@@ -7376,7 +7376,7 @@
"terminal"
],
"support": {
"source": "https://github.com/symfony/console/tree/v7.4.15"
"source": "https://github.com/symfony/console/tree/v7.4.16"
},
"funding": [
{
@@ -7396,7 +7396,7 @@
"type": "tidelift"
}
],
"time": "2026-07-27T13:51:00+00:00"
"time": "2026-07-31T12:37:14+00:00"
},
{
"name": "symfony/css-selector",
@@ -7929,16 +7929,16 @@
},
{
"name": "symfony/http-foundation",
"version": "v7.4.15",
"version": "v7.4.16",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-foundation.git",
"reference": "1f898ee8188adda9417fb52cf8425a8342c254e7"
"reference": "b676451bb638e99a7d34d8a2be90406822e301eb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/1f898ee8188adda9417fb52cf8425a8342c254e7",
"reference": "1f898ee8188adda9417fb52cf8425a8342c254e7",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/b676451bb638e99a7d34d8a2be90406822e301eb",
"reference": "b676451bb638e99a7d34d8a2be90406822e301eb",
"shasum": ""
},
"require": {
@@ -7987,7 +7987,7 @@
"description": "Defines an object-oriented layer for the HTTP specification",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/http-foundation/tree/v7.4.15"
"source": "https://github.com/symfony/http-foundation/tree/v7.4.16"
},
"funding": [
{
@@ -8007,20 +8007,20 @@
"type": "tidelift"
}
],
"time": "2026-07-29T07:12:33+00:00"
"time": "2026-08-07T11:50:27+00:00"
},
{
"name": "symfony/http-kernel",
"version": "v7.4.15",
"version": "v7.4.16",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-kernel.git",
"reference": "403275d94f94d5626c3288c599b3b48093ba24f7"
"reference": "f5e728670fa2218ae8be8ea91f2b44b7d6e5304c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/403275d94f94d5626c3288c599b3b48093ba24f7",
"reference": "403275d94f94d5626c3288c599b3b48093ba24f7",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/f5e728670fa2218ae8be8ea91f2b44b7d6e5304c",
"reference": "f5e728670fa2218ae8be8ea91f2b44b7d6e5304c",
"shasum": ""
},
"require": {
@@ -8106,7 +8106,7 @@
"description": "Provides a structured process for converting a Request into a Response",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/http-kernel/tree/v7.4.15"
"source": "https://github.com/symfony/http-kernel/tree/v7.4.16"
},
"funding": [
{
@@ -8126,7 +8126,7 @@
"type": "tidelift"
}
],
"time": "2026-07-29T11:40:42+00:00"
"time": "2026-08-07T18:00:13+00:00"
},
{
"name": "symfony/mailer",
@@ -8214,16 +8214,16 @@
},
{
"name": "symfony/mime",
"version": "v7.4.15",
"version": "v7.4.16",
"source": {
"type": "git",
"url": "https://github.com/symfony/mime.git",
"reference": "0c1daf58bc931628df0bea26840d1fc8b9a3d34b"
"reference": "20094b76a7106dbe978d31cd3bd7aa1ed248d0e5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/mime/zipball/0c1daf58bc931628df0bea26840d1fc8b9a3d34b",
"reference": "0c1daf58bc931628df0bea26840d1fc8b9a3d34b",
"url": "https://api.github.com/repos/symfony/mime/zipball/20094b76a7106dbe978d31cd3bd7aa1ed248d0e5",
"reference": "20094b76a7106dbe978d31cd3bd7aa1ed248d0e5",
"shasum": ""
},
"require": {
@@ -8279,7 +8279,7 @@
"mime-type"
],
"support": {
"source": "https://github.com/symfony/mime/tree/v7.4.15"
"source": "https://github.com/symfony/mime/tree/v7.4.16"
},
"funding": [
{
@@ -8299,7 +8299,7 @@
"type": "tidelift"
}
],
"time": "2026-07-29T07:59:49+00:00"
"time": "2026-08-07T14:56:57+00:00"
},
{
"name": "symfony/polyfill-ctype",
@@ -9540,16 +9540,16 @@
},
{
"name": "symfony/translation",
"version": "v7.4.14",
"version": "v7.4.16",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation.git",
"reference": "a1af4dacb24eb7ef4f1ca71b94da8ddbce572281"
"reference": "501e0ff4553c744209ca1a68790d8a4541563710"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/translation/zipball/a1af4dacb24eb7ef4f1ca71b94da8ddbce572281",
"reference": "a1af4dacb24eb7ef4f1ca71b94da8ddbce572281",
"url": "https://api.github.com/repos/symfony/translation/zipball/501e0ff4553c744209ca1a68790d8a4541563710",
"reference": "501e0ff4553c744209ca1a68790d8a4541563710",
"shasum": ""
},
"require": {
@@ -9616,7 +9616,7 @@
"description": "Provides tools to internationalize your application",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/translation/tree/v7.4.14"
"source": "https://github.com/symfony/translation/tree/v7.4.16"
},
"funding": [
{
@@ -9636,7 +9636,7 @@
"type": "tidelift"
}
],
"time": "2026-06-06T09:33:19+00:00"
"time": "2026-07-30T12:37:26+00:00"
},
{
"name": "symfony/translation-contracts",
@@ -10838,16 +10838,16 @@
},
{
"name": "laravel/pint",
"version": "v1.30.4",
"version": "v1.30.5",
"source": {
"type": "git",
"url": "https://github.com/laravel/pint.git",
"reference": "a96cb6eee2961905d2fce7207aefb80945bf6b28"
"reference": "fe4148c503a0e266353d61396b79bbf7f35122df"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/pint/zipball/a96cb6eee2961905d2fce7207aefb80945bf6b28",
"reference": "a96cb6eee2961905d2fce7207aefb80945bf6b28",
"url": "https://api.github.com/repos/laravel/pint/zipball/fe4148c503a0e266353d61396b79bbf7f35122df",
"reference": "fe4148c503a0e266353d61396b79bbf7f35122df",
"shasum": ""
},
"require": {
@@ -10855,19 +10855,19 @@
"ext-mbstring": "*",
"ext-tokenizer": "*",
"ext-xml": "*",
"php": "^8.2.0"
"php": "^8.3.0"
},
"require-dev": {
"composer/semver": "^3.4.4",
"friendsofphp/php-cs-fixer": "^3.95.18",
"illuminate/view": "^12.65.0",
"illuminate/view": "^13.24.0",
"larastan/larastan": "^3.10.0",
"laravel-zero/framework": "^12.1.0",
"laravel-zero/framework": "^13.0.0",
"laravel/agent-detector": "^2.0.2",
"laravel/prompts": "^0.3.22",
"mockery/mockery": "^1.6.12",
"nunomaduro/termwind": "^2.4.0",
"pestphp/pest": "^3.8.7"
"pestphp/pest": "^4.7.8"
},
"bin": [
"builds/pint"
@@ -10904,7 +10904,7 @@
"issues": "https://github.com/laravel/pint/issues",
"source": "https://github.com/laravel/pint"
},
"time": "2026-08-05T16:47:22+00:00"
"time": "2026-08-10T15:35:50+00:00"
},
{
"name": "laravel/sail",
+4 -5
View File
@@ -209,8 +209,7 @@ less padding in table
}
/* Optional: Decrease overall table container padding */
/* .fi-ta-ctn {
padding-top: 0.5rem !important;
padding-bottom: 0.5rem !important;
} */
/* player statistik */
#player_selector .fi-dropdown-header {
@apply px-2 text-lg font-black dark:bg-black border-y border-gray-300 dark:text-gray-300 dark:border-gray-600
}