@@ -4,16 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use Event; |
6 | 6 | use Illuminate\Support\Facades\Storage; |
7 | -use Illuminate\Pagination\Paginator; |
|
8 | -use Illuminate\Foundation\Application; |
|
9 | -use Maatwebsite\Excel\Classes\LaravelExcelWorksheet; |
|
10 | -use Maatwebsite\Excel\Excel; |
|
11 | -use Maatwebsite\Excel\Writers\LaravelExcelWriter; |
|
12 | 7 | use Nayjest\Grids\Components\Base\RenderableComponent; |
13 | 8 | use Nayjest\Grids\Components\Base\RenderableRegistry; |
14 | -use Nayjest\Grids\DataProvider; |
|
15 | -use Nayjest\Grids\DataRow; |
|
16 | -use Nayjest\Grids\FieldConfig; |
|
17 | 9 | use Nayjest\Grids\Grid; |
18 | 10 | |
19 | 11 | class ExcelDownload extends RenderableComponent |
@@ -4,13 +4,10 @@ |
||
4 | 4 | |
5 | 5 | use App\Components\Grid\ExtendedTableRow; |
6 | 6 | use App\Components\Grid\GridsToComponents; |
7 | -use App\Http\Controllers\SupportersController; |
|
8 | 7 | use App\Topic; |
9 | 8 | use App\User; |
10 | -use Event; |
|
11 | 9 | use Illuminate\Pagination\Paginator; |
12 | 10 | use Illuminate\Foundation\Application; |
13 | -use Illuminate\Support\Facades\DB; |
|
14 | 11 | use Maatwebsite\Excel\Classes\LaravelExcelWorksheet; |
15 | 12 | use Maatwebsite\Excel\Excel; |
16 | 13 | use Maatwebsite\Excel\Writers\LaravelExcelWriter; |
@@ -145,8 +145,7 @@ |
||
145 | 145 | if($sheetName == 'topicQuestionsGrid') { |
146 | 146 | $topic = Topic::find($showId); |
147 | 147 | $this->config = $className::getQuestionsGridConfig($topic); |
148 | - } |
|
149 | - else{ |
|
148 | + } else{ |
|
150 | 149 | $this->config = $className::getGridConfig($user); |
151 | 150 | } |
152 | 151 |