43 lines
1.2 KiB
PHP
43 lines
1.2 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\EditRecord;
|
|
|
|
class EditIssueManagement extends EditRecord
|
|
{
|
|
protected static string $resource = IssueManagementResource::class;
|
|
|
|
public function getTitle(): string
|
|
{
|
|
return CheerfulNotification::getMessage('Sempurnakan Manajemen Isu 📝✨', 'Ubah Manajemen Isu');
|
|
}
|
|
|
|
public function getSubheading(): ?string
|
|
{
|
|
return CheerfulNotification::getMessage('Perbarui datanya supaya tetap akurat dan penanganannya makin oke! 🛠️👌', 'Silakan perbarui informasi manajemen isu pada formulir di bawah ini.');
|
|
}
|
|
|
|
protected function getHeaderActions(): array
|
|
{
|
|
return [
|
|
BackAction::make()
|
|
->url(ListIssueManagements::getUrl()),
|
|
];
|
|
}
|
|
|
|
protected function getSavedNotification(): ?Notification
|
|
{
|
|
return CheerfulNotification::update();
|
|
}
|
|
|
|
protected function getRedirectUrl(): string
|
|
{
|
|
return $this->getResource()::getUrl('index');
|
|
}
|
|
}
|