From 4534159ce98f7024419e74624aee0b7890186357 Mon Sep 17 00:00:00 2001
From: Vincent Vanwaelscappel
Date: Thu, 11 Jul 2019 18:14:19 +0200
Subject: [PATCH] #2782
---
.env.production | 1 +
.env.staging | 1 +
config/features.php | 1 +
resources/views/pages/product-detail.blade.php | 9 ++++++---
resources/views/partials/cart.blade.php | 7 +++++--
resources/views/partials/header.blade.php | 18 ++++++++++--------
6 files changed, 24 insertions(+), 13 deletions(-)
diff --git a/.env.production b/.env.production
index 6792278..3ed8c90 100644
--- a/.env.production
+++ b/.env.production
@@ -46,3 +46,4 @@ BACKPACK_LICENSE=YwdOWjeEczPAwy06GzkBJggW
FEATURE_QUOTE=false
FEATURE_NEWS=false
FEATURE_SEARCH=false
+FEATURE_I18N=false
diff --git a/.env.staging b/.env.staging
index 3417465..254719a 100644
--- a/.env.staging
+++ b/.env.staging
@@ -45,3 +45,4 @@ BACKPACK_LICENSE=YwdOWjeEczPAwy06GzkBJggW
FEATURE_QUOTE=false
FEATURE_NEWS=false
FEATURE_SEARCH=false
+FEATURE_I18N=false
diff --git a/config/features.php b/config/features.php
index 9f7c543..8fe00be 100644
--- a/config/features.php
+++ b/config/features.php
@@ -3,4 +3,5 @@ return [
'search' => env('FEATURE_SEARCH', true),
'quote' => env('FEATURE_QUOTE', true),
'news' => env('FEATURE_NEWS', true),
+ 'i18n' => env('FEATURE_I18N', true),
];
diff --git a/resources/views/pages/product-detail.blade.php b/resources/views/pages/product-detail.blade.php
index 4499bfd..b8447bb 100644
--- a/resources/views/pages/product-detail.blade.php
+++ b/resources/views/pages/product-detail.blade.php
@@ -43,10 +43,13 @@
- {{__('Ajouter à ma sélection')}}
- ?
+ @if(config('features.quote'))
+ {{__('Ajouter à ma sélection')}}
+
+ ?
+ @endif
diff --git a/resources/views/partials/cart.blade.php b/resources/views/partials/cart.blade.php
index 164e5eb..cc5fea9 100644
--- a/resources/views/partials/cart.blade.php
+++ b/resources/views/partials/cart.blade.php
@@ -1,2 +1,5 @@
-
-
+@if(config('features.quote'))
+
+
+@endif
+
diff --git a/resources/views/partials/header.blade.php b/resources/views/partials/header.blade.php
index 5e51539..e5aa7e3 100644
--- a/resources/views/partials/header.blade.php
+++ b/resources/views/partials/header.blade.php
@@ -40,11 +40,13 @@
-
-
- @svg('search')
-
-
- @svg('search', 'fill-current text-navy w-6 h-6 hover:text-blue')
-
-
+@if(config('features.search'))
+
+
+ @svg('search')
+
+
+ @svg('search', 'fill-current text-navy w-6 h-6 hover:text-blue')
+
+
+@endif
--
2.39.5