comparatore bettypes wip

This commit is contained in:
salam committed 2026-01-09 19:36:55 +01:00
1 parent b39196c9eb
commit ebe5276fc4
5 files changed
+9 -11

No files matched your search

@@ -57,6 +57,7 @@ class EventsTable
public static function load_bettype_settings()
{
$res = BettypeUser::with('multiline_setting')->where('is_active', 1)->get();
foreach ($res as $value) {
self::$bettype_settings[] = $value->multiline_setting->table;
}
@@ -188,7 +189,7 @@ class EventsTable
->filters([
Filter::make('events')
->schema([
Select::make('country_id')
Select::make(name: 'country_id')
->placeholder('Country')
->columnSpan(2)
->hiddenLabel()
@@ -235,16 +236,16 @@ class EventsTable
->hiddenLabel()
->label('')
->live(),
Action::make('reset')
Action::make('resetAction')
->hiddenLabel()
->color('gray')
->color('primary')
->outlined()
->keyBindings(['esc', 'escape'])
->icon('phosphor-x')
->action(function ($livewire) {
$livewire->resetTableFiltersForm(); // Clears all filters
$livewire->tableSearch = ''; // Clears the main search bar
}),
])
->query(function (Builder $query, array $data): Builder {
return $query
@@ -278,7 +279,7 @@ class EventsTable
}
);
})
->columns(10)->columnSpan(10),
->columns(12)->columnSpan(12),
], layout: FiltersLayout::AboveContent)
->filtersFormColumns(6)
->deferFilters(false)
+1 -1
View File
@@ -18,7 +18,7 @@ class BettypeToggle extends Component
{
$this->multilines = [];
$res = BettypeUser::with('multiline_setting')->orderBy('multiline_setting_id')->get();
$res = BettypeUser::with('multiline_setting')->get();
foreach ($res as $set) {
$this->multilines[] = [
+1 -1
View File
@@ -40,7 +40,7 @@ class Event extends Model
public function sport()
{
return $this->belongsTo(Sport::class);
return $this->belongsTo(Sport::class)->where('is_active', 1);
}
public function country()