diff --git a/resources/views/livewire/plugins/recipe.blade.php b/resources/views/livewire/plugins/recipe.blade.php index 5d0c2d0..83d464f 100644 --- a/resources/views/livewire/plugins/recipe.blade.php +++ b/resources/views/livewire/plugins/recipe.blade.php @@ -29,8 +29,19 @@ new class extends Component { if ($this->plugin->render_markup_view) { try { - $viewPath = resource_path('views/' . str_replace('.', '/', $this->plugin->render_markup_view) . '.blade.php'); - $this->view_content = file_get_contents($viewPath); + $basePath = resource_path('views/' . str_replace('.', '/', $this->plugin->render_markup_view)); + $paths = [ + $basePath . '.blade.php', + $basePath . '.liquid', + ]; + + $this->view_content = null; + foreach ($paths as $path) { + if (file_exists($path)) { + $this->view_content = file_get_contents($path); + break; + } + } } catch (\Exception $e) { $this->view_content = null; } @@ -285,7 +296,8 @@ HTML;
Delete {{ $plugin->name }}? -

This will remove this plugin from your account.

+

This will remove this plugin from your + account.

@@ -327,7 +339,8 @@ HTML; placeholder="https://example.com/api" class="block mt-1 w-full" type="text" name="polling_url" autofocus> - @@ -363,9 +376,10 @@ HTML;
-

Send JSON payload with key merge_variables to the webhook URL. The payload will be merged with the plugin data.

+

Send JSON payload with key merge_variables to the webhook URL. The payload + will be merged with the plugin data.

- @endif + @endif