diff --git a/resources/views/livewire/plugins/receipt.blade.php b/resources/views/livewire/plugins/receipt.blade.php index 24f5bf1..736584f 100644 --- a/resources/views/livewire/plugins/receipt.blade.php +++ b/resources/views/livewire/plugins/receipt.blade.php @@ -6,6 +6,7 @@ use Livewire\Volt\Component; new class extends Component { public Plugin $plugin; public string|null $blade_code; + public string|null $view_content; public string $name; public int $data_stale_minutes; @@ -26,6 +27,15 @@ new class extends Component { abort_unless(auth()->user()->plugins->contains($this->plugin), 403); $this->blade_code = $this->plugin->render_markup; + 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); + } catch (\Exception $e) { + $this->view_content = null; + } + } + $this->fillformFields(); } @@ -192,7 +202,8 @@ HTML; @if(count($checked_devices) === 1)