From 0366644c4f12737cf072c09ea1cd06ea242fec7b Mon Sep 17 00:00:00 2001 From: Vincent BRIDIER Date: Thu, 23 Jan 2025 15:35:17 +0100 Subject: [PATCH 1/4] fix: Fix check on salarie and customer relation --- app/Http/Controllers/CustomerController.php | 2 +- app/Models/Customers.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/CustomerController.php b/app/Http/Controllers/CustomerController.php index 2850d9d8..8f16e7e6 100644 --- a/app/Http/Controllers/CustomerController.php +++ b/app/Http/Controllers/CustomerController.php @@ -152,7 +152,7 @@ class CustomerController extends Controller /** @var Customers|null */ $customer = Customers::where('email', $request->email)->first(); - if ($customer && $customer->isNoLongerEmployed()) { + if ($customer and $customer->isNoLongerEmployed()) { $customer->remember_token = null; $customer->saveOrFail(); return back()->withErrors( diff --git a/app/Models/Customers.php b/app/Models/Customers.php index f9417480..96f349f2 100644 --- a/app/Models/Customers.php +++ b/app/Models/Customers.php @@ -132,7 +132,7 @@ class Customers extends Authenticatable */ public function isNoLongerEmployed() { - if (!$this->salarie->end_date) { + if (!$this->salarie or !$this->salarie->end_date) { return false; } return Carbon::parse($this->salarie->end_date)->lessThanOrEqualTo(Carbon::now()); From f6e06ecd672603eb39aa5179fbf00198bb4b10b2 Mon Sep 17 00:00:00 2001 From: Vincent BRIDIER Date: Thu, 23 Jan 2025 15:43:53 +0100 Subject: [PATCH 2/4] feat: Issue #52 feedback --- app/Enums/StatsCustomerType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Enums/StatsCustomerType.php b/app/Enums/StatsCustomerType.php index 667b1446..ea74bd83 100644 --- a/app/Enums/StatsCustomerType.php +++ b/app/Enums/StatsCustomerType.php @@ -35,7 +35,7 @@ class StatsCustomerType extends BaseEnum return [ 'nbSalarie' => trans('Nombre de salariés'), 'nbSalarieWithAccount' => trans('Nombre de salariés ayant créé un compte'), - 'membershipRate' => trans('Taux d\'adhésion à la :appName', ['appName' => config('app.name')]), + 'membershipRate' => trans('Taux d\'adhésion'), ]; } } From bab3bef403179da9c42a9ae12695d406d118e0f1 Mon Sep 17 00:00:00 2001 From: Vincent BRIDIER Date: Thu, 23 Jan 2025 15:45:05 +0100 Subject: [PATCH 3/4] feat: Issue #55 feedback --- resources/lang/fr/cookie-notice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lang/fr/cookie-notice.php b/resources/lang/fr/cookie-notice.php index fe1d0025..b5692e59 100644 --- a/resources/lang/fr/cookie-notice.php +++ b/resources/lang/fr/cookie-notice.php @@ -13,7 +13,7 @@ return [ 'button_customize' => 'Personnaliser', 'button_validate_and_close' => 'Valider et fermer', 'button_title_open_new_tab' => 'Ouvrir le lien dans un nouvel onglet', - 'banner_title' => 'Le site internet :site_name utilise des cookies !', + 'banner_title' => 'La boutique de cocotte utilise des cookies !', 'banner_text' => 'Nous utilisons des cookies pour nous assurer du bon fonctionnement de notre site et à des fins analytiques. Vous pouvez changer d’avis à tout moment en cliquant sur l’icône présente sur chaque page de notre site. From ba6380fb94345065136efd09a86562f58b807f9d Mon Sep 17 00:00:00 2001 From: Vincent BRIDIER Date: Thu, 23 Jan 2025 16:25:42 +0100 Subject: [PATCH 4/4] feat: Issue #49 feedback --- resources/lang/fr.json | 15 ++++++++++++++- .../views/front/sable/auth/register.blade.php | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/resources/lang/fr.json b/resources/lang/fr.json index 5ae22c39..cc4ab50e 100644 --- a/resources/lang/fr.json +++ b/resources/lang/fr.json @@ -40,5 +40,18 @@ "Sorry for the inconvenience but we’re performing some maintenance at the moment." : "Veuillez nous excuser pour la gêne occasionnée, nous sommes en train de réaliser une opération de maintenance.", "If you need to you can always contact us, otherwise we’ll be back online shortly!" : "Si besoin vous pouvez toujours nous contacter, sinon nous serons de retour bientôt", "The :sitename Team" : "L'équipe :sitename", - "You must accept the terms and conditions and the privacy policy" : "Vous devez accepter les conditions générales et la politique de gestion des données personnelles." + "You must accept the terms and conditions and the privacy policy" : "Vous devez accepter les conditions générales et la politique de gestion des données personnelles.", + "The :attribute must be a valid role.": "Le :attribute doit être un rôle valide.", + "The :attribute must be at least :length characters and contain at least one number.": "Le champ :attribute doit avoir au moins :length caractères et contenir au moins un chiffre.", + "The :attribute must be at least :length characters and contain at least one special character and one number.": "Le champ :attribute doit avoir au moins :length caractères et contenir au moins un caractère spécial et un nombre.", + "The :attribute must be at least :length characters and contain at least one special character.": "Le champ :attribute doit avoir au moins :length caractères et contenir au moins un caractère spécial.", + "The :attribute must be at least :length characters and contain at least one uppercase character and one number.": "Le champ :attribute doit avoir au moins :length caractères et contenir au moins une majuscule et un chiffre.", + "The :attribute must be at least :length characters and contain at least one uppercase character and one special character.": "Le champ :attribute doit avoir au moins :length caractères et contenir au moins une majuscule et un caractère spécial.", + "The :attribute must be at least :length characters and contain at least one uppercase character, one number, and one special character.": "Le champ :attribute doit avoir au moins :length caractères, et contenir au moins une majuscule, un chiffre et un caractère spécial.", + "The :attribute must be at least :length characters and contain at least one uppercase character.": "Le champ :attribute doit avoir au moins :length caractères et au moins une majuscule.", + "The :attribute must be at least :length characters.": "Le champ :attribute doit avoir au moins :length caractères.", + "The :attribute must contain at least one letter.": "Le champ :attribute doit avoir au moins une lettre.", + "The :attribute must contain at least one number.": "Le champ :attribute doit avoir au moins un numéro.", + "The :attribute must contain at least one symbol.": "Le champ :attribute doit avoir au moins un symbole.", + "The :attribute must contain at least one uppercase and one lowercase letter.": "Le champ :attribute doit avoir au moins une lettre majuscule et une lettre minuscule." } diff --git a/resources/views/front/sable/auth/register.blade.php b/resources/views/front/sable/auth/register.blade.php index 5241d56e..45ef772a 100644 --- a/resources/views/front/sable/auth/register.blade.php +++ b/resources/views/front/sable/auth/register.blade.php @@ -26,7 +26,7 @@
    @foreach ($errors->all() as $error) -
  • {{ $error }}
  • +
  • {{ $error }}
  • @endforeach