filter finised

This commit is contained in:
salam committed 2026-02-02 18:33:32 +01:00
1 parent ff43f231f0
commit f684d61a61
15 files changed
+376 -136

No files matched your search

+12 -2
View File
@@ -17,6 +17,10 @@ class SportSwitcher extends Component
public $iconcolor = '';
protected $listeners = [
'refreshSportSwitcher' => '$refresh',
];
public function mount()
{
$cps = Client::where('id', auth()->user()->client_id)->pluck('sport')->first();
@@ -35,9 +39,15 @@ class SportSwitcher extends Component
{
User::where('id', auth()->user()->id)->update(['sport_id' => $this->sport_id]);
$this->dispatch('clear_filters');
$this->sporticon = Sport::where('id', $this->sport_id)->pluck('icon')->first();
$this->js('window.location.reload()');
$this->iconcolor = Sport::where('id', $this->sport_id)->pluck('color')->first();
// $this->js('window.location.reload()');
$this->dispatch('filterClearFilter');
$this->dispatch('refreshSportSwitcher');
}
public function render()