simedkom/app/Filament/Resources/Monitoring/ContentRecaps/Pages/CreateContentRecap.php

43 lines
1.2 KiB
PHP

<?php
namespace App\Filament\Resources\Monitoring\ContentRecaps\Pages;
use App\Filament\Actions\BackAction;
use App\Filament\Resources\Monitoring\ContentRecaps\ContentRecapResource;
use App\Filament\Support\CheerfulNotification;
use Filament\Notifications\Notification;
use Filament\Resources\Pages\CreateRecord;
class CreateContentRecap extends CreateRecord
{
protected static string $resource = ContentRecapResource::class;
public function getTitle(): string
{
return CheerfulNotification::getMessage('Tambah Rekap Konten Seru! 🚀✨', 'Tambah Rekap Konten');
}
public function getSubheading(): ?string
{
return CheerfulNotification::getMessage('Ayo susun rekap konten yang mantap biar makin rapi! 📚😊', 'Silakan isi formulir di bawah ini dengan lengkap untuk rekap konten baru.');
}
protected function getHeaderActions(): array
{
return [
BackAction::make()
->url(ListContentRecaps::getUrl()),
];
}
protected function getCreatedNotification(): ?Notification
{
return CheerfulNotification::create();
}
protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl('index');
}
}