Modified events with sport-id and match_id, same for players
This commit is contained in:
1 parent
1c4480b014
commit
9978b0f76f
12 files changed
+205
-152
No files matched your search
+1
-1
@@ -12,7 +12,7 @@ class StatistikoEventsForm
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
DateTimePicker::make('starttime'),
|
||||
DateTimePicker::make('starttime')->native(false),
|
||||
TextInput::make('season'),
|
||||
TextInput::make('gls_h'),
|
||||
TextInput::make('gls_a'),
|
||||
|
||||
+1
-6
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Filament\Clusters\StaticData\Resources\StatistikoImports\Schemas;
|
||||
|
||||
use App\Models\Sport;
|
||||
use Filament\Forms\Components\FileUpload;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Schemas\Components\Icon;
|
||||
@@ -14,15 +13,11 @@ class StatistikoImportForm
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
Select::make('sport_id')
|
||||
->required()
|
||||
->label('Sport')
|
||||
->options(fn () => Sport::query()->where('is_active', 1)->pluck('name', 'id')),
|
||||
Select::make('data_type')
|
||||
->required()
|
||||
->allowHtml()
|
||||
->options([
|
||||
'personal' => '<span class="text-blue-500">Personal detail player</span>',
|
||||
'personal' => '<span class="text-blue-500">Personals</span>',
|
||||
'events' => '<span class="text-green-500">Events</span>',
|
||||
'fixtures' => '<span class="text-orange-500">Fixtures</span>',
|
||||
'player' => '<span class="text-pink-600">Player</span>',
|
||||
|
||||
+2
-7
@@ -22,17 +22,12 @@ class StatistikoImportsTable
|
||||
return $table
|
||||
->striped()
|
||||
->columns([
|
||||
IconColumn::make('sport.icon')
|
||||
->label('Sport')
|
||||
->icon(fn ($record) => $record->sport->icon)
|
||||
->tooltip(fn ($record) => $record->id)
|
||||
->visibleFrom('lg'),
|
||||
SelectColumn::make('data_type')
|
||||
->native(false)
|
||||
->width('2rem')
|
||||
->allowOptionsHtml()
|
||||
->options([
|
||||
'personal' => '<span class="text-blue-500">Personal details</span>',
|
||||
'personal' => '<span class="text-blue-500">Personals</span>',
|
||||
'events' => '<span class="text-green-500">Events</span>',
|
||||
'fixtures' => '<span class="text-orange-500">Fixtures</span>',
|
||||
'player' => '<span class="text-amber-500">Player</span>',
|
||||
@@ -41,7 +36,7 @@ class StatistikoImportsTable
|
||||
->searchable()
|
||||
->label('Name'),
|
||||
IconColumn::make('has_run')
|
||||
->label('Import')
|
||||
->label('Imported')
|
||||
->alignCenter()
|
||||
->boolean()
|
||||
->falseColor('gray'),
|
||||
|
||||
Reference in new issue
Block a user