This commit is contained in:
salam committed 2026-01-26 12:17:24 +01:00
1 parent 49b1eba348
commit 9ca5657827
28 files changed
+288 -234

No files matched your search

+4 -1
View File
@@ -2,6 +2,7 @@
namespace App\Livewire;
use App\Models\Provider;
use App\Models\Sport;
use App\Models\User;
use Illuminate\Support\Facades\Route;
@@ -38,7 +39,9 @@ class TopMenuItems extends Component
public function swopBookmaker($bookmaker_id)
{
User::where('id', auth()->user()->id)->update(['bookmaker_id' => $bookmaker_id]);
$provider_id = Provider::where('bookmaker_id', $bookmaker_id)->value('id');
User::where('id', auth()->user()->id)->update(['provider_id' => $provider_id, 'bookmaker_id' => $bookmaker_id]);
$this->js('window.location.reload()');
}