alperenersoy / filament-export

Customizable export and print functionality for Filament Admin Panel
211 stars 49 forks source link

extraViewData blade variables in table_view.blade.php not defined #93

Open eelco2k opened 1 year ago

eelco2k commented 1 year ago
FilamentExportBulkAction::make(__('Export'))
                ->extraViewData(function ($action) {
                    return [
                        'recordCount' => $action->getRecords()->count()
                    ];
                }),

gives error:

Undefined variable $recordCount

when using this blade variable in table_view.blade.php as defined in readme.md

{{ $recordCount }}

but it works in pdf.blade.php

kirchevsky commented 8 months ago

The same issue.