feat: Refactor page titles in Filament resources to static properties, removing cheerful notification methods for a cleaner implementation and improved user experience.
This commit is contained in:
parent
f1bbbd7261
commit
f5c0b0ec18
@ -40,10 +40,7 @@ class Index extends Page implements HasActions, HasForms
|
||||
|
||||
protected static ?string $slug = 'manage/admin-verification';
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Verifikasi Rekanan 👥🛡️', 'Verifikasi Data Rekanan');
|
||||
}
|
||||
protected static ?string $title = 'Verifikasi Rekanan';
|
||||
|
||||
protected string $view = 'filament.pages.admin-verification';
|
||||
|
||||
|
||||
@ -3,7 +3,6 @@
|
||||
namespace App\Filament\Pages;
|
||||
|
||||
use App\Enums\RoleEnum;
|
||||
use App\Filament\Support\CheerfulNotification;
|
||||
use App\Filament\Widgets\Charts\BudgetRealizationChart;
|
||||
use App\Filament\Widgets\Charts\CompanyStatusChart;
|
||||
use App\Filament\Widgets\Charts\CooperationStatusChart;
|
||||
@ -39,10 +38,7 @@ class Analytic extends BaseDashboard
|
||||
|
||||
protected static ?string $slug = 'analytic';
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Analisa 📊✨', 'Analisa Data');
|
||||
}
|
||||
protected static ?string $title = 'Analisa';
|
||||
|
||||
protected static ?string $navigationLabel = 'Analisa';
|
||||
|
||||
|
||||
@ -53,10 +53,7 @@ class Company extends Page implements HasForms
|
||||
|
||||
protected static ?string $slug = 'manage/company';
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Detail Perusahaan 🏗️✨', 'Profil Perusahaan');
|
||||
}
|
||||
protected static ?string $title = 'Perusahaan';
|
||||
|
||||
public ?VerificationRequest $verificationRequest = null;
|
||||
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Filament\Pages;
|
||||
|
||||
use App\Filament\Support\CheerfulNotification;
|
||||
use App\Filament\Widgets\Stats\OverviewStats;
|
||||
use BezhanSalleh\FilamentShield\Traits\HasPageShield;
|
||||
use Filament\Pages\Dashboard as BaseDashboard;
|
||||
@ -11,10 +10,7 @@ class Dashboard extends BaseDashboard
|
||||
{
|
||||
use HasPageShield;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Dasbor 🏠✨', 'Dasbor');
|
||||
}
|
||||
protected static ?string $title = 'Dasbor';
|
||||
|
||||
protected static ?string $pollingInterval = null;
|
||||
|
||||
|
||||
@ -64,10 +64,7 @@ class Media extends Page implements HasForms
|
||||
|
||||
protected static ?string $slug = 'manage/media';
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Detail Media 📰✨', 'Profil Media');
|
||||
}
|
||||
protected static ?string $title = 'Media';
|
||||
|
||||
public ?VerificationRequest $verificationRequest = null;
|
||||
|
||||
|
||||
@ -31,10 +31,7 @@ class ManageGeneralSettings extends SettingsPage
|
||||
|
||||
protected static string $settings = GeneralSettings::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Pengaturan Umum 📋✨', 'Pengaturan Umum');
|
||||
}
|
||||
protected static ?string $title = 'Umum';
|
||||
|
||||
public function form(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@ -29,10 +29,7 @@ class ManageSeoSettings extends SettingsPage
|
||||
|
||||
protected static string $settings = SeoSettings::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('SEO 🔍✨', 'SEO');
|
||||
}
|
||||
protected static ?string $title = 'SEO';
|
||||
|
||||
public function form(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@ -29,10 +29,7 @@ class ManageSocialMediaSettings extends SettingsPage
|
||||
|
||||
protected static string $settings = SocialMediaSettings::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Media Sosial 🔗✨', 'Media Sosial');
|
||||
}
|
||||
protected static ?string $title = 'Media Sosial';
|
||||
|
||||
public function form(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@ -39,10 +39,7 @@ class Verification extends Page implements HasActions, HasForms
|
||||
|
||||
protected static ?string $slug = 'manage/verification';
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Verifikasi 🛡️✨', 'Pengajuan Verifikasi');
|
||||
}
|
||||
protected static ?string $title = 'Verifikasi';
|
||||
|
||||
public ?VerificationRequest $verificationRequest = null;
|
||||
|
||||
|
||||
@ -3,15 +3,11 @@
|
||||
namespace App\Filament\Resources\Manage\Contacts\Pages;
|
||||
|
||||
use App\Filament\Resources\Manage\Contacts\ContactResource;
|
||||
use App\Filament\Support\CheerfulNotification;
|
||||
use Filament\Resources\Pages\ManageRecords;
|
||||
|
||||
class ManageContacts extends ManageRecords
|
||||
{
|
||||
protected static string $resource = ContactResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Kontak 📧✨', 'Kontak');
|
||||
}
|
||||
protected static ?string $title = 'Kontak';
|
||||
}
|
||||
|
||||
@ -15,10 +15,7 @@ class CreateCooperation extends CreateRecord
|
||||
{
|
||||
protected static string $resource = CooperationResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Tambah Kerja Sama Seru! 🚀✨', 'Tambah Kerja Sama');
|
||||
}
|
||||
protected static ?string $title = 'Kerja Sama';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -14,10 +14,7 @@ class EditCooperation extends EditRecord
|
||||
{
|
||||
protected static string $resource = CooperationResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Sempurnakan Kerja Sama 📝✨', 'Ubah Data Kerja Sama');
|
||||
}
|
||||
protected static ?string $title = 'Kerja Sama';
|
||||
|
||||
public function mount(int|string $record): void
|
||||
{
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
|
||||
use App\Enums\RoleEnum;
|
||||
use App\Filament\Resources\Manage\Cooperations\CooperationResource;
|
||||
use App\Filament\Support\CheerfulNotification;
|
||||
use Filament\Actions\CreateAction;
|
||||
use Filament\Resources\Pages\ListRecords;
|
||||
|
||||
@ -12,10 +11,7 @@ class ListCooperations extends ListRecords
|
||||
{
|
||||
protected static string $resource = CooperationResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Kerja Sama 🤝✨', 'Kerja Sama');
|
||||
}
|
||||
protected static ?string $title = 'Kerja Sama';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -4,17 +4,13 @@
|
||||
|
||||
use App\Filament\Actions\BackAction;
|
||||
use App\Filament\Resources\Manage\Cooperations\CooperationResource;
|
||||
use App\Filament\Support\CheerfulNotification;
|
||||
use Filament\Resources\Pages\ViewRecord;
|
||||
|
||||
class ViewCooperation extends ViewRecord
|
||||
{
|
||||
protected static string $resource = CooperationResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Detail Kerja Sama 🤝✨', 'Detail Data Kerja Sama');
|
||||
}
|
||||
protected static ?string $title = 'Kerja Sama';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -3,15 +3,11 @@
|
||||
namespace App\Filament\Resources\Manage\DataChanges\Pages;
|
||||
|
||||
use App\Filament\Resources\Manage\DataChanges\DataChangesResource;
|
||||
use App\Filament\Support\CheerfulNotification;
|
||||
use Filament\Resources\Pages\ListRecords;
|
||||
|
||||
class ManageDataChanges extends ListRecords
|
||||
{
|
||||
protected static string $resource = DataChangesResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Permohonan Perubahan Data 📝✨', 'Permohonan Perubahan Data');
|
||||
}
|
||||
protected static ?string $title = 'Permohonan Perubahan Data';
|
||||
}
|
||||
|
||||
@ -4,17 +4,13 @@
|
||||
|
||||
use App\Filament\Actions\BackAction;
|
||||
use App\Filament\Resources\Manage\DataChanges\DataChangesResource;
|
||||
use App\Filament\Support\CheerfulNotification;
|
||||
use Filament\Resources\Pages\ViewRecord;
|
||||
|
||||
class ViewDataChange extends ViewRecord
|
||||
{
|
||||
protected static string $resource = DataChangesResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Detail Perubahan Data 📝✨', 'Detail Permohonan Perubahan Data');
|
||||
}
|
||||
protected static ?string $title = 'Permohonan Perubahan Data';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -6,17 +6,13 @@
|
||||
use App\Enums\VerificationStatus;
|
||||
use App\Filament\Resources\Manage\Journalists\Actions\CreateJournalistAction;
|
||||
use App\Filament\Resources\Manage\Journalists\JournalistResource;
|
||||
use App\Filament\Support\CheerfulNotification;
|
||||
use Filament\Resources\Pages\ManageRecords;
|
||||
|
||||
class ManageJournalists extends ManageRecords
|
||||
{
|
||||
protected static string $resource = JournalistResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Jurnalis ✍️✨', 'Jurnalis');
|
||||
}
|
||||
protected static ?string $title = 'Jurnalis';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -3,15 +3,11 @@
|
||||
namespace App\Filament\Resources\Manage\Partners\Pages;
|
||||
|
||||
use App\Filament\Resources\Manage\Partners\PartnerResource;
|
||||
use App\Filament\Support\CheerfulNotification;
|
||||
use Filament\Resources\Pages\ManageRecords;
|
||||
|
||||
class ManagePartners extends ManageRecords
|
||||
{
|
||||
protected static string $resource = PartnerResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Rekanan 🏢✨', 'Rekanan');
|
||||
}
|
||||
protected static ?string $title = 'Rekanan';
|
||||
}
|
||||
|
||||
@ -4,17 +4,13 @@
|
||||
|
||||
use App\Filament\Actions\BackAction;
|
||||
use App\Filament\Resources\Manage\Partners\PartnerResource;
|
||||
use App\Filament\Support\CheerfulNotification;
|
||||
use Filament\Resources\Pages\ViewRecord;
|
||||
|
||||
class ViewPartner extends ViewRecord
|
||||
{
|
||||
protected static string $resource = PartnerResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Detail Rekanan 🏢✨', 'Detail Data Rekanan');
|
||||
}
|
||||
protected static ?string $title = 'Rekanan';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -12,10 +12,7 @@ class ManageCategories extends ManageRecords
|
||||
{
|
||||
protected static string $resource = CategoryResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Kategori 🏷️✨', 'Kategori');
|
||||
}
|
||||
protected static ?string $title = 'Kategori';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -12,10 +12,7 @@ class ManageClassifications extends ManageRecords
|
||||
{
|
||||
protected static string $resource = ClassificationResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Klasifikasi 📂✨', 'Klasifikasi');
|
||||
}
|
||||
protected static ?string $title = 'Klasifikasi';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -12,10 +12,7 @@ class ManageDepartments extends ManageRecords
|
||||
{
|
||||
protected static string $resource = DepartmentResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('OPD 🏢✨', 'OPD');
|
||||
}
|
||||
protected static ?string $title = 'OPD';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -12,10 +12,7 @@ class ManageLocations extends ManageRecords
|
||||
{
|
||||
protected static string $resource = LocationResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Lokus 📍✨', 'Lokus');
|
||||
}
|
||||
protected static ?string $title = 'Lokus';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -12,10 +12,7 @@ class ManageSubClassifications extends ManageRecords
|
||||
{
|
||||
protected static string $resource = SubClassificationResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Subklasifikasi 📑✨', 'Subklasifikasi');
|
||||
}
|
||||
protected static ?string $title = 'Subklasifikasi';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -12,10 +12,7 @@ class ManageSubLocations extends ManageRecords
|
||||
{
|
||||
protected static string $resource = SubLocationResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Sublokus 📌✨', 'Sublokus');
|
||||
}
|
||||
protected static ?string $title = 'Sublokus';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -12,10 +12,7 @@ class ManageThemes extends ManageRecords
|
||||
{
|
||||
protected static string $resource = ThemeResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Tema 📂✨', 'Tema');
|
||||
}
|
||||
protected static ?string $title = 'Tema';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -12,10 +12,7 @@ class ManageUsers extends ManageRecords
|
||||
{
|
||||
protected static string $resource = UserResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Pengguna 👤✨', 'Pengguna');
|
||||
}
|
||||
protected static ?string $title = 'Pengguna';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -12,10 +12,7 @@ class CreateContentRecap extends CreateRecord
|
||||
{
|
||||
protected static string $resource = ContentRecapResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Tambah Rekap Konten Seru! 🚀✨', 'Tambah Rekap Konten');
|
||||
}
|
||||
protected static ?string $title = 'Rekap Konten';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -13,10 +13,7 @@ class EditContentRecap extends EditRecord
|
||||
{
|
||||
protected static string $resource = ContentRecapResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Sempurnakan Rekap Konten 📝✨', 'Ubah Rekap Konten');
|
||||
}
|
||||
protected static ?string $title = 'Rekap Konten';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
|
||||
use App\Filament\Exports\ContentRecapExcelExport;
|
||||
use App\Filament\Resources\Monitoring\ContentRecaps\ContentRecapResource;
|
||||
use App\Filament\Support\CheerfulNotification;
|
||||
use Filament\Actions\CreateAction;
|
||||
use Filament\Resources\Pages\ListRecords;
|
||||
use pxlrbt\FilamentExcel\Actions\ExportAction;
|
||||
@ -13,10 +12,7 @@ class ListContentRecaps extends ListRecords
|
||||
{
|
||||
protected static string $resource = ContentRecapResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Rekap Konten 📝✨', 'Rekap Konten');
|
||||
}
|
||||
protected static ?string $title = 'Rekap Konten';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -12,10 +12,7 @@ class CreateIssueManagement extends CreateRecord
|
||||
{
|
||||
protected static string $resource = IssueManagementResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Tambah Manajemen Isu Seru! 🚀✨', 'Tambah Manajemen Isu');
|
||||
}
|
||||
protected static ?string $title = 'Manajemen Isu';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -12,10 +12,7 @@ class EditIssueManagement extends EditRecord
|
||||
{
|
||||
protected static string $resource = IssueManagementResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Sempurnakan Manajemen Isu 📝✨', 'Ubah Manajemen Isu');
|
||||
}
|
||||
protected static ?string $title = 'Manajemen Isu';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -4,7 +4,6 @@
|
||||
|
||||
use App\Filament\Exports\IssueManagementExcelExport;
|
||||
use App\Filament\Resources\Monitoring\IssueManagements\IssueManagementResource;
|
||||
use App\Filament\Support\CheerfulNotification;
|
||||
use Filament\Actions\CreateAction;
|
||||
use Filament\Resources\Pages\ListRecords;
|
||||
use pxlrbt\FilamentExcel\Actions\ExportAction;
|
||||
@ -13,10 +12,7 @@ class ListIssueManagements extends ListRecords
|
||||
{
|
||||
protected static string $resource = IssueManagementResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Manajemen Isu 📢✨', 'Manajemen Isu');
|
||||
}
|
||||
protected static ?string $title = 'Manajemen Isu';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -13,10 +13,7 @@ class CreateMediaMonitoring extends CreateRecord
|
||||
{
|
||||
protected static string $resource = MediaMonitoringResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Tambah Monitoring Media Seru! 🚀✨', 'Tambah Monitoring Media');
|
||||
}
|
||||
protected static ?string $title = 'Monitoring Media';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -12,10 +12,7 @@ class EditMediaMonitoring extends EditRecord
|
||||
{
|
||||
protected static string $resource = MediaMonitoringResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Sempurnakan Monitoring Media 📝✨', 'Ubah Monitoring Media');
|
||||
}
|
||||
protected static ?string $title = 'Monitoring Media';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -5,7 +5,6 @@
|
||||
use App\Filament\Exports\MediaMonitoringExcelExport;
|
||||
use App\Filament\Resources\Monitoring\MediaMonitorings\Actions\CrawlNewsAction;
|
||||
use App\Filament\Resources\Monitoring\MediaMonitorings\MediaMonitoringResource;
|
||||
use App\Filament\Support\CheerfulNotification;
|
||||
use Filament\Actions\CreateAction;
|
||||
use Filament\Resources\Pages\ListRecords;
|
||||
use pxlrbt\FilamentExcel\Actions\ExportAction;
|
||||
@ -14,10 +13,7 @@ class ListMediaMonitorings extends ListRecords
|
||||
{
|
||||
protected static string $resource = MediaMonitoringResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Monitoring Media 📺✨', 'Monitoring Media');
|
||||
}
|
||||
protected static ?string $title = 'Monitoring Media';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -17,10 +17,7 @@ class ManageAnnouncements extends ManageRecords
|
||||
{
|
||||
protected static string $resource = AnnouncementResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Pengumuman 📢✨', 'Pengumuman');
|
||||
}
|
||||
protected static ?string $title = 'Pengumuman';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -12,10 +12,7 @@ class CreateNews extends CreateRecord
|
||||
{
|
||||
protected static string $resource = NewsResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Tambah Berita Seru! 🚀✨', 'Tambah Berita');
|
||||
}
|
||||
protected static ?string $title = 'Berita';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -12,10 +12,7 @@ class EditNews extends EditRecord
|
||||
{
|
||||
protected static string $resource = NewsResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Sempurnakan Berita 📝✨', 'Ubah Data Berita');
|
||||
}
|
||||
protected static ?string $title = 'Berita';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -3,7 +3,6 @@
|
||||
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;
|
||||
|
||||
@ -11,10 +10,7 @@ class ListNews extends ListRecords
|
||||
{
|
||||
protected static string $resource = NewsResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Berita 📰✨', 'Berita');
|
||||
}
|
||||
protected static ?string $title = 'Berita';
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
|
||||
@ -3,15 +3,11 @@
|
||||
namespace App\Filament\Resources\Visitors\Pages;
|
||||
|
||||
use App\Filament\Resources\Visitors\VisitorResource;
|
||||
use App\Filament\Support\CheerfulNotification;
|
||||
use Filament\Resources\Pages\ManageRecords;
|
||||
|
||||
class ManageVisitors extends ManageRecords
|
||||
{
|
||||
protected static string $resource = VisitorResource::class;
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return CheerfulNotification::getMessage('Pengunjung 👤✨', 'Pengunjung');
|
||||
}
|
||||
protected static ?string $title = 'Pengunjung';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user