wip
This commit is contained in:
1 parent
4b93848164
commit
20e93ba014
4 files changed
+62
-14
No files matched your search
+21
-3
@@ -2,15 +2,33 @@
|
||||
|
||||
namespace App\Filament\Exports;
|
||||
|
||||
use App\Models\PlayerHistory;
|
||||
use App\Models\StatistikoPlayer;
|
||||
use Filament\Actions\Exports\ExportColumn;
|
||||
use Filament\Actions\Exports\Exporter;
|
||||
use Filament\Actions\Exports\Models\Export;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Illuminate\Support\Number;
|
||||
|
||||
class PlayerHistoryExporter extends Exporter
|
||||
class StatistikoPlayerExporter extends Exporter
|
||||
{
|
||||
protected static ?string $model = PlayerHistory::class;
|
||||
protected static ?string $model = StatistikoPlayer::class;
|
||||
|
||||
public static function getOptionsFormComponents(): array
|
||||
{
|
||||
return [
|
||||
Select::make('limit')
|
||||
->label('Pakets for export')
|
||||
->options([
|
||||
'1' => '0 - 200k',
|
||||
'2' => '200k - 400k',
|
||||
'3' => '400k - 600k',
|
||||
'4' => '600k - 800k',
|
||||
'5' => '800k - 1000k',
|
||||
])
|
||||
->default('all')
|
||||
->required(),
|
||||
];
|
||||
}
|
||||
|
||||
public static function getColumns(): array
|
||||
{
|
||||
Reference in new issue
Block a user