diff --git a/src/Resources/EmailTemplateResource/Pages/EditEmailTemplate.php b/src/Resources/EmailTemplateResource/Pages/EditEmailTemplate.php index d5c9f0b..54f14da 100644 --- a/src/Resources/EmailTemplateResource/Pages/EditEmailTemplate.php +++ b/src/Resources/EmailTemplateResource/Pages/EditEmailTemplate.php @@ -18,7 +18,10 @@ class EditEmailTemplate extends EditRecord protected function getActions(): array { return [ - Actions\ViewAction::make()->label('Preview')->modalContent(fn (EmailTemplate $record): View => view( + Actions\Action::make('back')->label(__('Back')) + ->url(EmailTemplateResource::getUrl()) + , + Actions\ViewAction::make()->label(__('Preview'))->modalContent(fn (EmailTemplate $record): View => view( 'vb-email-templates::forms.components.iframe', ['record' => $record], ))->form(null),