mapping provider menu wip
This commit is contained in:
1 parent
ed54d9f8e4
commit
0c35fa0ebc
9 files changed
+55
-21
No files matched your search
@@ -5,6 +5,7 @@ namespace App\Filament\Resources\Clients\Tables;
|
||||
use App\Actions\AlarmGenerator;
|
||||
use App\Actions\MultilineGenerator;
|
||||
use App\Models\Bookmaker;
|
||||
use App\Models\Provider;
|
||||
use App\Models\Sport;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Actions\EditAction;
|
||||
@@ -20,20 +21,21 @@ class ClientsTable
|
||||
->columns([
|
||||
TextColumn::make('name'),
|
||||
TextColumn::make('bookmaker')
|
||||
->wrap()
|
||||
->badge()
|
||||
->formatStateUsing(fn (string $state): string => Bookmaker::where('id', $state)->pluck('name')->first()),
|
||||
TextColumn::make('provider')
|
||||
->badge()
|
||||
->wrap()
|
||||
->color('success')
|
||||
->formatStateUsing(fn (string $state): string => Provider::where('id', $state)->pluck('name')->first()),
|
||||
TextColumn::make('sport')
|
||||
->badge()
|
||||
->wrap()
|
||||
->color('warning')
|
||||
->formatStateUsing(fn (string $state): string => Sport::where('id', $state)->pluck('name')->first()),
|
||||
TextColumn::make('created_at')
|
||||
->dateTime()
|
||||
->sortable()
|
||||
->toggleable(isToggledHiddenByDefault: true),
|
||||
TextColumn::make('updated_at')
|
||||
->dateTime()
|
||||
->sortable()
|
||||
->toggleable(isToggledHiddenByDefault: true),
|
||||
TextColumn::make('created_at')->dateTime(),
|
||||
TextColumn::make('updated_at')->dateTime(),
|
||||
])
|
||||
->recordActions([
|
||||
Action::make('multiline')
|
||||
|
||||
Reference in new issue
Block a user