diff --git a/extensions/Others/Onboarding/Admin/Resources/OnboardingResource.php b/extensions/Others/Onboarding/Admin/Resources/OnboardingResource.php index 2bc3ad454..839d97812 100644 --- a/extensions/Others/Onboarding/Admin/Resources/OnboardingResource.php +++ b/extensions/Others/Onboarding/Admin/Resources/OnboardingResource.php @@ -3,8 +3,8 @@ namespace Paymenter\Extensions\Others\Onboarding\Admin\Resources; use Filament\Forms\Components\FileUpload; +use Filament\Forms\Components\MarkdownEditor; use Filament\Forms\Components\Select; -use Filament\Forms\Components\Textarea; use Filament\Forms\Components\TextInput; use Filament\Forms\Components\Toggle; use Filament\Forms\Form; @@ -43,11 +43,11 @@ class OnboardingResource extends Resource ->maxLength(255) ->placeholder('Welcome to Our Platform'), - Textarea::make('description') + MarkdownEditor::make('description') ->label('Description') ->required() - ->rows(4) - ->placeholder('A brief description of this onboarding step...'), + ->placeholder('A brief description of this onboarding step...') + ->helperText('You can use markdown formatting in the description. Use **bold**, *italic*, links, lists, and more.'), FileUpload::make('image') ->label('Image') diff --git a/extensions/Others/Onboarding/resources/views/modal.blade.php b/extensions/Others/Onboarding/resources/views/modal.blade.php index dd9dccd8f..37e0aba4c 100644 --- a/extensions/Others/Onboarding/resources/views/modal.blade.php +++ b/extensions/Others/Onboarding/resources/views/modal.blade.php @@ -78,12 +78,17 @@ @if(count($slides) > 0 && isset($slides[$currentSlide]))
-

+

{{ $slides[$currentSlide]['title'] ?? 'Loading...' }}

-

- {{ $slides[$currentSlide]['description'] ?? 'Please wait...' }} -

+
+ {!! \Illuminate\Support\Str::markdown(e($slides[$currentSlide]['description'] ?? 'Please wait...'), [ + 'allow_unsafe_links' => false, + 'renderer' => [ + 'soft_break' => "
" + ] + ]) !!} +
@endif