base commit
This commit is contained in:
24
app/Filament/Resources/Vacations/Pages/ListVacations.php
Normal file
24
app/Filament/Resources/Vacations/Pages/ListVacations.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Filament\Resources\Vacations\Pages;
|
||||
|
||||
use App\Exports\VacationsExport;
|
||||
use App\Filament\Resources\Vacations\VacationResource;
|
||||
use App\Filament\Support\ExportExcelAction;
|
||||
use Filament\Actions\CreateAction;
|
||||
use Filament\Resources\Pages\ListRecords;
|
||||
|
||||
class ListVacations extends ListRecords
|
||||
{
|
||||
protected static string $resource = VacationResource::class;
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
ExportExcelAction::make('export', VacationsExport::class, 'vacations.xlsx'),
|
||||
CreateAction::make(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user