From 4befaaa5b945ff1af0790bb8a236bae715ccbc92 Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Sun, 9 Jun 2019 20:39:00 +0800 Subject: [PATCH] Show age on user profile only if age is exists --- resources/views/users/partials/profile.blade.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/views/users/partials/profile.blade.php b/resources/views/users/partials/profile.blade.php index 56e4d8a..3610084 100644 --- a/resources/views/users/partials/profile.blade.php +++ b/resources/views/users/partials/profile.blade.php @@ -33,7 +33,11 @@ @endif {{ trans('user.age') }} - {!! $user->age_string !!} + + @if ($user->age) + {!! $user->age_string !!} + @endif + @if ($user->email)