22 lines
744 B
PHP
22 lines
744 B
PHP
<?php
|
|
|
|
namespace App\Filament\Actions\Cheerful;
|
|
|
|
use App\Filament\Support\CheerfulNotification;
|
|
use Filament\Actions\RestoreAction as ActionsRestoreAction;
|
|
|
|
class RestoreAction extends ActionsRestoreAction
|
|
{
|
|
protected function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
|
|
$this->modalHeading(fn () => CheerfulNotification::getMessage('Panggil Balik Datanya? ♻️✨', 'Pulihkan Data'));
|
|
|
|
$this->modalDescription(fn () => CheerfulNotification::getMessage('Siap buat mengaktifkan kembali data yang sempat hilang? Yuk, kita pulihkan bareng-bareng! 😉🙌', 'Apakah Anda yakin ingin memulihkan data yang telah dihapus ini?'));
|
|
|
|
$this->successNotification(fn () => CheerfulNotification::restore()
|
|
);
|
|
}
|
|
}
|