wip
This commit is contained in:
1 parent
f664e42572
commit
4f34fbd87d
4 files changed
+10
-1
No files matched your search
+8
@@ -15,6 +15,14 @@ class ListStatistikoDetails extends ListRecords
|
|||||||
protected function getHeaderActions(): array
|
protected function getHeaderActions(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
Action::make('is_active')
|
||||||
|
->label('Disable All')
|
||||||
|
->icon('phosphor-pause')
|
||||||
|
->requiresConfirmation()
|
||||||
|
->color('gray')
|
||||||
|
->action(function () {
|
||||||
|
StatistikoDetail::query()->update(['is_active' => 0]);
|
||||||
|
}),
|
||||||
Action::make('truncate')
|
Action::make('truncate')
|
||||||
->icon('phosphor-trash')
|
->icon('phosphor-trash')
|
||||||
->requiresConfirmation()
|
->requiresConfirmation()
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ class ImportDetails
|
|||||||
'position' => $row[7],
|
'position' => $row[7],
|
||||||
'preferred_foot' => $row[8],
|
'preferred_foot' => $row[8],
|
||||||
'last_update' => Carbon::parse($row[9])->format('Y-m-d H:i:s'),
|
'last_update' => Carbon::parse($row[9])->format('Y-m-d H:i:s'),
|
||||||
|
'is_active' => 1,
|
||||||
'created_at' => $now,
|
'created_at' => $now,
|
||||||
'updated_at' => $now,
|
'updated_at' => $now,
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ class StatistikoDetail extends Model
|
|||||||
'position',
|
'position',
|
||||||
'preferred_foot',
|
'preferred_foot',
|
||||||
'last_update',
|
'last_update',
|
||||||
|
'is_active',
|
||||||
'created_at',
|
'created_at',
|
||||||
'updated_at',
|
'updated_at',
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ return new class extends Migration
|
|||||||
Schema::create('details', function (Blueprint $collection) {
|
Schema::create('details', function (Blueprint $collection) {
|
||||||
$collection->unique('ss_player_id');
|
$collection->unique('ss_player_id');
|
||||||
$collection->index('ss_team_id');
|
$collection->index('ss_team_id');
|
||||||
$collection->index('tx_team_id');
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user