wip change bettype in events monitor

This commit is contained in:
salam committed 2025-12-14 17:34:42 +01:00
1 parent 245255756c
commit c6fd66189b
15 files changed
+255 -279

No files matched your search

+10 -2
View File
@@ -23,8 +23,16 @@ class MultilineGenerator
for ($i = 1; $i <= $multiline->rows; $i++) {
Multiline::updateOrCreate(
['client_id' => $client_id, 'sport_id' => $sportid],
['name' => $multiline->name, 'table' => $multiline->table, 'sort' => $i, 'disabled' => 0]
[
'client_id' => $client_id,
'sport_id' => $sportid,
'name' => $multiline->name,
'table' => $multiline->table,
'sort' => $i,
],
[
'disabled' => 0,
]
);
}
}
+2 -2
View File
@@ -10,8 +10,8 @@ class MultilineSlots
{
$slots = Multiline::where('sport_id', auth()->user()->sport_id)
->where('client_id', auth()->user()->client_id)
->where('bettype_id', $bettype_id)
->where('matchpart_id', $matchpart_id)
// ->where('bettype_id', $bettype_id)
// ->where('matchpart_id', $matchpart_id)
->with('bookmaker')
->orderBy('sort')
->get();
@@ -2,7 +2,6 @@
namespace App\Filament\Resources\Bookmakers\Schemas;
use Filament\Forms\Components\FileUpload;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Schema;
@@ -16,10 +15,6 @@ class BookmakerForm
->required(),
TextInput::make('icon')
->required(),
FileUpload::make('image')
->preserveFilenames()
->columnSpan(2)
->default(null),
TextInput::make('baid')
->numeric()
->default(0),
@@ -2,9 +2,8 @@
namespace App\Filament\Resources\Bookmakers\Tables;
use App\Filament\Tables\Columns\BookmakerIcon;
use Filament\Actions\EditAction;
use Filament\Tables\Columns\IconColumn;
use Filament\Tables\Columns\ImageColumn;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Columns\ToggleColumn;
use Filament\Tables\Filters\TernaryFilter;
@@ -19,19 +18,13 @@ class BookmakersTable
->columns([
TextColumn::make('name')
->searchable(),
IconColumn::make('icon')
->trueColor('black')
->size('2xl')
->icon(function ($record): string {
return 'bkm-'.$record->icon;
}),
ImageColumn::make('image')
->imageHeight(30)
->imageWidth(110),
BookmakerIcon::make('icon')->label('Icon'),
TextColumn::make('baid')
->label('BAID')
->numeric()
->sortable(),
TextColumn::make('txid')
->label('TXID')
->numeric()
->sortable(),
ToggleColumn::make('txso')->offColor('gray'),
@@ -19,6 +19,8 @@ use Illuminate\Database\Eloquent\Builder;
class EventsTable
{
public static $bettype = '1x2';
public static function configure(Table $table): Table
{
return $table
@@ -3,11 +3,18 @@
namespace App\Filament\Resources\Multilines\Tables;
use App\Filament\Tables\Columns\BookmakerIcon;
use App\Models\Bookmaker;
use App\Models\Client;
use App\Models\Multiline;
use App\Models\Sport;
use Filament\Actions\Action;
use Filament\Forms\Components\Select;
use Filament\Schemas\Components\Utilities\Get;
use Filament\Tables\Columns\IconColumn;
use Filament\Tables\Columns\SelectColumn;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Enums\FiltersLayout;
use Filament\Tables\Filters\SelectFilter;
use Filament\Tables\Filters\Filter;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
@@ -23,7 +30,6 @@ class MultilinesTable
->label($isReordering ? 'Disable reordering' : 'Enable reordering'),
)
->reorderable('sort')
->defaultGroup('name')
->columns([
IconColumn::make('sport.icon')
->label('')
@@ -31,22 +37,48 @@ class MultilinesTable
->icon(function ($record): string {
return $record->sport->icon;
}),
// TextColumn::make('sport.name'),
TextColumn::make('sport.name'),
TextColumn::make('name'),
TextColumn::make('bookmaker.name'),
BookmakerIcon::make('bookmaker.icon')->label('Icon'),
SelectColumn::make('bookmaker_id')
->width('2rem')
->options(Bookmaker::where('is_active', 1)->pluck('name', 'txid')),
])
->defaultSort('sort')
->deferFilters(false)
->filters([
SelectFilter::make('sport_id')
->label('Sport')
->default(1)
->selectablePlaceholder(false)
->relationship('sport', 'name', fn (Builder $query) => $query->where('is_active', 1))
->preload(),
], FiltersLayout::AboveContent)
->hiddenFilterIndicators()
->persistFiltersInSession();
Filter::make('ligafilter')
->form([
Select::make('sport_id')
->label('Sport')
->default(1)
->options(function () {
$sports = Client::where('id', auth()->user()->client_id)->pluck('sport')->first();
return Sport::query()->whereIn('id', $sports)->pluck('name', 'id');
})
->live(),
Select::make('name')
->default('1X2')
->label('Bettype')
->options(function (Builder $query, Get $get) {
return Multiline::where('sport_id', $get('sport_id'))->pluck('name', 'name');
})
->live(),
])
->query(function (Builder $query, array $data): Builder {
return $query
->when(
$data['sport_id'],
fn (Builder $query, $sport_id) => $query->where('sport_id', $sport_id)
)->when(
$data['name'],
fn (Builder $query, $name) => $query->where('name', $name)
);
})
->columns(3)->columnSpan(3),
], layout: FiltersLayout::AboveContent)
->hiddenFilterIndicators();
}
}
+33
View File
@@ -0,0 +1,33 @@
<?php
namespace App\Livewire;
use App\Models\Client;
use App\Models\User;
use Livewire\Component;
class ClientSwitch extends Component
{
public $clients = [];
public ?string $client = '';
public function mount()
{
$this->clients = Client::pluck('name', 'id')->all();
$this->client = Client::where('id', auth()->user()->client_id)->pluck('name')->first();
}
public function render()
{
return view('livewire.client-switch');
}
public function swop($client_id)
{
User::where('id', auth()->user()->id)->update(['client_id' => $client_id]);
$this->js('window.location.reload()');
}
}
+8 -2
View File
@@ -9,6 +9,7 @@ use Filament\Support\Facades\FilamentColor;
use Filament\Support\Facades\FilamentView;
use Filament\Tables\View\TablesRenderHook;
use Filament\View\PanelsRenderHook;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;
use Illuminate\View\View;
@@ -28,7 +29,6 @@ class AppServiceProvider extends ServiceProvider
public function boot(): void
{
FilamentView::registerRenderHook(
// PanelsRenderHook::RESOURCE_PAGES_LIST_RECORDS_TABS_END,
TablesRenderHook::TOOLBAR_SEARCH_AFTER,
fn (): View => view('filament.hooks.table-bettype-filters'),
scopes: [
@@ -36,6 +36,12 @@ class AppServiceProvider extends ServiceProvider
]
);
FilamentView::registerRenderHook(
PanelsRenderHook::GLOBAL_SEARCH_BEFORE,
fn (): string => Blade::render('@livewire(\'client-switch\')')
// fn (): string => auth()->user()->hasRole('konto_switch') ? Blade::render('@livewire(\'konto-switch\')') : false
);
Carbon::setLocale(app()->getLocale());
FilamentColor::register([
@@ -44,7 +50,7 @@ class AppServiceProvider extends ServiceProvider
'primary' => Color::Blue,
'success' => Color::Green,
'warning' => Color::Yellow,
'info' => Color::Indigo,
'info' => Color::Fuchsia,
]);
}
Generated
+14 -14
View File
@@ -5467,20 +5467,20 @@
},
{
"name": "ramsey/uuid",
"version": "4.9.1",
"version": "4.9.2",
"source": {
"type": "git",
"url": "https://github.com/ramsey/uuid.git",
"reference": "81f941f6f729b1e3ceea61d9d014f8b6c6800440"
"reference": "8429c78ca35a09f27565311b98101e2826affde0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ramsey/uuid/zipball/81f941f6f729b1e3ceea61d9d014f8b6c6800440",
"reference": "81f941f6f729b1e3ceea61d9d014f8b6c6800440",
"url": "https://api.github.com/repos/ramsey/uuid/zipball/8429c78ca35a09f27565311b98101e2826affde0",
"reference": "8429c78ca35a09f27565311b98101e2826affde0",
"shasum": ""
},
"require": {
"brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11 || ^0.12 || ^0.13 || ^0.14",
"brick/math": "^0.8.16 || ^0.9 || ^0.10 || ^0.11 || ^0.12 || ^0.13 || ^0.14",
"php": "^8.0",
"ramsey/collection": "^1.2 || ^2.0"
},
@@ -5539,9 +5539,9 @@
],
"support": {
"issues": "https://github.com/ramsey/uuid/issues",
"source": "https://github.com/ramsey/uuid/tree/4.9.1"
"source": "https://github.com/ramsey/uuid/tree/4.9.2"
},
"time": "2025-09-04T20:59:21+00:00"
"time": "2025-12-14T04:43:48+00:00"
},
{
"name": "ryangjchandler/blade-capture-directive",
@@ -8602,23 +8602,23 @@
},
{
"name": "tijsverkoyen/css-to-inline-styles",
"version": "v2.3.0",
"version": "v2.4.0",
"source": {
"type": "git",
"url": "https://github.com/tijsverkoyen/CssToInlineStyles.git",
"reference": "0d72ac1c00084279c1816675284073c5a337c20d"
"reference": "f0292ccf0ec75843d65027214426b6b163b48b41"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/0d72ac1c00084279c1816675284073c5a337c20d",
"reference": "0d72ac1c00084279c1816675284073c5a337c20d",
"url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/f0292ccf0ec75843d65027214426b6b163b48b41",
"reference": "f0292ccf0ec75843d65027214426b6b163b48b41",
"shasum": ""
},
"require": {
"ext-dom": "*",
"ext-libxml": "*",
"php": "^7.4 || ^8.0",
"symfony/css-selector": "^5.4 || ^6.0 || ^7.0"
"symfony/css-selector": "^5.4 || ^6.0 || ^7.0 || ^8.0"
},
"require-dev": {
"phpstan/phpstan": "^2.0",
@@ -8651,9 +8651,9 @@
"homepage": "https://github.com/tijsverkoyen/CssToInlineStyles",
"support": {
"issues": "https://github.com/tijsverkoyen/CssToInlineStyles/issues",
"source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/v2.3.0"
"source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/v2.4.0"
},
"time": "2024-12-21T16:25:41+00:00"
"time": "2025-12-02T11:56:42+00:00"
},
{
"name": "ueberdosis/tiptap-php",
+51 -51
View File
@@ -9,58 +9,58 @@ class BookmakerSeeder extends Seeder
{
public function run(): void
{
$sql = "INSERT INTO `bookmakers` (`id`, `name`, `icon`, `image`, `baid`, `txid`, `txso`, `txot`, `betsapi`, `direct`, `is_active`, `deleted`, `created_at`, `updated_at`)
$sql = "INSERT INTO `bookmakers` (`id`, `name`, `icon`, `baid`, `txid`, `txso`, `txot`, `betsapi`, `direct`, `is_active`, `provider_id`, `deleted`, `created_at`, `updated_at`)
VALUES
('1', 'MISSING', '01K38AYTRV6X29TV888GMTYQ8Q.svg', NULL, '0', '0', '0', '0', '2', '0', '0', '0', NULL, '2025-08-23 10:07:59'),
('2', 'Bet365', 'bet365', 'bet365.png', '2', '126', '0', '1', '2', '0', '1', '0', NULL, '2025-08-23 10:08:17'),
('3', 'BWin', 'bwin', 'bwin.jpg', '3', '30', '1', '1', '2', '0', '1', '0', NULL, '2025-08-23 10:08:34'),
('4', 'BetFair', 'betfair', 'betfairy.png', '4', '110', '1', '0', '2', '0', '1', '0', NULL, '2025-08-23 10:10:10'),
('5', 'Betway', 'betway', '', '5', '340', '0', '0', '2', '0', '0', '0', NULL, NULL),
('6', '10Bet', '10bet', '', '6', '274', '0', '1', '2', '0', '0', '0', NULL, NULL),
('7', 'Ladbrokes', 'ladbrokes', '', '7', '17', '0', '1', '2', '0', '1', '0', NULL, NULL),
('8', 'PlanetWin365', 'planetwin365', '', '8', '627', '0', '0', '2', '0', '0', '0', NULL, NULL),
('10', 'UniBet', 'unibet', '', '10', '6', '1', '1', '2', '0', '1', '0', NULL, NULL),
('11', '888Sport', '888sport', '', '11', '0', '0', '0', '2', '0', '0', '0', NULL, NULL),
('13', 'Betsson', 'betsson', '', '13', '0', '0', '0', '2', '0', '0', '0', NULL, NULL),
('14', 'Sbobet', 'sbobet', 'sbobet.svg', '14', '327', '1', '0', '2', '0', '1', '0', NULL, '2025-08-23 10:19:43'),
('15', 'TitanBet', NULL, '', '15', '0', '0', '0', '2', '0', '0', '1', NULL, NULL),
('16', 'DafaBet', NULL, '', '16', '0', '0', '0', '2', '0', '0', '1', NULL, NULL),
('17', 'BetVictor', NULL, '', '17', '0', '0', '0', '2', '0', '0', '1', NULL, NULL),
('18', '1XBet', '1xbet', '', '18', '0', '0', '0', '2', '0', '0', '0', NULL, NULL),
('19', 'Expekt', 'expekt', '', '0', '5', '1', '1', '1', '0', '1', '0', NULL, NULL),
('20', 'Magloo Nigeria', 'magloo-nig', 'magloo-logo.svg', '0', '10', '0', '0', '1', '0', '1', '0', NULL, '2025-08-23 10:19:02'),
('21', 'Sportingbet', 'sportingbet', '', '0', '13', '1', '1', '1', '0', '1', '0', NULL, NULL),
('22', 'Betika', 'betika', '', '0', '14', '0', '0', '1', '0', '1', '0', NULL, NULL),
('23', 'Intertops', 'intertops', '', '0', '15', '0', '0', '1', '0', '1', '0', NULL, NULL),
('24', 'Magloo Kenia', 'magloo-kenia', 'magloo-kenia.png', '0', '16', '0', '0', '1', '0', '1', '0', NULL, '2025-08-23 10:15:23'),
('25', 'Interwetten', 'interwetten', '', '0', '26', '1', '1', '1', '0', '1', '0', NULL, NULL),
('26', 'Logifuture Nigeria', 'log-nig', '', '0', '35', '0', '0', '1', '0', '1', '0', NULL, NULL),
('27', 'Logifuture Colombia', 'log-col', '', '0', '36', '0', '0', '1', '0', '1', '0', NULL, NULL),
('28', 'William Hill', 'willhill', '', '0', '42', '1', '1', '1', '0', '1', '0', NULL, NULL),
('29', 'Bet At Home', 'betathome', '', '0', '49', '0', '1', '1', '0', '1', '0', NULL, NULL),
('30', 'Pinnacle', 'pinnacle', '', '0', '83', '1', '1', '1', '0', '1', '0', NULL, NULL),
('31', 'SNAI', 'snai', '', '0', '117', '1', '1', '1', '0', '1', '0', NULL, NULL),
('32', 'Nordicbet', 'nordicbet', '', '0', '118', '0', '1', '1', '0', '1', '0', NULL, NULL),
('33', 'Goldbet', 'goldbet', '', '0', '128', '0', '0', '1', '0', '1', '0', NULL, NULL),
('34', '5 Dimes', '5dimes', '', '0', '234', '1', '0', '1', '0', '1', '1', NULL, NULL),
('35', 'Matchbook', 'matchbook', '', '0', '314', '1', '0', '1', '0', '1', '0', NULL, NULL),
('36', 'Tipico', 'tipico', '', '0', '363', '0', '1', '1', '0', '1', '0', NULL, NULL),
('37', 'PartyBets', 'partybets', '', '0', '380', '1', '0', '1', '0', '1', '0', NULL, NULL),
('38', 'Eurobet', 'eurobet', '', '0', '388', '1', '1', '1', '0', '1', '0', NULL, NULL),
('39', 'BetClick', 'betclick', '', '0', '395', '1', '0', '1', '0', '1', '0', NULL, NULL),
('40', 'Bet3000', 'bet3000', '', '0', '399', '1', '1', '1', '0', '1', '0', NULL, NULL),
('41', 'Better', 'better', '', '0', '413', '0', '1', '1', '0', '1', '0', NULL, NULL),
('42', 'Marathonbet', 'marathonbet', '', '0', '539', '1', '1', '1', '0', '1', '0', NULL, NULL),
('43', 'Sisal', 'sisal', '', '0', '577', '0', '1', '1', '0', '1', '0', NULL, NULL),
('44', 'Betaland', 'betaland', '', '0', '625', '1', '0', '1', '0', '1', '0', NULL, NULL),
('45', 'Bet9ja', 'bet9ja', '', '0', '658', '0', '0', '1', '0', '1', '0', NULL, NULL),
('46', 'SportPesa', 'sportpesa', '', '0', '668', '1', '0', '1', '0', '1', '0', NULL, NULL),
('47', 'BetKing', 'betking', '', '0', '823', '1', '1', '1', '0', '1', '0', NULL, NULL),
('48', 'BetPlay', 'betplay', '', '0', '824', '1', '0', '1', '0', '1', '0', NULL, NULL),
('49', 'SportyBet', 'sportybet', '', '0', '825', '1', '1', '1', '0', '1', '0', NULL, NULL),
('50', 'WPlay', 'wplay', '', '0', '827', '1', '0', '1', '0', '1', '0', NULL, NULL),
('51', 'ColBet', 'colbet', '', '0', '828', '1', '0', '1', '0', '1', '0', NULL, NULL);
";
('1', 'MISSING', 'missing', '0', '0', '0', '0', '2', '0', '0', '0', '0', NULL, '2025-08-23 10:07:59'),
('2', 'Bet365', 'bet365', '2', '126', '0', '1', '2', '0', '1', '0', '0', NULL, '2025-08-23 10:08:17'),
('3', 'BWin', 'bwin', '3', '30', '1', '1', '2', '0', '1', '0', '0', NULL, '2025-08-23 10:08:34'),
('4', 'BetFair', 'betfair', '4', '110', '1', '0', '2', '0', '1', '0', '0', NULL, '2025-08-23 10:10:10'),
('5', 'Betway', 'betway', '5', '340', '0', '0', '2', '0', '0', '0', '0', NULL, NULL),
('6', '10Bet', '10bet', '6', '274', '0', '1', '2', '0', '0', '0', '0', NULL, NULL),
('7', 'Ladbrokes', 'ladbrokes', '7', '17', '0', '1', '2', '0', '1', '0', '0', NULL, NULL),
('8', 'PlanetWin365', 'planetwin365', '8', '627', '0', '0', '2', '0', '0', '0', '0', NULL, NULL),
('10', 'UniBet', 'unibet', '10', '6', '1', '1', '2', '0', '1', '0', '0', NULL, NULL),
('11', '888Sport', '888sport', '11', '1000', '0', '0', '2', '0', '0', '0', '0', NULL, NULL),
('13', 'Betsson', 'betsson', '13', '1000', '0', '0', '2', '0', '0', '0', '0', NULL, NULL),
('14', 'Sbobet', 'sbobet', '14', '327', '1', '0', '2', '0', '1', '0', '0', NULL, '2025-08-23 10:19:43'),
('15', 'TitanBet', 'titanbet', '15', '1000', '0', '0', '2', '0', '0', '0', '1', NULL, NULL),
('16', 'DafaBet', 'dafabet', '16', '1000', '0', '0', '2', '0', '0', '0', '1', NULL, NULL),
('17', 'BetVictor', 'betvictor', '17', '1000', '0', '0', '2', '0', '0', '0', '1', NULL, NULL),
('18', '1XBet', '1xbet', '18', '1000', '0', '0', '2', '0', '0', '0', '0', NULL, NULL),
('19', 'Expekt', 'expekt', '0', '5', '1', '1', '1', '0', '1', '0', '0', NULL, NULL),
('20', 'Magloo Nigeria', 'magloo-nig', '0', '10', '0', '0', '1', '0', '1', '0', '0', NULL, '2025-08-23 10:19:02'),
('21', 'Sportingbet', 'sportingbet', '0', '13', '1', '1', '1', '0', '1', '0', '0', NULL, NULL),
('22', 'Betika', 'betika', '0', '14', '0', '0', '1', '0', '1', '0', '0', NULL, NULL),
('23', 'Intertops', 'intertops', '0', '15', '0', '0', '1', '0', '1', '0', '0', NULL, NULL),
('24', 'Magloo Kenia', 'magloo-kenia', '0', '16', '0', '0', '1', '0', '1', '0', '0', NULL, '2025-08-23 10:15:23'),
('25', 'Interwetten', 'interwetten', '0', '26', '1', '1', '1', '0', '1', '0', '0', NULL, NULL),
('26', 'Logifuture Nigeria', 'log-nig', '0', '35', '0', '0', '1', '0', '1', '0', '0', NULL, NULL),
('27', 'Logifuture Colombia', 'log-col', '0', '36', '0', '0', '1', '0', '1', '0', '0', NULL, NULL),
('28', 'William Hill', 'willhill', '0', '42', '1', '1', '1', '0', '1', '0', '0', NULL, NULL),
('29', 'Bet At Home', 'betathome', '0', '49', '0', '1', '1', '0', '1', '0', '0', NULL, NULL),
('30', 'Pinnacle', 'pinnacle', '0', '83', '1', '1', '1', '0', '1', '0', '0', NULL, NULL),
('31', 'SNAI', 'snai', '0', '117', '1', '1', '1', '0', '1', '0', '0', NULL, NULL),
('32', 'Nordicbet', 'nordicbet', '0', '118', '0', '1', '1', '0', '1', '0', '0', NULL, NULL),
('33', 'Goldbet', 'goldbet', '0', '128', '0', '0', '1', '0', '1', '0', '0', NULL, NULL),
('34', '5 Dimes', '5dimes', '0', '234', '1', '0', '1', '0', '1', '0', '1', NULL, NULL),
('35', 'Matchbook', 'matchbook', '0', '314', '1', '0', '1', '0', '1', '0', '0', NULL, NULL),
('36', 'Tipico', 'tipico', '0', '363', '0', '1', '1', '0', '1', '0', '0', NULL, NULL),
('37', 'PartyBets', 'partybets', '0', '380', '1', '0', '1', '0', '1', '0', '0', NULL, NULL),
('38', 'Eurobet', 'eurobet', '0', '388', '1', '1', '1', '0', '1', '0', '0', NULL, NULL),
('39', 'BetClick', 'betclick', '0', '395', '1', '0', '1', '0', '1', '0', '0', NULL, NULL),
('40', 'Bet3000', 'bet3000', '0', '399', '1', '1', '1', '0', '1', '0', '0', NULL, NULL),
('41', 'Better', 'better', '0', '413', '0', '1', '1', '0', '1', '0', '0', NULL, NULL),
('42', 'Marathonbet', 'marathonbet', '0', '539', '1', '1', '1', '0', '1', '0', '0', NULL, NULL),
('43', 'Sisal', 'sisal', '0', '577', '0', '1', '1', '0', '1', '0', '0', NULL, NULL),
('44', 'Betaland', 'betaland', '0', '625', '1', '0', '1', '0', '1', '0', '0', NULL, NULL),
('45', 'Bet9ja', 'bet9ja', '0', '658', '0', '0', '1', '0', '1', '0', '0', NULL, NULL),
('46', 'SportPesa', 'sportpesa', '0', '668', '1', '0', '1', '0', '1', '0', '0', NULL, NULL),
('47', 'BetKing', 'betking', '0', '823', '1', '1', '1', '0', '1', '0', '0', NULL, NULL),
('48', 'BetPlay', 'betplay', '0', '824', '1', '0', '1', '0', '1', '0', '0', NULL, NULL),
('49', 'SportyBet', 'sportybet', '0', '825', '1', '1', '1', '0', '1', '0', '0', NULL, NULL),
('50', 'WPlay', 'wplay', '0', '827', '1', '0', '1', '0', '1', '0', '0', NULL, NULL),
('51', 'ColBet', 'colbet', '0', '828', '1', '0', '1', '0', '1', '0', '0', NULL, NULL);
";
DB::unprepared($sql);
}
+70 -72
View File
@@ -815,9 +815,9 @@
]
},
"node_modules/@tailwindcss/node": {
"version": "4.1.17",
"resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.1.17.tgz",
"integrity": "sha512-csIkHIgLb3JisEFQ0vxr2Y57GUNYh447C8xzwj89U/8fdW8LhProdxvnVH6U8M2Y73QKiTIH+LWbK3V2BBZsAg==",
"version": "4.1.18",
"resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.1.18.tgz",
"integrity": "sha512-DoR7U1P7iYhw16qJ49fgXUlry1t4CpXeErJHnQ44JgTSKMaZUdf17cfn5mHchfJ4KRBZRFA/Coo+MUF5+gOaCQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -827,37 +827,37 @@
"lightningcss": "1.30.2",
"magic-string": "^0.30.21",
"source-map-js": "^1.2.1",
"tailwindcss": "4.1.17"
"tailwindcss": "4.1.18"
}
},
"node_modules/@tailwindcss/oxide": {
"version": "4.1.17",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.1.17.tgz",
"integrity": "sha512-F0F7d01fmkQhsTjXezGBLdrl1KresJTcI3DB8EkScCldyKp3Msz4hub4uyYaVnk88BAS1g5DQjjF6F5qczheLA==",
"version": "4.1.18",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.1.18.tgz",
"integrity": "sha512-EgCR5tTS5bUSKQgzeMClT6iCY3ToqE1y+ZB0AKldj809QXk1Y+3jB0upOYZrn9aGIzPtUsP7sX4QQ4XtjBB95A==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">= 10"
},
"optionalDependencies": {
"@tailwindcss/oxide-android-arm64": "4.1.17",
"@tailwindcss/oxide-darwin-arm64": "4.1.17",
"@tailwindcss/oxide-darwin-x64": "4.1.17",
"@tailwindcss/oxide-freebsd-x64": "4.1.17",
"@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.17",
"@tailwindcss/oxide-linux-arm64-gnu": "4.1.17",
"@tailwindcss/oxide-linux-arm64-musl": "4.1.17",
"@tailwindcss/oxide-linux-x64-gnu": "4.1.17",
"@tailwindcss/oxide-linux-x64-musl": "4.1.17",
"@tailwindcss/oxide-wasm32-wasi": "4.1.17",
"@tailwindcss/oxide-win32-arm64-msvc": "4.1.17",
"@tailwindcss/oxide-win32-x64-msvc": "4.1.17"
"@tailwindcss/oxide-android-arm64": "4.1.18",
"@tailwindcss/oxide-darwin-arm64": "4.1.18",
"@tailwindcss/oxide-darwin-x64": "4.1.18",
"@tailwindcss/oxide-freebsd-x64": "4.1.18",
"@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.18",
"@tailwindcss/oxide-linux-arm64-gnu": "4.1.18",
"@tailwindcss/oxide-linux-arm64-musl": "4.1.18",
"@tailwindcss/oxide-linux-x64-gnu": "4.1.18",
"@tailwindcss/oxide-linux-x64-musl": "4.1.18",
"@tailwindcss/oxide-wasm32-wasi": "4.1.18",
"@tailwindcss/oxide-win32-arm64-msvc": "4.1.18",
"@tailwindcss/oxide-win32-x64-msvc": "4.1.18"
}
},
"node_modules/@tailwindcss/oxide-android-arm64": {
"version": "4.1.17",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.1.17.tgz",
"integrity": "sha512-BMqpkJHgOZ5z78qqiGE6ZIRExyaHyuxjgrJ6eBO5+hfrfGkuya0lYfw8fRHG77gdTjWkNWEEm+qeG2cDMxArLQ==",
"version": "4.1.18",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.1.18.tgz",
"integrity": "sha512-dJHz7+Ugr9U/diKJA0W6N/6/cjI+ZTAoxPf9Iz9BFRF2GzEX8IvXxFIi/dZBloVJX/MZGvRuFA9rqwdiIEZQ0Q==",
"cpu": [
"arm64"
],
@@ -872,9 +872,9 @@
}
},
"node_modules/@tailwindcss/oxide-darwin-arm64": {
"version": "4.1.17",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.1.17.tgz",
"integrity": "sha512-EquyumkQweUBNk1zGEU/wfZo2qkp/nQKRZM8bUYO0J+Lums5+wl2CcG1f9BgAjn/u9pJzdYddHWBiFXJTcxmOg==",
"version": "4.1.18",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.1.18.tgz",
"integrity": "sha512-Gc2q4Qhs660bhjyBSKgq6BYvwDz4G+BuyJ5H1xfhmDR3D8HnHCmT/BSkvSL0vQLy/nkMLY20PQ2OoYMO15Jd0A==",
"cpu": [
"arm64"
],
@@ -889,9 +889,9 @@
}
},
"node_modules/@tailwindcss/oxide-darwin-x64": {
"version": "4.1.17",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.1.17.tgz",
"integrity": "sha512-gdhEPLzke2Pog8s12oADwYu0IAw04Y2tlmgVzIN0+046ytcgx8uZmCzEg4VcQh+AHKiS7xaL8kGo/QTiNEGRog==",
"version": "4.1.18",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.1.18.tgz",
"integrity": "sha512-FL5oxr2xQsFrc3X9o1fjHKBYBMD1QZNyc1Xzw/h5Qu4XnEBi3dZn96HcHm41c/euGV+GRiXFfh2hUCyKi/e+yw==",
"cpu": [
"x64"
],
@@ -906,9 +906,9 @@
}
},
"node_modules/@tailwindcss/oxide-freebsd-x64": {
"version": "4.1.17",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.1.17.tgz",
"integrity": "sha512-hxGS81KskMxML9DXsaXT1H0DyA+ZBIbyG/sSAjWNe2EDl7TkPOBI42GBV3u38itzGUOmFfCzk1iAjDXds8Oh0g==",
"version": "4.1.18",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.1.18.tgz",
"integrity": "sha512-Fj+RHgu5bDodmV1dM9yAxlfJwkkWvLiRjbhuO2LEtwtlYlBgiAT4x/j5wQr1tC3SANAgD+0YcmWVrj8R9trVMA==",
"cpu": [
"x64"
],
@@ -923,9 +923,9 @@
}
},
"node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {
"version": "4.1.17",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.1.17.tgz",
"integrity": "sha512-k7jWk5E3ldAdw0cNglhjSgv501u7yrMf8oeZ0cElhxU6Y2o7f8yqelOp3fhf7evjIS6ujTI3U8pKUXV2I4iXHQ==",
"version": "4.1.18",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.1.18.tgz",
"integrity": "sha512-Fp+Wzk/Ws4dZn+LV2Nqx3IilnhH51YZoRaYHQsVq3RQvEl+71VGKFpkfHrLM/Li+kt5c0DJe/bHXK1eHgDmdiA==",
"cpu": [
"arm"
],
@@ -940,9 +940,9 @@
}
},
"node_modules/@tailwindcss/oxide-linux-arm64-gnu": {
"version": "4.1.17",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.1.17.tgz",
"integrity": "sha512-HVDOm/mxK6+TbARwdW17WrgDYEGzmoYayrCgmLEw7FxTPLcp/glBisuyWkFz/jb7ZfiAXAXUACfyItn+nTgsdQ==",
"version": "4.1.18",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.1.18.tgz",
"integrity": "sha512-S0n3jboLysNbh55Vrt7pk9wgpyTTPD0fdQeh7wQfMqLPM/Hrxi+dVsLsPrycQjGKEQk85Kgbx+6+QnYNiHalnw==",
"cpu": [
"arm64"
],
@@ -957,9 +957,9 @@
}
},
"node_modules/@tailwindcss/oxide-linux-arm64-musl": {
"version": "4.1.17",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.1.17.tgz",
"integrity": "sha512-HvZLfGr42i5anKtIeQzxdkw/wPqIbpeZqe7vd3V9vI3RQxe3xU1fLjss0TjyhxWcBaipk7NYwSrwTwK1hJARMg==",
"version": "4.1.18",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.1.18.tgz",
"integrity": "sha512-1px92582HkPQlaaCkdRcio71p8bc8i/ap5807tPRDK/uw953cauQBT8c5tVGkOwrHMfc2Yh6UuxaH4vtTjGvHg==",
"cpu": [
"arm64"
],
@@ -974,9 +974,9 @@
}
},
"node_modules/@tailwindcss/oxide-linux-x64-gnu": {
"version": "4.1.17",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.1.17.tgz",
"integrity": "sha512-M3XZuORCGB7VPOEDH+nzpJ21XPvK5PyjlkSFkFziNHGLc5d6g3di2McAAblmaSUNl8IOmzYwLx9NsE7bplNkwQ==",
"version": "4.1.18",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.1.18.tgz",
"integrity": "sha512-v3gyT0ivkfBLoZGF9LyHmts0Isc8jHZyVcbzio6Wpzifg/+5ZJpDiRiUhDLkcr7f/r38SWNe7ucxmGW3j3Kb/g==",
"cpu": [
"x64"
],
@@ -991,9 +991,9 @@
}
},
"node_modules/@tailwindcss/oxide-linux-x64-musl": {
"version": "4.1.17",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.1.17.tgz",
"integrity": "sha512-k7f+pf9eXLEey4pBlw+8dgfJHY4PZ5qOUFDyNf7SI6lHjQ9Zt7+NcscjpwdCEbYi6FI5c2KDTDWyf2iHcCSyyQ==",
"version": "4.1.18",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.1.18.tgz",
"integrity": "sha512-bhJ2y2OQNlcRwwgOAGMY0xTFStt4/wyU6pvI6LSuZpRgKQwxTec0/3Scu91O8ir7qCR3AuepQKLU/kX99FouqQ==",
"cpu": [
"x64"
],
@@ -1008,9 +1008,9 @@
}
},
"node_modules/@tailwindcss/oxide-wasm32-wasi": {
"version": "4.1.17",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.1.17.tgz",
"integrity": "sha512-cEytGqSSoy7zK4JRWiTCx43FsKP/zGr0CsuMawhH67ONlH+T79VteQeJQRO/X7L0juEUA8ZyuYikcRBf0vsxhg==",
"version": "4.1.18",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.1.18.tgz",
"integrity": "sha512-LffYTvPjODiP6PT16oNeUQJzNVyJl1cjIebq/rWWBF+3eDst5JGEFSc5cWxyRCJ0Mxl+KyIkqRxk1XPEs9x8TA==",
"bundleDependencies": [
"@napi-rs/wasm-runtime",
"@emnapi/core",
@@ -1026,10 +1026,10 @@
"license": "MIT",
"optional": true,
"dependencies": {
"@emnapi/core": "^1.6.0",
"@emnapi/runtime": "^1.6.0",
"@emnapi/core": "^1.7.1",
"@emnapi/runtime": "^1.7.1",
"@emnapi/wasi-threads": "^1.1.0",
"@napi-rs/wasm-runtime": "^1.0.7",
"@napi-rs/wasm-runtime": "^1.1.0",
"@tybys/wasm-util": "^0.10.1",
"tslib": "^2.4.0"
},
@@ -1038,9 +1038,9 @@
}
},
"node_modules/@tailwindcss/oxide-win32-arm64-msvc": {
"version": "4.1.17",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.1.17.tgz",
"integrity": "sha512-JU5AHr7gKbZlOGvMdb4722/0aYbU+tN6lv1kONx0JK2cGsh7g148zVWLM0IKR3NeKLv+L90chBVYcJ8uJWbC9A==",
"version": "4.1.18",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.1.18.tgz",
"integrity": "sha512-HjSA7mr9HmC8fu6bdsZvZ+dhjyGCLdotjVOgLA2vEqxEBZaQo9YTX4kwgEvPCpRh8o4uWc4J/wEoFzhEmjvPbA==",
"cpu": [
"arm64"
],
@@ -1055,9 +1055,9 @@
}
},
"node_modules/@tailwindcss/oxide-win32-x64-msvc": {
"version": "4.1.17",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.1.17.tgz",
"integrity": "sha512-SKWM4waLuqx0IH+FMDUw6R66Hu4OuTALFgnleKbqhgGU30DY20NORZMZUKgLRjQXNN2TLzKvh48QXTig4h4bGw==",
"version": "4.1.18",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.1.18.tgz",
"integrity": "sha512-bJWbyYpUlqamC8dpR7pfjA0I7vdF6t5VpUGMWRkXVE3AXgIZjYUYAK7II1GNaxR8J1SSrSrppRar8G++JekE3Q==",
"cpu": [
"x64"
],
@@ -1072,15 +1072,15 @@
}
},
"node_modules/@tailwindcss/vite": {
"version": "4.1.17",
"resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.1.17.tgz",
"integrity": "sha512-4+9w8ZHOiGnpcGI6z1TVVfWaX/koK7fKeSYF3qlYg2xpBtbteP2ddBxiarL+HVgfSJGeK5RIxRQmKm4rTJJAwA==",
"version": "4.1.18",
"resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.1.18.tgz",
"integrity": "sha512-jVA+/UpKL1vRLg6Hkao5jldawNmRo7mQYrZtNHMIVpLfLhDml5nMRUo/8MwoX2vNXvnaXNNMedrMfMugAVX1nA==",
"dev": true,
"license": "MIT",
"dependencies": {
"@tailwindcss/node": "4.1.17",
"@tailwindcss/oxide": "4.1.17",
"tailwindcss": "4.1.17"
"@tailwindcss/node": "4.1.18",
"@tailwindcss/oxide": "4.1.18",
"tailwindcss": "4.1.18"
},
"peerDependencies": {
"vite": "^5.2.0 || ^6 || ^7"
@@ -1298,9 +1298,9 @@
"license": "MIT"
},
"node_modules/enhanced-resolve": {
"version": "5.18.3",
"resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.3.tgz",
"integrity": "sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww==",
"version": "5.18.4",
"resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.4.tgz",
"integrity": "sha512-LgQMM4WXU3QI+SYgEc2liRgznaD5ojbmY3sb8LxyguVkIg5FxdpTkvk72te2R38/TGKxH634oLxXRGY6d7AP+Q==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1990,7 +1990,6 @@
"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
"dev": true,
"license": "MIT",
"peer": true,
"engines": {
"node": ">=12"
},
@@ -2164,9 +2163,9 @@
}
},
"node_modules/tailwindcss": {
"version": "4.1.17",
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.17.tgz",
"integrity": "sha512-j9Ee2YjuQqYT9bbRTfTZht9W/ytp5H+jJpZKiYdP/bpnXARAuELt9ofP0lPnmHjbga7SNQIxdTAXCmtKVYjN+Q==",
"version": "4.1.18",
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.18.tgz",
"integrity": "sha512-4+Z+0yiYyEtUVCScyfHCxOYP06L5Ne+JiHhY2IjR2KWMIWhJOYZKLSGZaP5HkZ8+bY0cxfzwDE5uOmzFXyIwxw==",
"dev": true,
"license": "MIT"
},
@@ -2224,7 +2223,6 @@
"integrity": "sha512-ITcnkFeR3+fI8P1wMgItjGrR10170d8auB4EpMLPqmx6uxElH3a/hHGQabSHKdqd4FXWO1nFIp9rRn7JQ34ACQ==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"esbuild": "^0.25.0",
"fdir": "^6.5.0",
@@ -24,6 +24,6 @@
x-on:click="$wire.set('tableFilters', {'published_at': {'value': '0'}})">
GG
</x-filament::button>
</div>
</div>
@@ -1,105 +0,0 @@
<x-filament-panels::page class="h-[calc(100vh-150px)]" id="monitor">
<div x-load-css="[@js(\Filament\Support\Facades\FilamentAsset::getStyleHref('tabulator-light'))]"></div>
<div x-load-css="[@js(\Filament\Support\Facades\FilamentAsset::getStyleHref('tabulator-dark'))]"></div>
<style>
.fi-page-content {
row-gap: 0;
}
#monitor-table {
border: 1px solid #e7e7e8;
}
.tabulator {
font-size: 12px;
}
.tabulator .tabulator-header {
background-color: #fff;
border-bottom: 1px solid #e7e7e8;
}
.tabulator .tabulator-footer {
background-color: #fff;
border-top: 1px solid #e7e7e8;
}
.dark {
#monitor-table {
border: 1px solid #525252;
}
.tabulator {
font-size: 12px;
}
.tabulator .tabulator-header {
border-bottom: 1px solid #525252;
}
.tabulator .tabulator-footer {
border-top: 1px solid #525252;
}
.tabulator .tabulator-header .tabulator-col {
border-right: 1px solid #525252;
}
</style>
<script type="module">
import {
TabulatorFull as Tabulator
} from './js/app/tabulator-js.js';
var r = 10;
var tabledata = {!! $data !!}
var table = new Tabulator("#monitor-table", {
rowHeight: 80,
height: screen.height - 382 + "px",
pagination: true,
dataLoader: true,
data: tabledata,
layout: "fitColumns",
pagination: "local",
paginationSize: r,
paginationCounter: "rows",
columns: [{
title: "",
width: 30,
field: "sid",
headerSort: false,
hozAlign: "center",
formatter: function(cell, formatterParams) {
var value = cell.getValue();
return "<img style='height:20px; width:20px; margin: 3px 0' src='svg/" + value +
".svg'>";
}
}, {
title: "Id",
field: "id",
hozAlign: "center",
width: 100
}, {
title: "Event",
field: "e",
hozAlign: "center",
width: 500,
formatter: function(cell, formatterParams) {
var value = cell.getValue();
var liga = cell.getData().g;
var country = cell.getData().c;
return "<span style='font-weight:bold;'>" + value +
"</span><br/><span style='padding:3px;'>" + country + ' > ' + liga + "</span>";
}
}],
});
</script>
<div id="monitor-table" class="h-20">
</div>
</x-filament-panels::page>
@@ -5,7 +5,6 @@ use App\Utilities\OddsFormatting;
<div {{ $getExtraAttributeBag() }} class="grid grid-cols-5 grid-rows-5 oddsbox">
{{ $loadMultiline($record->odds_3way) }}
@foreach ($getMultiline() as $row)
@@ -0,0 +1,15 @@
<x-filament::dropdown>
<x-slot name="trigger">
<x-filament::button icon="phosphor-user">
{{ $client }}
</x-filament::button>
</x-slot>
<x-filament::dropdown.list>
@foreach ($clients as $id => $name)
<x-filament::dropdown.list.item wire:click="swop({{ $id }})" icon="phosphor-key">
{{ $name }}
</x-filament::dropdown.list.item>
@endforeach
</x-filament::dropdown.list>
</x-filament::dropdown>