43 lines
1.3 KiB
PHP
43 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Monitoring\IssueManagements\Pages;
|
|
|
|
use App\Filament\Actions\BackAction;
|
|
use App\Filament\Resources\Monitoring\IssueManagements\IssueManagementResource;
|
|
use App\Filament\Support\CheerfulNotification;
|
|
use Filament\Notifications\Notification;
|
|
use Filament\Resources\Pages\CreateRecord;
|
|
|
|
class CreateIssueManagement extends CreateRecord
|
|
{
|
|
protected static string $resource = IssueManagementResource::class;
|
|
|
|
public function getTitle(): string
|
|
{
|
|
return CheerfulNotification::getMessage('Tambah Manajemen Isu Seru! 🚀✨', 'Tambah Manajemen Isu');
|
|
}
|
|
|
|
public function getSubheading(): ?string
|
|
{
|
|
return CheerfulNotification::getMessage('Ayo kelola isu yang ada biar semuanya terkendali dengan baik! 💪😊', 'Silakan isi formulir di bawah ini dengan lengkap untuk manajemen isu baru.');
|
|
}
|
|
|
|
protected function getHeaderActions(): array
|
|
{
|
|
return [
|
|
BackAction::make()
|
|
->url(ListIssueManagements::getUrl()),
|
|
];
|
|
}
|
|
|
|
protected function getCreatedNotification(): ?Notification
|
|
{
|
|
return CheerfulNotification::create();
|
|
}
|
|
|
|
protected function getRedirectUrl(): string
|
|
{
|
|
return $this->getResource()::getUrl('index');
|
|
}
|
|
}
|