From 65fb48b5fa11dbdffad6adda898b31ec84eb2e85 Mon Sep 17 00:00:00 2001 From: salam Date: Mon, 14 Sep 2026 12:54:34 +0200 Subject: [PATCH] wip --- app/Filament/Widgets/PlayerPropsDrop.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Filament/Widgets/PlayerPropsDrop.php b/app/Filament/Widgets/PlayerPropsDrop.php index db73b97a..1b0ab426 100644 --- a/app/Filament/Widgets/PlayerPropsDrop.php +++ b/app/Filament/Widgets/PlayerPropsDrop.php @@ -232,11 +232,16 @@ class PlayerPropsDrop extends Widget } $this->player_on_field_counter = 0; + + $this->dispatch('update-players', players: $this->players); } public function copyDevelopment() { if ($this->player_on_field_counter < 10) { + Notification::make()->title('Needs a calculation first ') + ->info() + ->send(); return; } @@ -259,6 +264,9 @@ class PlayerPropsDrop extends Widget public function copyResult() { if ($this->player_on_field_counter < 10) { + Notification::make()->title('Needs a calculation first ') + ->info() + ->send(); return; } $header = ['name', 'foot', 'events', 'average min', 'position', 'on field', 'gls', 'fls', 'ofs', 'snt', 'tsh', 'crd'];