wip
This commit is contained in:
1 parent
eb884603d9
commit
0518e9563f
15 files changed
+108
-37
No files matched your search
+31
@@ -6,7 +6,10 @@ use App\Filament\Clusters\StaticData\Resources\StatistikoPlayers\StatistikoPlaye
|
||||
use App\Models\StatistikoPlayer;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Actions\CreateAction;
|
||||
use Filament\Infolists\Components\TextEntry;
|
||||
use Filament\Resources\Pages\ListRecords;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\Contracts\View\View;
|
||||
|
||||
class ListStatistikoPlayers extends ListRecords
|
||||
{
|
||||
@@ -15,6 +18,34 @@ class ListStatistikoPlayers extends ListRecords
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
Action::make('missing')
|
||||
->modalHeading('Missing Player')
|
||||
->icon('phosphor-magnifying-glass')
|
||||
// ->action(fn(StatistikoPlayer $record) => StatistikoPlayer::doesntHave('details')->get())
|
||||
// ->modalContent(fn($record = StatistikoPlayer::doesntHave('details')->get()): View => view(
|
||||
// 'filament.pages.list-missing-player',
|
||||
// ['record' => $record],
|
||||
// ))
|
||||
// ->action(fn(Contract $record) => $record = StatistikoPlayer::doesntHave('details')->get())
|
||||
// ->action(fn() => StatistikoPlayer::doesntHave('details')->get())
|
||||
// ->modalContent(view('filament.pages.list-missing-player'))
|
||||
// ->modalContent(fn(Contract $record): View => view(
|
||||
// 'filament.pages.list-missing-player',
|
||||
// ['record' => $record],
|
||||
// ))
|
||||
->color('gray'),
|
||||
Action::make('double')
|
||||
->icon('phosphor-magnifying-glass')
|
||||
->color('gray')
|
||||
->schema([
|
||||
TextEntry::make('created_at')
|
||||
->dateTime(),
|
||||
TextEntry::make('updated_at')
|
||||
->dateTime(),
|
||||
])
|
||||
->action(function () {
|
||||
// StatistikoPlayer::truncate();
|
||||
}),
|
||||
Action::make('truncate')
|
||||
->icon('phosphor-trash')
|
||||
->requiresConfirmation()
|
||||
|
||||
Reference in new issue
Block a user