bookmaker logo svg wip
This commit is contained in:
1 parent
399b9d43a7
commit
ceb59c940a
79 files changed
+641
-155
No files matched your search
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\Bookmakers\Tables;
|
||||
|
||||
use Filament\Actions\BulkActionGroup;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
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;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
class BookmakersTable
|
||||
{
|
||||
public static function configure(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->columns([
|
||||
TextColumn::make('name')
|
||||
->searchable(),
|
||||
IconColumn::make('icon')
|
||||
->size('2xl')
|
||||
->icon(function ($record): string {
|
||||
return 'bkm-'.$record->icon;
|
||||
}),
|
||||
ImageColumn::make('image'),
|
||||
TextColumn::make('baid')
|
||||
->numeric()
|
||||
->sortable(),
|
||||
TextColumn::make('txid')
|
||||
->numeric()
|
||||
->sortable(),
|
||||
ToggleColumn::make('txso')->offColor('gray'),
|
||||
ToggleColumn::make('txot')->offColor('gray'),
|
||||
ToggleColumn::make('betsapi')->offColor('gray'),
|
||||
ToggleColumn::make('direct')->offColor('gray'),
|
||||
ToggleColumn::make('is_active')->offColor('gray'),
|
||||
])
|
||||
->filters([
|
||||
TernaryFilter::make('txso'),
|
||||
TernaryFilter::make('txot'),
|
||||
TernaryFilter::make('betsapi'),
|
||||
TernaryFilter::make('direct'),
|
||||
TernaryFilter::make('is_active'),
|
||||
])
|
||||
->recordActions([
|
||||
EditAction::make(),
|
||||
])
|
||||
->toolbarActions([
|
||||
BulkActionGroup::make([
|
||||
DeleteBulkAction::make(),
|
||||
]),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user