diff --git a/resources/views/Admin/Shop/Articles/form.blade.php b/resources/views/Admin/Shop/Articles/form.blade.php index b75a92fc..f281ec0e 100644 --- a/resources/views/Admin/Shop/Articles/form.blade.php +++ b/resources/views/Admin/Shop/Articles/form.blade.php @@ -5,6 +5,25 @@ 'files' => true, ]) }} + +@php + $articlePublicUrl = null; + if (!empty($article['slug'] ?? null)) { + $articlePublicUrl = route('Shop.Articles.slug', ['slug' => $article['slug']]); + } elseif (!empty($article['id'] ?? null)) { + $articlePublicUrl = route('Shop.Articles.show', ['id' => $article['id']]); + } +@endphp + +@if ($articlePublicUrl) +
+ + Voir la page publique + + +
+@endif + @include('Admin.Shop.Articles.partials.characteristics') {{ Form::close() }} diff --git a/resources/views/Admin/Shop/Offers/form.blade.php b/resources/views/Admin/Shop/Offers/form.blade.php index a66438bf..4b367b9a 100644 --- a/resources/views/Admin/Shop/Offers/form.blade.php +++ b/resources/views/Admin/Shop/Offers/form.blade.php @@ -1,6 +1,15 @@ {{ Form::open(['route' => 'Admin.Shop.Offers.store', 'id' => 'offer-form', 'autocomplete' => 'off']) }} +@if (($offer['id'] ?? false) && ($offer['article_id'] ?? false)) +
+ + Voir la page publique de l'article + + +
+@endif +