From 9e338c4b7a950f309ce832d5a9618462594eb6ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Thu, 20 May 2021 09:52:58 +0200 Subject: [PATCH] check if customer optin history customer.show --- resources/views/customers/show.blade.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/views/customers/show.blade.php b/resources/views/customers/show.blade.php index a0b2958..d740c94 100644 --- a/resources/views/customers/show.blade.php +++ b/resources/views/customers/show.blade.php @@ -53,7 +53,11 @@ Date de la dernière modification de l'abonnement + @if($customerInfos->customer->optInHistory()->orderBy('created_at', 'DESC')->exists()) {{ \Carbon\Carbon::parse($customerInfos->customer->optInHistory()->orderBy('created_at', 'DESC')->first()->created_at)->format('d/m/Y à H:i') }} + @else + + @endif Dernière connexion