cleanup comparatore
This commit is contained in:
1 parent
2052ccdd77
commit
adaec7b3dc
21 files changed
+98
-205
No files matched your search
@@ -14,6 +14,7 @@ class BettypesTable
|
||||
public static function configure(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->striped()
|
||||
->columns([
|
||||
TextColumn::make('bettype_id')
|
||||
->width('1rem')
|
||||
|
||||
@@ -15,6 +15,7 @@ class BookmakersTable
|
||||
public static function configure(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->striped()
|
||||
->columns([
|
||||
TextColumn::make('name')
|
||||
->searchable(),
|
||||
|
||||
@@ -15,6 +15,7 @@ class ClientsTable
|
||||
public static function configure(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->striped()
|
||||
->columns([
|
||||
TextColumn::make('name'),
|
||||
TextColumn::make('bookmaker')
|
||||
|
||||
@@ -56,6 +56,7 @@ class CountryResource extends Resource
|
||||
public static function table(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->striped()
|
||||
->recordTitleAttribute('name')
|
||||
->columns([
|
||||
TextColumn::make('id')->searchable(),
|
||||
|
||||
@@ -62,7 +62,9 @@ class EventResource extends Resource
|
||||
|
||||
public static function getEloquentQuery(): Builder
|
||||
{
|
||||
return parent::getEloquentQuery()->withoutGlobalScopes()->with('odds_3way');
|
||||
// return parent::getEloquentQuery()->withoutGlobalScopes()->with('odds_3way')->where('starttime', '>', Carbon::now());
|
||||
return parent::getEloquentQuery()
|
||||
->where('starttime', '>', Carbon::now())
|
||||
->where('sport_id', auth()->user()->sport_id)
|
||||
->withoutGlobalScopes()->with('odds_3way');
|
||||
}
|
||||
}
|
||||
@@ -19,6 +19,7 @@ class EventsTable
|
||||
{
|
||||
return $table
|
||||
->poll('10s')
|
||||
->striped()
|
||||
->columns([
|
||||
IconColumn::make('sport.icon')
|
||||
->label('')
|
||||
|
||||
@@ -11,6 +11,7 @@ class ProvidersTable
|
||||
public static function configure(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->striped()
|
||||
->columns([
|
||||
TextColumn::make('id'),
|
||||
TextColumn::make('name'),
|
||||
|
||||
@@ -44,6 +44,7 @@ class SportResource extends Resource
|
||||
public static function table(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->striped()
|
||||
->columns([
|
||||
IconColumn::make('icon')
|
||||
->label('')
|
||||
|
||||
@@ -14,6 +14,7 @@ class SupervisorsTable
|
||||
public static function configure(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->striped()
|
||||
->columns([
|
||||
TextColumn::make('id')->badge(),
|
||||
TextColumn::make('name')->searchable(),
|
||||
|
||||
Reference in new issue
Block a user