diff --git a/app/Livewire/BoardDispatcher.php b/app/Livewire/BoardDispatcher.php index 6c32dd4a..eb369df2 100644 --- a/app/Livewire/BoardDispatcher.php +++ b/app/Livewire/BoardDispatcher.php @@ -328,6 +328,10 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa return; } + // dd(Auth::user()); + // "client_id" => 1 + // "sport_id" => 1 + // when drag from field to field remove from prviouse field to prevent doubles foreach ($this->boxes as $k => $record) { if (count($record) && $record['id'] == (int) $player['id']) { @@ -365,7 +369,6 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa public function clearBox(int $boxNumber): void { - if (isset($this->boxes[$boxNumber])) { $tmp = $this->boxes[$boxNumber]; $player_id = 0; diff --git a/resources/views/filament/tables/columns/drag-card.blade.php b/resources/views/filament/tables/columns/drag-card.blade.php index d2a8bc63..9ef561ec 100644 --- a/resources/views/filament/tables/columns/drag-card.blade.php +++ b/resources/views/filament/tables/columns/drag-card.blade.php @@ -22,7 +22,7 @@ @endphp @if ($record['active'])