wip relation manager :(
This commit is contained in:
1 parent
ae5b566231
commit
94a3c6c472
24 files changed
+318
-217
No files matched your search
@@ -32,13 +32,6 @@ class BettypeResource extends Resource
|
||||
return BettypesTable::configure($table);
|
||||
}
|
||||
|
||||
public static function getRelations(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
|
||||
public static function getPages(): array
|
||||
{
|
||||
return [
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
namespace App\Filament\Resources\Events;
|
||||
|
||||
use App\Filament\Resources\Events\Pages\ListEvents;
|
||||
use App\Filament\Resources\Events\RelationManagers\BettypesRelationManager;
|
||||
use App\Filament\Resources\Events\RelationManagers\CountriesRelationManager;
|
||||
use App\Filament\Resources\Events\RelationManagers\UserNoteRelationManager;
|
||||
use App\Filament\Resources\Events\Schemas\EventForm;
|
||||
use App\Filament\Resources\Events\Tables\EventsTable;
|
||||
use App\Filament\Resources\Events\Tables\Tools\LoadPartnerDifferences;
|
||||
@@ -43,6 +46,15 @@ class EventResource extends Resource
|
||||
];
|
||||
}
|
||||
|
||||
public static function getRelations(): array
|
||||
{
|
||||
return [
|
||||
UserNoteRelationManager::class,
|
||||
CountriesRelationManager::class,
|
||||
BettypesRelationManager::class,
|
||||
];
|
||||
}
|
||||
|
||||
public static function getNavigationBadge(): ?string
|
||||
{
|
||||
return parent::getEloquentQuery()
|
||||
@@ -60,6 +72,7 @@ class EventResource extends Resource
|
||||
->with('away')
|
||||
->with('event_user_star')
|
||||
->with('event_bookmaker')
|
||||
->with('user_notes')
|
||||
->where('sport_id', auth()->user()->sport_id)
|
||||
->where('starttime', '>=', now());
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ class ListEvents extends ListRecords
|
||||
'filterUpdateYellow' => 'updateTableFiltersYellow',
|
||||
'filterUpdateRed' => 'updateTableFiltersRed',
|
||||
'filterUpdatePeriode' => 'updateTablePeriode',
|
||||
'filterClearFilter' => 'clearFilters',
|
||||
];
|
||||
|
||||
protected function getHeaderWidgets(): array
|
||||
@@ -28,6 +29,11 @@ class ListEvents extends ListRecords
|
||||
];
|
||||
}
|
||||
|
||||
public function clearFilters(): void
|
||||
{
|
||||
$this->removeTableFilters();
|
||||
}
|
||||
|
||||
public function updateTablePeriode(string $filter): void
|
||||
{
|
||||
$filter = json_decode($filter, true);
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\Events\RelationManagers;
|
||||
|
||||
use Filament\Actions\AssociateAction;
|
||||
use Filament\Actions\BulkActionGroup;
|
||||
use Filament\Actions\CreateAction;
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
use Filament\Actions\DissociateAction;
|
||||
use Filament\Actions\DissociateBulkAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Resources\RelationManagers\RelationManager;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
class BettypesRelationManager extends RelationManager
|
||||
{
|
||||
protected static string $relationship = 'bettypes';
|
||||
|
||||
public function form(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
TextInput::make('name')
|
||||
->required()
|
||||
->maxLength(255),
|
||||
]);
|
||||
}
|
||||
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->recordTitleAttribute('name')
|
||||
->columns([
|
||||
TextColumn::make('name')
|
||||
->searchable(),
|
||||
])
|
||||
->filters([
|
||||
//
|
||||
])
|
||||
->headerActions([
|
||||
CreateAction::make(),
|
||||
AssociateAction::make(),
|
||||
])
|
||||
->recordActions([
|
||||
EditAction::make(),
|
||||
DissociateAction::make(),
|
||||
DeleteAction::make(),
|
||||
])
|
||||
->toolbarActions([
|
||||
BulkActionGroup::make([
|
||||
DissociateBulkAction::make(),
|
||||
DeleteBulkAction::make(),
|
||||
]),
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\Events\RelationManagers;
|
||||
|
||||
use Filament\Actions\AssociateAction;
|
||||
use Filament\Actions\BulkActionGroup;
|
||||
use Filament\Actions\CreateAction;
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
use Filament\Actions\DissociateAction;
|
||||
use Filament\Actions\DissociateBulkAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Resources\RelationManagers\RelationManager;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
class CountriesRelationManager extends RelationManager
|
||||
{
|
||||
protected static string $relationship = 'countries';
|
||||
|
||||
public function form(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
TextInput::make('name')
|
||||
->required()
|
||||
->maxLength(255),
|
||||
]);
|
||||
}
|
||||
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->recordTitleAttribute('name')
|
||||
->columns([
|
||||
TextColumn::make('name')
|
||||
->searchable(),
|
||||
])
|
||||
->filters([
|
||||
//
|
||||
])
|
||||
->headerActions([
|
||||
CreateAction::make(),
|
||||
AssociateAction::make(),
|
||||
])
|
||||
->recordActions([
|
||||
EditAction::make(),
|
||||
DissociateAction::make(),
|
||||
DeleteAction::make(),
|
||||
])
|
||||
->toolbarActions([
|
||||
BulkActionGroup::make([
|
||||
DissociateBulkAction::make(),
|
||||
DeleteBulkAction::make(),
|
||||
]),
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\Events\RelationManagers;
|
||||
|
||||
use Filament\Actions\CreateAction;
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Resources\RelationManagers\RelationManager;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
class UserNoteRelationManager extends RelationManager
|
||||
{
|
||||
protected static string $relationship = 'user_notes';
|
||||
|
||||
protected static ?string $title = 'Allgemeinflächen';
|
||||
|
||||
protected static ?string $navigationLabel = 'Allgemeinflächen';
|
||||
|
||||
protected static ?string $modelLabel = 'Allgemeinflächen';
|
||||
|
||||
protected static ?string $pluralModelLabel = 'Allgemeinflächen';
|
||||
|
||||
public function form(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
TextInput::make('event_id')
|
||||
->required()
|
||||
->maxLength(255),
|
||||
]);
|
||||
}
|
||||
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->recordTitleAttribute('event_id')
|
||||
->columns([
|
||||
TextColumn::make('event_id')
|
||||
->searchable(),
|
||||
])
|
||||
->filters([
|
||||
//
|
||||
])
|
||||
->headerActions([
|
||||
CreateAction::make(),
|
||||
])
|
||||
->recordActions([
|
||||
EditAction::make(),
|
||||
DeleteAction::make(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Filament\Resources\Events\Schemas;
|
||||
|
||||
use Filament\Forms\Components\DateTimePicker;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Schemas\Schema;
|
||||
|
||||
@@ -12,22 +11,7 @@ class EventForm
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
DateTimePicker::make('starttime'),
|
||||
TextInput::make('sport_id')
|
||||
->required()
|
||||
->numeric(),
|
||||
TextInput::make('country_id')
|
||||
->numeric()
|
||||
->default(0),
|
||||
TextInput::make('group_id')
|
||||
->numeric()
|
||||
->default(0),
|
||||
TextInput::make('home_id')
|
||||
->numeric()
|
||||
->default(0),
|
||||
TextInput::make('away_id')
|
||||
->numeric()
|
||||
->default(0),
|
||||
|
||||
TextInput::make('provider_id')
|
||||
->numeric()
|
||||
->default(0),
|
||||
|
||||
@@ -23,6 +23,8 @@ use Filament\Actions\ActionGroup;
|
||||
use Filament\Actions\BulkActionGroup;
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Actions\ViewAction;
|
||||
use Filament\Forms\Components\Hidden;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
@@ -35,7 +37,6 @@ use Filament\Tables\Enums\FiltersLayout;
|
||||
use Filament\Tables\Filters\Filter;
|
||||
use Filament\Tables\Filters\Indicator;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
@@ -59,8 +60,8 @@ class EventsTable
|
||||
LoadBettype::load();
|
||||
|
||||
return $table
|
||||
->poll('10s')
|
||||
->striped()
|
||||
->poll('5s')
|
||||
->deferLoading()
|
||||
->defaultPaginationPageOption(50)
|
||||
->paginated([5, 10, 15])
|
||||
@@ -167,7 +168,6 @@ class EventsTable
|
||||
->visible(fn () => \in_array('odds_dnb', self::$bettype_settings))
|
||||
->verticalAlignment(VerticalAlignment::Start)
|
||||
->label('Draw No Bet'),
|
||||
|
||||
])->searchable(['id', 'home.name', 'away.name', 'betsapi_id', 'betradar_id', 'bet365_id', 'bwin_id', 'event_bookmaker.event_id'])
|
||||
->defaultSort('starttime', 'ASC')
|
||||
->extremePaginationLinks()
|
||||
@@ -509,19 +509,9 @@ class EventsTable
|
||||
->persistFiltersInSession()
|
||||
->emptyStateHeading('No events')
|
||||
->emptyStateDescription('Modify the filter')
|
||||
->recordUrl(null) // disable row click for page
|
||||
->recordAction(null) // disable row click for modal
|
||||
->recordActions([
|
||||
Action::make('note')
|
||||
->before(fn () => $this->pollingInterval = null)
|
||||
->after(fn () => $this->pollingInterval = '1s')
|
||||
->iconButton()->icon('phosphor-note')->color('gray')
|
||||
->tooltip('Add a note')
|
||||
->modalSubmitAction(false)
|
||||
->modalCancelAction(fn (Action $action) => $action->label('Close'))
|
||||
->modalContent(fn ($record): View => view(
|
||||
'filament.tables.columns.make-note',
|
||||
['record' => $record],
|
||||
)),
|
||||
Action::make('notify')->iconButton()->icon('phosphor-bell')->color('gray')->tooltip('Add a notifications'),
|
||||
Action::make('star')
|
||||
->iconButton()
|
||||
->color(function ($record) {
|
||||
@@ -549,8 +539,9 @@ class EventsTable
|
||||
EventUserStar::insert(['event_id' => $record->id, 'user_id' => auth()->user()->id]);
|
||||
}
|
||||
}),
|
||||
EditAction::make()->iconButton()->color(fn ($record) => $record->user_notes->isEmpty() ? 'gray' : 'info')->icon('phosphor-note-pencil'),
|
||||
ViewAction::make()->iconButton()->color('gray')->icon('phosphor-note-pencil'),
|
||||
ActionGroup::make([
|
||||
// EditAction::make(),
|
||||
DeleteAction::make()->visible(fn () => auth()->user()->hasRole('super_admin')),
|
||||
Action::make('txodds_odds')
|
||||
->label('TxOdds')
|
||||
|
||||
@@ -18,7 +18,6 @@ class LoadBettype
|
||||
foreach ($res as $value) {
|
||||
$arr[] = $value->multiline_setting->table;
|
||||
}
|
||||
|
||||
EventsTable::$bettype_settings = $arr;
|
||||
}
|
||||
}
|
||||
@@ -51,6 +51,7 @@ class BettypeToggle extends Component
|
||||
{
|
||||
User::where('id', auth()->user()->id)->update(['stars' => DB::raw('!stars')]);
|
||||
|
||||
$this->dispatch('filterClearFilter');
|
||||
$this->dispatch('refreshBettypeMenu');
|
||||
}
|
||||
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire;
|
||||
|
||||
use App\Models\UserNote;
|
||||
use Filament\Actions\Concerns\InteractsWithActions;
|
||||
use Filament\Actions\Contracts\HasActions;
|
||||
use Filament\Forms\Components\Textarea;
|
||||
use Filament\Schemas\Concerns\InteractsWithSchemas;
|
||||
use Filament\Schemas\Contracts\HasSchemas;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Concerns\InteractsWithTable;
|
||||
use Filament\Tables\Contracts\HasTable;
|
||||
use Filament\Tables\Table;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Livewire\Component;
|
||||
|
||||
class EditUserNote extends Component implements HasActions, HasSchemas, HasTable
|
||||
{
|
||||
use InteractsWithActions;
|
||||
use InteractsWithSchemas;
|
||||
use InteractsWithTable;
|
||||
|
||||
public $record;
|
||||
|
||||
public ?array $data = [];
|
||||
|
||||
public function mount($record)
|
||||
{
|
||||
$this->record = $record;
|
||||
}
|
||||
|
||||
public function form(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
Textarea::make('message')->required()->rows(2)->label('Add a new note'),
|
||||
])
|
||||
->statePath('data');
|
||||
}
|
||||
|
||||
public function create(): void
|
||||
{
|
||||
dd($this->form->getState());
|
||||
}
|
||||
|
||||
public function table(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
// ->headerActions([
|
||||
// Action::make()
|
||||
// ->label('New note')
|
||||
// ->icon('phosphor-plus')
|
||||
// ->action(function () {
|
||||
// UserNote::insert(['event_id' => $this->record->id, 'bookmaker_id' => auth()->user()->bookmaker_id, 'user_id' => auth()->user()->id]);
|
||||
// }),
|
||||
// ])
|
||||
->query(UserNote::query()->where('event_id', $this->record->id)->where('bookmaker_id', auth()->user()->bookmaker_id)->where('user_id', auth()->user()->id))
|
||||
->columns([
|
||||
TextColumn::make('message')->label('Notes'),
|
||||
])
|
||||
->filters([
|
||||
// ...
|
||||
])
|
||||
->recordActions([
|
||||
// ...
|
||||
])
|
||||
->toolbarActions([
|
||||
]);
|
||||
}
|
||||
|
||||
public function render(): View
|
||||
{
|
||||
return view('livewire.edit-user-note');
|
||||
}
|
||||
}
|
||||
+10
-5
@@ -28,10 +28,10 @@ class Event extends Model
|
||||
'away_id',
|
||||
];
|
||||
|
||||
// protected static function booted(): void
|
||||
// {
|
||||
// static::addGlobalScope(new SportScope);
|
||||
// }
|
||||
protected static function booted(): void
|
||||
{
|
||||
static::addGlobalScope(new SportScope);
|
||||
}
|
||||
|
||||
public function provider()
|
||||
{
|
||||
@@ -53,6 +53,11 @@ class Event extends Model
|
||||
return $this->belongsTo(Group::class);
|
||||
}
|
||||
|
||||
public function user_notes()
|
||||
{
|
||||
return $this->hasMany(UserNote::class, 'event_id', 'id');
|
||||
}
|
||||
|
||||
public function competition_group()
|
||||
{
|
||||
return $this->belongsTo(CompetitionGroup::class);
|
||||
@@ -140,7 +145,7 @@ class Event extends Model
|
||||
|
||||
public function event_user_star()
|
||||
{
|
||||
return $this->hasOne(EventUserStar::class, 'event_id', 'id')->where('user_id', auth()->user()->id);
|
||||
return $this->hasOne(EventUserStar::class, 'event_id', 'id');
|
||||
}
|
||||
|
||||
public function event_bookmaker()
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\Scopes\UserScope;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class EventUserStar extends Model
|
||||
@@ -10,4 +11,9 @@ class EventUserStar extends Model
|
||||
'event_id',
|
||||
'user_id',
|
||||
];
|
||||
|
||||
protected static function booted(): void
|
||||
{
|
||||
static::addGlobalScope(new UserScope);
|
||||
}
|
||||
}
|
||||
@@ -2,23 +2,36 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\Scopes\ClientScope;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class UserNote extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'user_messageid',
|
||||
'event_id',
|
||||
'bookmaker_id',
|
||||
'user_id',
|
||||
'client_id',
|
||||
'message',
|
||||
'deleted',
|
||||
];
|
||||
|
||||
protected static function booted(): void
|
||||
{
|
||||
static::addGlobalScope(new ClientScope);
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
public function client()
|
||||
{
|
||||
return $this->belongsTo(Client::class);
|
||||
}
|
||||
|
||||
public function bookmaker()
|
||||
{
|
||||
return $this->belongsTo(Bookmaker::class);
|
||||
|
||||
@@ -67,6 +67,7 @@ class AdminPanelProvider extends PanelProvider
|
||||
->viteTheme('resources/css/filament/admin/theme.css')
|
||||
->discoverResources(in: app_path('Filament/Resources'), for: 'App\Filament\Resources')
|
||||
->discoverPages(in: app_path('Filament/Pages'), for: 'App\Filament\Pages')
|
||||
->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\Filament\Widgets')
|
||||
->discoverClusters(in: app_path('Filament/Clusters'), for: 'App\\Filament\\Clusters')
|
||||
->pages([
|
||||
// Dashboard::class,
|
||||
|
||||
Generated
+47
-47
@@ -543,16 +543,16 @@
|
||||
},
|
||||
{
|
||||
"name": "brick/math",
|
||||
"version": "0.14.1",
|
||||
"version": "0.14.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/brick/math.git",
|
||||
"reference": "f05858549e5f9d7bb45875a75583240a38a281d0"
|
||||
"reference": "55c950aa71a2cabc1d8f2bec1f8a7020bd244aa2"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/brick/math/zipball/f05858549e5f9d7bb45875a75583240a38a281d0",
|
||||
"reference": "f05858549e5f9d7bb45875a75583240a38a281d0",
|
||||
"url": "https://api.github.com/repos/brick/math/zipball/55c950aa71a2cabc1d8f2bec1f8a7020bd244aa2",
|
||||
"reference": "55c950aa71a2cabc1d8f2bec1f8a7020bd244aa2",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -591,7 +591,7 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/brick/math/issues",
|
||||
"source": "https://github.com/brick/math/tree/0.14.1"
|
||||
"source": "https://github.com/brick/math/tree/0.14.2"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@@ -599,7 +599,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2025-11-24T14:40:29+00:00"
|
||||
"time": "2026-01-30T14:03:11+00:00"
|
||||
},
|
||||
{
|
||||
"name": "carbonphp/carbon-doctrine-types",
|
||||
@@ -1429,16 +1429,16 @@
|
||||
},
|
||||
{
|
||||
"name": "filament/actions",
|
||||
"version": "v4.6.2",
|
||||
"version": "v4.6.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/filamentphp/actions.git",
|
||||
"reference": "bb2306e893797b51f2b5debe6cf1aea03050bde0"
|
||||
"reference": "4a3896cd956fcb7d132a51453bc8110d47023433"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/filamentphp/actions/zipball/bb2306e893797b51f2b5debe6cf1aea03050bde0",
|
||||
"reference": "bb2306e893797b51f2b5debe6cf1aea03050bde0",
|
||||
"url": "https://api.github.com/repos/filamentphp/actions/zipball/4a3896cd956fcb7d132a51453bc8110d47023433",
|
||||
"reference": "4a3896cd956fcb7d132a51453bc8110d47023433",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1474,20 +1474,20 @@
|
||||
"issues": "https://github.com/filamentphp/filament/issues",
|
||||
"source": "https://github.com/filamentphp/filament"
|
||||
},
|
||||
"time": "2026-01-29T21:01:00+00:00"
|
||||
"time": "2026-01-30T12:51:27+00:00"
|
||||
},
|
||||
{
|
||||
"name": "filament/filament",
|
||||
"version": "v4.6.2",
|
||||
"version": "v4.6.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/filamentphp/panels.git",
|
||||
"reference": "11f5ae7226073100c6f135ebe95474d0f3af757c"
|
||||
"reference": "24aababf2777f82014887199f9cd029b5e6251d5"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/filamentphp/panels/zipball/11f5ae7226073100c6f135ebe95474d0f3af757c",
|
||||
"reference": "11f5ae7226073100c6f135ebe95474d0f3af757c",
|
||||
"url": "https://api.github.com/repos/filamentphp/panels/zipball/24aababf2777f82014887199f9cd029b5e6251d5",
|
||||
"reference": "24aababf2777f82014887199f9cd029b5e6251d5",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1531,20 +1531,20 @@
|
||||
"issues": "https://github.com/filamentphp/filament/issues",
|
||||
"source": "https://github.com/filamentphp/filament"
|
||||
},
|
||||
"time": "2026-01-29T20:54:01+00:00"
|
||||
"time": "2026-01-30T12:47:54+00:00"
|
||||
},
|
||||
{
|
||||
"name": "filament/forms",
|
||||
"version": "v4.6.2",
|
||||
"version": "v4.6.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/filamentphp/forms.git",
|
||||
"reference": "3e8a07534adda42e902f9e71aaf1c86600f21473"
|
||||
"reference": "137090f3d2b1dc6e4234ad2325c9acb34276d5b5"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/filamentphp/forms/zipball/3e8a07534adda42e902f9e71aaf1c86600f21473",
|
||||
"reference": "3e8a07534adda42e902f9e71aaf1c86600f21473",
|
||||
"url": "https://api.github.com/repos/filamentphp/forms/zipball/137090f3d2b1dc6e4234ad2325c9acb34276d5b5",
|
||||
"reference": "137090f3d2b1dc6e4234ad2325c9acb34276d5b5",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1581,11 +1581,11 @@
|
||||
"issues": "https://github.com/filamentphp/filament/issues",
|
||||
"source": "https://github.com/filamentphp/filament"
|
||||
},
|
||||
"time": "2026-01-29T21:01:38+00:00"
|
||||
"time": "2026-01-30T12:47:37+00:00"
|
||||
},
|
||||
{
|
||||
"name": "filament/infolists",
|
||||
"version": "v4.6.2",
|
||||
"version": "v4.6.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/filamentphp/infolists.git",
|
||||
@@ -1630,7 +1630,7 @@
|
||||
},
|
||||
{
|
||||
"name": "filament/notifications",
|
||||
"version": "v4.6.2",
|
||||
"version": "v4.6.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/filamentphp/notifications.git",
|
||||
@@ -1677,16 +1677,16 @@
|
||||
},
|
||||
{
|
||||
"name": "filament/query-builder",
|
||||
"version": "v4.6.2",
|
||||
"version": "v4.6.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/filamentphp/query-builder.git",
|
||||
"reference": "b5e0c22ac1d10c9c56ae344577d2a437d876f6ba"
|
||||
"reference": "132ad55f85eaa427bb786b4a8184ac6e24a7e676"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/filamentphp/query-builder/zipball/b5e0c22ac1d10c9c56ae344577d2a437d876f6ba",
|
||||
"reference": "b5e0c22ac1d10c9c56ae344577d2a437d876f6ba",
|
||||
"url": "https://api.github.com/repos/filamentphp/query-builder/zipball/132ad55f85eaa427bb786b4a8184ac6e24a7e676",
|
||||
"reference": "132ad55f85eaa427bb786b4a8184ac6e24a7e676",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1719,11 +1719,11 @@
|
||||
"issues": "https://github.com/filamentphp/filament/issues",
|
||||
"source": "https://github.com/filamentphp/filament"
|
||||
},
|
||||
"time": "2026-01-29T21:01:39+00:00"
|
||||
"time": "2026-01-30T12:51:18+00:00"
|
||||
},
|
||||
{
|
||||
"name": "filament/schemas",
|
||||
"version": "v4.6.2",
|
||||
"version": "v4.6.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/filamentphp/schemas.git",
|
||||
@@ -1768,7 +1768,7 @@
|
||||
},
|
||||
{
|
||||
"name": "filament/support",
|
||||
"version": "v4.6.2",
|
||||
"version": "v4.6.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/filamentphp/support.git",
|
||||
@@ -1826,16 +1826,16 @@
|
||||
},
|
||||
{
|
||||
"name": "filament/tables",
|
||||
"version": "v4.6.2",
|
||||
"version": "v4.6.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/filamentphp/tables.git",
|
||||
"reference": "6dd74c575e68c26553d373dcf2e5202fa4e7d713"
|
||||
"reference": "e3cb9c71e150a6a2b7e8601c363e7731ddfc9518"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/filamentphp/tables/zipball/6dd74c575e68c26553d373dcf2e5202fa4e7d713",
|
||||
"reference": "6dd74c575e68c26553d373dcf2e5202fa4e7d713",
|
||||
"url": "https://api.github.com/repos/filamentphp/tables/zipball/e3cb9c71e150a6a2b7e8601c363e7731ddfc9518",
|
||||
"reference": "e3cb9c71e150a6a2b7e8601c363e7731ddfc9518",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1868,11 +1868,11 @@
|
||||
"issues": "https://github.com/filamentphp/filament/issues",
|
||||
"source": "https://github.com/filamentphp/filament"
|
||||
},
|
||||
"time": "2026-01-29T21:01:20+00:00"
|
||||
"time": "2026-01-30T12:51:42+00:00"
|
||||
},
|
||||
{
|
||||
"name": "filament/widgets",
|
||||
"version": "v4.6.2",
|
||||
"version": "v4.6.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/filamentphp/widgets.git",
|
||||
@@ -5493,16 +5493,16 @@
|
||||
},
|
||||
{
|
||||
"name": "psy/psysh",
|
||||
"version": "v0.12.18",
|
||||
"version": "v0.12.19",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/bobthecow/psysh.git",
|
||||
"reference": "ddff0ac01beddc251786fe70367cd8bbdb258196"
|
||||
"reference": "a4f766e5c5b6773d8399711019bb7d90875a50ee"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/ddff0ac01beddc251786fe70367cd8bbdb258196",
|
||||
"reference": "ddff0ac01beddc251786fe70367cd8bbdb258196",
|
||||
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/a4f766e5c5b6773d8399711019bb7d90875a50ee",
|
||||
"reference": "a4f766e5c5b6773d8399711019bb7d90875a50ee",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -5566,9 +5566,9 @@
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/bobthecow/psysh/issues",
|
||||
"source": "https://github.com/bobthecow/psysh/tree/v0.12.18"
|
||||
"source": "https://github.com/bobthecow/psysh/tree/v0.12.19"
|
||||
},
|
||||
"time": "2025-12-17T14:35:46+00:00"
|
||||
"time": "2026-01-30T17:33:13+00:00"
|
||||
},
|
||||
{
|
||||
"name": "ralouphie/getallheaders",
|
||||
@@ -9479,7 +9479,7 @@
|
||||
},
|
||||
{
|
||||
"name": "filament/upgrade",
|
||||
"version": "v4.6.2",
|
||||
"version": "v4.6.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/filamentphp/upgrade.git",
|
||||
@@ -10971,11 +10971,11 @@
|
||||
},
|
||||
{
|
||||
"name": "phpstan/phpstan",
|
||||
"version": "2.1.37",
|
||||
"version": "2.1.38",
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/28cd424c5ea984128c95cfa7ea658808e8954e49",
|
||||
"reference": "28cd424c5ea984128c95cfa7ea658808e8954e49",
|
||||
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/dfaf1f530e1663aa167bc3e52197adb221582629",
|
||||
"reference": "dfaf1f530e1663aa167bc3e52197adb221582629",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -11020,7 +11020,7 @@
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2026-01-24T08:21:55+00:00"
|
||||
"time": "2026-01-30T17:12:46+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpunit/php-code-coverage",
|
||||
|
||||
@@ -16,6 +16,7 @@ return new class extends Migration
|
||||
$table->foreignId('event_id')->index()->constrained()->cascadeOnDelete()->references('id')->on('events');
|
||||
$table->integer('bookmaker_id')->default(0);
|
||||
$table->integer('user_id')->index()->references('id')->on('users');
|
||||
$table->integer('client_id')->default(0);
|
||||
$table->string('message');
|
||||
$table->integer('deleted')->default(0);
|
||||
$table->timestamps();
|
||||
|
||||
@@ -37,7 +37,7 @@ xmlns="http://www.w3.org/2000/svg">
|
||||
${p.outerHTML}${_}
|
||||
</g>
|
||||
</g>
|
||||
</svg>`;n(X)},o.readAsText(e)}),ng=e=>{let t;try{t=new ImageData(e.width,e.height)}catch{t=document.createElement("canvas").getContext("2d").createImageData(e.width,e.height)}return t.data.set(e.data),t},lg=()=>{let e={resize:c,filter:p},t=(d,m)=>(d.forEach(u=>{m=e[u.type](m,u.data)}),m),i=(d,m)=>{let u=d.transforms,g=null;if(u.forEach(f=>{f.type==="filter"&&(g=f)}),g){let f=null;u.forEach(h=>{h.type==="resize"&&(f=h)}),f&&(f.data.matrix=g.data,u=u.filter(h=>h.type!=="filter"))}m(t(u,d.imageData))};self.onmessage=d=>{i(d.data.message,m=>{self.postMessage({id:d.data.id,message:m},[m.data.buffer])})};let a=1,n=1,l=1;function o(d,m,u){let g=m[d]/255,f=m[d+1]/255,h=m[d+2]/255,I=m[d+3]/255,b=g*u[0]+f*u[1]+h*u[2]+I*u[3]+u[4],E=g*u[5]+f*u[6]+h*u[7]+I*u[8]+u[9],v=g*u[10]+f*u[11]+h*u[12]+I*u[13]+u[14],y=g*u[15]+f*u[16]+h*u[17]+I*u[18]+u[19],T=Math.max(0,b*y)+a*(1-y),_=Math.max(0,E*y)+n*(1-y),x=Math.max(0,v*y)+l*(1-y);m[d]=Math.max(0,Math.min(1,T))*255,m[d+1]=Math.max(0,Math.min(1,_))*255,m[d+2]=Math.max(0,Math.min(1,x))*255}let r=self.JSON.stringify([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]);function s(d){return self.JSON.stringify(d||[])===r}function p(d,m){if(!m||s(m))return d;let u=d.data,g=u.length,f=m[0],h=m[1],I=m[2],b=m[3],E=m[4],v=m[5],y=m[6],T=m[7],_=m[8],x=m[9],R=m[10],P=m[11],z=m[12],A=m[13],k=m[14],w=m[15],O=m[16],S=m[17],L=m[18],C=m[19],D=0,U=0,B=0,$=0,X=0,K=0,ce=0,V=0,H=0,Y=0,ie=0,ee=0;for(;D<g;D+=4)U=u[D]/255,B=u[D+1]/255,$=u[D+2]/255,X=u[D+3]/255,K=U*f+B*h+$*I+X*b+E,ce=U*v+B*y+$*T+X*_+x,V=U*R+B*P+$*z+X*A+k,H=U*w+B*O+$*S+X*L+C,Y=Math.max(0,K*H)+a*(1-H),ie=Math.max(0,ce*H)+n*(1-H),ee=Math.max(0,V*H)+l*(1-H),u[D]=Math.max(0,Math.min(1,Y))*255,u[D+1]=Math.max(0,Math.min(1,ie))*255,u[D+2]=Math.max(0,Math.min(1,ee))*255;return d}function c(d,m){let{mode:u="contain",upscale:g=!1,width:f,height:h,matrix:I}=m;if(I=!I||s(I)?null:I,!f&&!h)return p(d,I);if(f===null?f=h:h===null&&(h=f),u!=="force"){let A=f/d.width,k=h/d.height,w=1;if(u==="cover"?w=Math.max(A,k):u==="contain"&&(w=Math.min(A,k)),w>1&&g===!1)return p(d,I);f=d.width*w,h=d.height*w}let b=d.width,E=d.height,v=Math.round(f),y=Math.round(h),T=d.data,_=new Uint8ClampedArray(v*y*4),x=b/v,R=E/y,P=Math.ceil(x*.5),z=Math.ceil(R*.5);for(let A=0;A<y;A++)for(let k=0;k<v;k++){let w=(k+A*v)*4,O=0,S=0,L=0,C=0,D=0,U=0,B=0,$=(A+.5)*R;for(let X=Math.floor(A*R);X<(A+1)*R;X++){let K=Math.abs($-(X+.5))/z,ce=(k+.5)*x,V=K*K;for(let H=Math.floor(k*x);H<(k+1)*x;H++){let Y=Math.abs(ce-(H+.5))/P,ie=Math.sqrt(V+Y*Y);if(ie>=-1&&ie<=1&&(O=2*ie*ie*ie-3*ie*ie+1,O>0)){Y=4*(H+X*b);let ee=T[Y+3];B+=O*ee,L+=O,ee<255&&(O=O*ee/250),C+=O*T[Y],D+=O*T[Y+1],U+=O*T[Y+2],S+=O}}}_[w]=C/S,_[w+1]=D/S,_[w+2]=U/S,_[w+3]=B/L,I&&o(w,_,I)}return{data:_,width:v,height:y}}},og=(e,t)=>{if(e.getUint32(t+4,!1)!==1165519206)return;t+=4;let i=e.getUint16(t+=6,!1)===18761;t+=e.getUint32(t+4,i);let a=e.getUint16(t,i);t+=2;for(let n=0;n<a;n++)if(e.getUint16(t+n*12,i)===274)return e.setUint16(t+n*12+8,1,i),!0;return!1},rg=e=>{let t=new DataView(e);if(t.getUint16(0)!==65496)return null;let i=2,a,n,l=!1;for(;i<t.byteLength&&(a=t.getUint16(i,!1),n=t.getUint16(i+2,!1)+2,!(!(a>=65504&&a<=65519||a===65534)||(l||(l=og(t,i,n)),i+n>t.byteLength)));)i+=n;return e.slice(0,i)},sg=e=>new Promise(t=>{let i=new FileReader;i.onload=()=>t(rg(i.result)||null),i.readAsArrayBuffer(e.slice(0,256*1024))}),cg=()=>window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,dg=(e,t)=>{let i=cg();if(i){let a=new i;return a.append(e),a.getBlob(t)}return new Blob([e],{type:t})},pg=()=>Math.random().toString(36).substr(2,9),mg=e=>{let t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),i=URL.createObjectURL(t),a=new Worker(i),n=[];return{transfer:()=>{},post:(l,o,r)=>{let s=pg();n[s]=o,a.onmessage=p=>{let c=n[p.data.id];c&&(c(p.data.message),delete n[p.data.id])},a.postMessage({id:s,message:l},r)},terminate:()=>{a.terminate(),URL.revokeObjectURL(i)}}},ug=e=>new Promise((t,i)=>{let a=new Image;a.onload=()=>{t(a)},a.onerror=n=>{i(n)},a.src=e}),gg=e=>e.reduce((t,i)=>t.then(a=>i().then(Array.prototype.concat.bind(a))),Promise.resolve([])),fg=(e,t)=>new Promise(i=>{let a={width:e.width,height:e.height},n=e.getContext("2d"),l=t.sort(Ro).map(o=>()=>new Promise(r=>{xg[o[0]](n,a,o[1],r)&&r()}));gg(l).then(()=>i(e))}),Lt=(e,t)=>{e.beginPath(),e.lineCap=t["stroke-linecap"],e.lineJoin=t["stroke-linejoin"],e.lineWidth=t["stroke-width"],t["stroke-dasharray"].length&&e.setLineDash(t["stroke-dasharray"].split(",")),e.fillStyle=t.fill,e.strokeStyle=t.stroke,e.globalAlpha=t.opacity||1},Mt=e=>{e.fill(),e.stroke(),e.globalAlpha=1},hg=(e,t,i)=>{let a=wt(i,t),n=ct(i,t);return Lt(e,n),e.rect(a.x,a.y,a.width,a.height),Mt(e,n),!0},bg=(e,t,i)=>{let a=wt(i,t),n=ct(i,t);Lt(e,n);let l=a.x,o=a.y,r=a.width,s=a.height,p=.5522848,c=r/2*p,d=s/2*p,m=l+r,u=o+s,g=l+r/2,f=o+s/2;return e.moveTo(l,f),e.bezierCurveTo(l,f-d,g-c,o,g,o),e.bezierCurveTo(g+c,o,m,f-d,m,f),e.bezierCurveTo(m,f+d,g+c,u,g,u),e.bezierCurveTo(Line truncated
|
||||
</svg>`;n(X)},o.readAsText(e)}),ng=e=>{let t;try{t=new ImageData(e.width,e.height)}catch{t=document.createElement("canvas").getContext("2d").createImageData(e.width,e.height)}return t.data.set(e.data),t},lg=()=>{let e={resize:c,filter:p},t=(d,m)=>(d.forEach(u=>{m=e[u.type](m,u.data)}),m),i=(d,m)=>{let u=d.transforms,g=null;if(u.forEach(f=>{f.type==="filter"&&(g=f)}),g){let f=null;u.forEach(h=>{h.type==="resize"&&(f=h)}),f&&(f.data.matrix=g.data,u=u.filter(h=>h.type!=="filter"))}m(t(u,d.imageData))};self.onmessage=d=>{i(d.data.message,m=>{self.postMessage({id:d.data.id,message:m},[m.data.buffer])})};let a=1,n=1,l=1;function o(d,m,u){let g=m[d]/255,f=m[d+1]/255,h=m[d+2]/255,I=m[d+3]/255,b=g*u[0]+f*u[1]+h*u[2]+I*u[3]+u[4],E=g*u[5]+f*u[6]+h*u[7]+I*u[8]+u[9],v=g*u[10]+f*u[11]+h*u[12]+I*u[13]+u[14],y=g*u[15]+f*u[16]+h*u[17]+I*u[18]+u[19],T=Math.max(0,b*y)+a*(1-y),_=Math.max(0,E*y)+n*(1-y),x=Math.max(0,v*y)+l*(1-y);m[d]=Math.max(0,Math.min(1,T))*255,m[d+1]=Math.max(0,Math.min(1,_))*255,m[d+2]=Math.max(0,Math.min(1,x))*255}let r=self.JSON.stringify([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]);function s(d){return self.JSON.stringify(d||[])===r}function p(d,m){if(!m||s(m))return d;let u=d.data,g=u.length,f=m[0],h=m[1],I=m[2],b=m[3],E=m[4],v=m[5],y=m[6],T=m[7],_=m[8],x=m[9],R=m[10],P=m[11],z=m[12],A=m[13],k=m[14],w=m[15],O=m[16],S=m[17],L=m[18],C=m[19],D=0,U=0,B=0,$=0,X=0,K=0,ce=0,V=0,H=0,Y=0,ie=0,ee=0;for(;D<g;D+=4)U=u[D]/255,B=u[D+1]/255,$=u[D+2]/255,X=u[D+3]/255,K=U*f+B*h+$*I+X*b+E,ce=U*v+B*y+$*T+X*_+x,V=U*R+B*P+$*z+X*A+k,H=U*w+B*O+$*S+X*L+C,Y=Math.max(0,K*H)+a*(1-H),ie=Math.max(0,ce*H)+n*(1-H),ee=Math.max(0,V*H)+l*(1-H),u[D]=Math.max(0,Math.min(1,Y))*255,u[D+1]=Math.max(0,Math.min(1,ie))*255,u[D+2]=Math.max(0,Math.min(1,ee))*255;return d}function c(d,m){let{mode:u="contain",upscale:g=!1,width:f,height:h,matrix:I}=m;if(I=!I||s(I)?null:I,!f&&!h)return p(d,I);if(f===null?f=h:h===null&&(h=f),u!=="force"){let A=f/d.width,k=h/d.height,w=1;if(u==="cover"?w=Math.max(A,k):u==="contain"&&(w=Math.min(A,k)),w>1&&g===!1)return p(d,I);f=d.width*w,h=d.height*w}let b=d.width,E=d.height,v=Math.round(f),y=Math.round(h),T=d.data,_=new Uint8ClampedArray(v*y*4),x=b/v,R=E/y,P=Math.ceil(x*.5),z=Math.ceil(R*.5);for(let A=0;A<y;A++)for(let k=0;k<v;k++){let w=(k+A*v)*4,O=0,S=0,L=0,C=0,D=0,U=0,B=0,$=(A+.5)*R;for(let X=Math.floor(A*R);X<(A+1)*R;X++){let K=Math.abs($-(X+.5))/z,ce=(k+.5)*x,V=K*K;for(let H=Math.floor(k*x);H<(k+1)*x;H++){let Y=Math.abs(ce-(H+.5))/P,ie=Math.sqrt(V+Y*Y);if(ie>=-1&&ie<=1&&(O=2*ie*ie*ie-3*ie*ie+1,O>0)){Y=4*(H+X*b);let ee=T[Y+3];B+=O*ee,L+=O,ee<255&&(O=O*ee/250),C+=O*T[Y],D+=O*T[Y+1],U+=O*T[Y+2],S+=O}}}_[w]=C/S,_[w+1]=D/S,_[w+2]=U/S,_[w+3]=B/L,I&&o(w,_,I)}return{data:_,width:v,height:y}}},og=(e,t)=>{if(e.getUint32(t+4,!1)!==1165519206)return;t+=4;let i=e.getUint16(t+=6,!1)===18761;t+=e.getUint32(t+4,i);let a=e.getUint16(t,i);t+=2;for(let n=0;n<a;n++)if(e.getUint16(t+n*12,i)===274)return e.setUint16(t+n*12+8,1,i),!0;return!1},rg=e=>{let t=new DataView(e);if(t.getUint16(0)!==65496)return null;let i=2,a,n,l=!1;for(;i<t.byteLength&&(a=t.getUint16(i,!1),n=t.getUint16(i+2,!1)+2,!(!(a>=65504&&a<=65519||a===65534)||(l||(l=og(t,i,n)),i+n>t.byteLength)));)i+=n;return e.slice(0,i)},sg=e=>new Promise(t=>{let i=new FileReader;i.onload=()=>t(rg(i.result)||null),i.readAsArrayBuffer(e.slice(0,256*1024))}),cg=()=>window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,dg=(e,t)=>{let i=cg();if(i){let a=new i;return a.append(e),a.getBlob(t)}return new Blob([e],{type:t})},pg=()=>Math.random().toString(36).substr(2,9),mg=e=>{let t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),i=URL.createObjectURL(t),a=new Worker(i),n=[];return{transfer:()=>{},post:(l,o,r)=>{let s=pg();n[s]=o,a.onmessage=p=>{let c=n[p.data.id];c&&(c(p.data.message),delete n[p.data.id])},a.postMessage({id:s,message:l},r)},terminate:()=>{a.terminate(),URL.revokeObjectURL(i)}}},ug=e=>new Promise((t,i)=>{let a=new Image;a.onload=()=>{t(a)},a.onerror=n=>{i(n)},a.src=e}),gg=e=>e.reduce((t,i)=>t.then(a=>i().then(Array.prototype.concat.bind(a))),Promise.resolve([])),fg=(e,t)=>new Promise(i=>{let a={width:e.width,height:e.height},n=e.getContext("2d"),l=t.sort(Ro).map(o=>()=>new Promise(r=>{xg[o[0]](n,a,o[1],r)&&r()}));gg(l).then(()=>i(e))}),Lt=(e,t)=>{e.beginPath(),e.lineCap=t["stroke-linecap"],e.lineJoin=t["stroke-linejoin"],e.lineWidth=t["stroke-width"],t["stroke-dasharray"].length&&e.setLineDash(t["stroke-dasharray"].split(",")),e.fillStyle=t.fill,e.strokeStyle=t.stroke,e.globalAlpha=t.opacity||1},Mt=e=>{e.fill(),e.stroke(),e.globalAlpha=1},hg=(e,t,i)=>{let a=wt(i,t),n=ct(i,t);return Lt(e,n),e.rect(a.x,a.y,a.width,a.height),Mt(e,n),!0},bg=(e,t,i)=>{let a=wt(i,t),n=ct(i,t);Lt(e,n);let l=a.x,o=a.y,r=a.width,s=a.height,p=.5522848,c=r/2*p,d=s/2*p,m=l+r,u=o+s,g=l+r/2,f=o+s/2;return e.moveTo(l,f),e.bezierCurveTo(l,f-d,g-c,o,g,o),e.bezierCurveTo(g+c,o,m,f-d,m,f),e.bezierCurveTo(m,f+d,g+c,u,g,u),e.bezierCurveTo(Line truncated
|
||||
/*! Bundled license information:
|
||||
|
||||
filepond/dist/filepond.esm.js:
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
<div>
|
||||
@livewire('edit-user-note', ['record' => $record])
|
||||
</div>
|
||||
@@ -1,6 +1,6 @@
|
||||
<div x-data="{ open: false }">
|
||||
|
||||
<x-filament::button size="xs" @click="open = ! open" outlined color="gray" class="my-1">
|
||||
<x-filament::button size="xs" @click="open=!open" outlined color="gray" class="my-1">
|
||||
{{ $record->id }}
|
||||
</x-filament::button>
|
||||
|
||||
|
||||
+32
-32
@@ -12,125 +12,125 @@
|
||||
@switch ($getBettype())
|
||||
@case ('odds_tq')
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->htq,
|
||||
'alarm' => $client->htq > $partner->htq ? 4 : 0,
|
||||
'odd' => $client->htq ?? 0,
|
||||
'alarm' => $partner?->htq != 0 && htq > $partner?->htq ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->atq,
|
||||
'alarm' => $client->atq > $partner->atq ? 4 : 0,
|
||||
'alarm' => $partner?->atq != 0 && atq > $partner?->atq ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@break;
|
||||
@case ('odds_2ways')
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->h2w,
|
||||
'alarm' => $client->h2w > $partner->h2w ? 4 : 0,
|
||||
'alarm' => $partner?->h2w != 0 && h2w > $partner?->h2w ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->a2w,
|
||||
'alarm' => $client->a2w > $partner->a2w ? 4 : 0,
|
||||
'alarm' => $partner?->a2w != 0 && a2w > $partner?->a2w ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@break;
|
||||
@case ('odds_2ways_s1')
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->h2w,
|
||||
'alarm' => $client->h2w > $partner->h2w ? 4 : 0,
|
||||
'alarm' => $partner?->h2w != 0 && h2w > $partner?->h2w ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->a2w,
|
||||
'alarm' => $client->a2w > $partner->a2w ? 4 : 0,
|
||||
'alarm' => $partner?->a2w != 0 && a2w > $partner?->a2w ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@break;
|
||||
@case ('odds_3ways')
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->h3w,
|
||||
'alarm' => $client->h3w > $partner->h3w ? 4 : 0,
|
||||
'alarm' => $partner?->h3w != 0 && $client->h3w > $partner?->h3w ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->d3w,
|
||||
'alarm' => $client->d3w > $partner->d3w ? 4 : 0,
|
||||
'alarm' => $partner?->a3w != 0 && d3w > $partner?->d3w ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->a3w,
|
||||
'alarm' => $client->a3w > $partner->a3w ? 4 : 0,
|
||||
'alarm' => $partner?->a3w != 0 && a3w > $partner?->a3w ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@break;
|
||||
@case ('odds_3ways_ht')
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->h3w,
|
||||
'alarm' => $client->h3w > $partner->h3w ? 4 : 0,
|
||||
'alarm' => $partner?->h3w != 0 && h3w > $partner?->h3w ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->d3w,
|
||||
'alarm' => $client->d3w > $partner->d3w ? 4 : 0,
|
||||
'alarm' => $partner?->d3w != 0 && d3w > $partner?->d3w ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->a3w,
|
||||
'alarm' => $client->a3w > $partner->a3w ? 4 : 0,
|
||||
'alarm' => $partner?->a3w != 0 && a3w > $partner?->a3w ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@break;
|
||||
@case ('odds_dc')
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->dc1x,
|
||||
'alarm' => $client->dc1x > $partner->dc1x ? 4 : 0,
|
||||
'alarm' => $partner?->dc1x != 0 && dc1x > $partner?->dc1x ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->dc12,
|
||||
'alarm' => $client->dc12 > $partner->dc12 ? 4 : 0,
|
||||
'alarm' => $partner?->dc12 != 0 && dc12 > $partner?->dc12 ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->dcx2,
|
||||
'alarm' => $client->dcx2 > $partner->dcx2 ? 4 : 0,
|
||||
'alarm' => $partner?->dcx2 != 0 && dcx2 > $partner?->dcx2 ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@break;
|
||||
@case ('odds_dnb')
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->dnb1,
|
||||
'alarm' => $client->dnb1 > $partner->dnb1 ? 4 : 0,
|
||||
'alarm' => $partner?->dnb1 != 0 && dnb1 > $partner?->dnb1 ? 4 : 0,
|
||||
'alarm' => 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->dnb2,
|
||||
'alarm' => $client->dnb2 > $partner->dnb2 ? 4 : 0,
|
||||
'alarm' => $partner?->dnb2 != 0 && dnb2 > $partner?->dnb2 ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@break;
|
||||
@case ('odds_ggng')
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->gg,
|
||||
'alarm' => $client->gg > $partner->gg ? 4 : 0,
|
||||
'alarm' => $partner?->gg != 0 && gg > $partner?->gg ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->ng,
|
||||
'alarm' => $client->ng > $partner->ng ? 4 : 0,
|
||||
'alarm' => $partner?->ng != 0 && ng > $partner?->ng ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@break;
|
||||
@case ('odds_points')
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->home,
|
||||
'alarm' => $client->home > $partner->home ? 4 : 0,
|
||||
'alarm' => $partner?->home != 0 && home > $partner?->home ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->away,
|
||||
'alarm' => $client->away > $partner->away ? 4 : 0,
|
||||
'alarm' => $partner?->away != 0 && away > $partner?->away ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
@@ -142,12 +142,12 @@
|
||||
@case ('odds_points_ht')
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->home,
|
||||
'alarm' => $client->home > $partner->home ? 4 : 0,
|
||||
'alarm' => $partner?->home != 0 && home > $partner?->home ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->away,
|
||||
'alarm' => $client->away > $partner->away ? 4 : 0,
|
||||
'alarm' => $partner?->away != 0 && away > $partner?->away ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
@@ -159,12 +159,12 @@
|
||||
@case ('odds_points_q1')
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->home,
|
||||
'alarm' => $client->home > $partner->home ? 4 : 0,
|
||||
'alarm' => $partner?->home != 0 && home > $partner?->home ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->away,
|
||||
'alarm' => $client->away > $partner->away ? 4 : 0,
|
||||
'alarm' => $partner?->away != 0 && away > $partner?->away ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
@@ -176,12 +176,12 @@
|
||||
@case ('odds_totals')
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->over,
|
||||
'alarm' => $client->over > $partner->over ? 4 : 0,
|
||||
'alarm' => $partner?->over != 0 && over > $partner?->over ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->under,
|
||||
'alarm' => $client->under > $partner->under ? 4 : 0,
|
||||
'alarm' => $partner?->under != 0 && under > $partner?->under ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
@@ -193,12 +193,12 @@
|
||||
@case ('odds_totals_ht')
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->over,
|
||||
'alarm' => $client->over > $partner->over ? 4 : 0,
|
||||
'alarm' => $partner?->over != 0 && over > $partner?->over ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->under,
|
||||
'alarm' => $client->under > $partner->under ? 4 : 0,
|
||||
'alarm' => $partner?->under != 0 && under > $partner?->under ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
@@ -210,12 +210,12 @@
|
||||
@case ('odds_totals_q1')
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->over,
|
||||
'alarm' => $client->over > $partner->over ? 4 : 0,
|
||||
'alarm' => $partner?->over != 0 && over > $partner?->over ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
'odd' => $client->under,
|
||||
'alarm' => $client->under > $partner->under ? 4 : 0,
|
||||
'alarm' => $partner?->under != 0 && under > $partner?->under ? 4 : 0,
|
||||
'd' => 2,
|
||||
])
|
||||
@include('filament.tables.columns.multiline.odd-compare', [
|
||||
|
||||
@@ -28,4 +28,4 @@
|
||||
{{ number_format($odd, $d) }}
|
||||
</x-alarm-neutral>
|
||||
@break
|
||||
@endswitch
|
||||
@endswitch
|
||||
@@ -9,7 +9,7 @@
|
||||
<p x-html="pop"></p>
|
||||
</template>
|
||||
|
||||
<x-filament::icon-button icon="phosphor-chat-centered-text" color="gray" size="sm"
|
||||
<x-filament::icon-button icon="phosphor-chat-text" color="gray" size="md"
|
||||
x-tooltip.html="{ content: () =>
|
||||
$refs.template.innerHTML,
|
||||
placement: 'auto',
|
||||
@@ -25,4 +25,5 @@
|
||||
},
|
||||
}" />
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@@ -1,8 +0,0 @@
|
||||
<div class="flex flex-col gap-10">
|
||||
<div>
|
||||
{{ $this->table }}
|
||||
</div>
|
||||
<div>
|
||||
{{ $this->form }}
|
||||
</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user