From 91c0eebd937b381e0e8c792d4b71b82ab1ec488f Mon Sep 17 00:00:00 2001 From: Thibault Richy Date: Fri, 8 Mar 2019 15:56:38 +0100 Subject: [PATCH] Fix date max diffusion on stats --- resources/views/stats/index.blade.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/views/stats/index.blade.php b/resources/views/stats/index.blade.php index 3a70869..dab9010 100644 --- a/resources/views/stats/index.blade.php +++ b/resources/views/stats/index.blade.php @@ -48,7 +48,11 @@ {{$coupon->quantity}} {{$coupon->remain}} {{$coupon->quantity - $coupon->remain}} - {{ date('d/m/Y', strtotime($coupon->coupon_maxdatediffusion)) }} + @if($coupon->coupon_maxdatediffusion != null) + {{ date('d/m/Y', strtotime($coupon->coupon_maxdatediffusion)) }} + @else + n/c + @endif @if ( $coupon->isPrintable == 1)