wip
This commit is contained in:
1 parent
356dabb0c1
commit
8b67b7ce9e
3 files changed
+4
-5
No files matched your search
+2
-2
@@ -89,14 +89,14 @@ class CompetitionGroupsTable
|
||||
])
|
||||
->headerActions([
|
||||
ExportAction::make()
|
||||
->modalHeading('Download Groups')
|
||||
->modalHeading('Download Tournaments')
|
||||
->label('Export')
|
||||
->icon('phosphor-download')
|
||||
->modalDescription('This will download the TxOdds tournaments with "sport_id" and "country_id" for the sport selected.')
|
||||
->modalIcon('phosphor-microsoft-excel-logo')
|
||||
->exporter(CompetitionGroupExporter::class)
|
||||
->columnMapping(false)
|
||||
->modifyQueryUsing(fn (Builder $query, Get $get) => $query->where('spoirt_id', $get('sport_id')))
|
||||
->modifyQueryUsing(fn (Builder $query, Get $get) => $query->where('sport_id', $get('sport_id')))
|
||||
->formats([
|
||||
ExportFormat::Xlsx,
|
||||
ExportFormat::Csv,
|
||||
|
||||
@@ -115,7 +115,7 @@ class ElementsTable
|
||||
->modalIcon('phosphor-microsoft-excel-logo')
|
||||
->exporter(ElementExporter::class)
|
||||
->columnMapping(false)
|
||||
->modifyQueryUsing(fn (Builder $query, Get $get) => $query->where('spoirt_id', $get('sport_id')))
|
||||
->modifyQueryUsing(fn (Builder $query, Get $get) => $query->where('sport_id', $get('sport_id')))
|
||||
->formats([
|
||||
ExportFormat::Xlsx,
|
||||
ExportFormat::Csv,
|
||||
|
||||
Reference in new issue
Block a user