openclassify/Modules/Partner/Filament/Resources/ListingResource/Pages/ListListings.php
2026-03-03 22:51:22 +03:00

25 lines
785 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace Modules\Partner\Filament\Resources\ListingResource\Pages;
use Filament\Actions\Action;
use Filament\Actions\CreateAction;
use Filament\Resources\Pages\ListRecords;
use Modules\Partner\Filament\Resources\ListingResource;
class ListListings extends ListRecords
{
protected static string $resource = ListingResource::class;
protected function getHeaderActions(): array
{
return [
CreateAction::make()
->label('Manuel İlan Ekle'),
Action::make('quickCreate')
->label('AI ile Hızlı İlan Ver')
->icon('heroicon-o-sparkles')
->color('danger')
->url(ListingResource::getUrl('quick-create', shouldGuessMissingParameters: true)),
];
}
}