Skip to content

Commit b110062

Browse files
author
Sebastian Fix
committed
wip
1 parent c40cf47 commit b110062

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

app/Http/Controllers/Products/ProductsShowController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public function __invoke(string $locale, Product $product): View
2020
'name' => $product->name,
2121
'teaser' => $product->teaser,
2222
'content' => Str::of($product->content)->markdown(),
23+
'tags' => $product->tags,
2324
]);
2425
}
2526
}

resources/views/app/products/show.blade.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
<x-content :content="$content"/>
88
</x-section>
99

10-
<x-docuware-showme/>
10+
@if(in_array('DocuWare', $tags))
11+
<x-docuware-showme/>
12+
@endif
13+
1114

1215
</x-app-layout>

resources/views/components/docuware-showme.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use(App\Enums\LocaleEnum;use Illuminate\Support\Str)
2+
23
@php
34
$showme_url = match (app()->getLocale()) {
45
LocaleEnum::EN->value => 'https://showme.docuware.com/en-gb/interactive-tours',

0 commit comments

Comments
 (0)