32 lines
923 B
PHP
32 lines
923 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Publication\News\Pages;
|
|
|
|
use App\Filament\Resources\Publication\News\NewsResource;
|
|
use App\Filament\Support\CheerfulNotification;
|
|
use Filament\Actions\CreateAction;
|
|
use Filament\Resources\Pages\ListRecords;
|
|
|
|
class ListNews extends ListRecords
|
|
{
|
|
protected static string $resource = NewsResource::class;
|
|
|
|
public function getTitle(): string
|
|
{
|
|
return CheerfulNotification::getMessage('Berita 📰✨', 'Kelola Berita');
|
|
}
|
|
|
|
public function getSubheading(): ?string
|
|
{
|
|
return CheerfulNotification::getMessage('Kelola berita dan informasi terbaru untuk dibagikan kepada khalayak! 📰📢', 'Halaman ini digunakan untuk mengelola daftar berita dan artikel yang akan dipublikasikan.');
|
|
}
|
|
|
|
protected function getHeaderActions(): array
|
|
{
|
|
return [
|
|
CreateAction::make()
|
|
->label('Tambah'),
|
|
];
|
|
}
|
|
}
|