From dd1241f9648504548da7d70dfd6a98226f0b414d Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 21 Jun 2016 17:19:46 -0700 Subject: [PATCH] Fix in case crated_at is blank --- resources/views/hardware/view.blade.php | 12 ++++++++---- resources/views/users/view.blade.php | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.php index 5034722a1a..0b8e2fde8d 100755 --- a/resources/views/hardware/view.blade.php +++ b/resources/views/hardware/view.blade.php @@ -249,10 +249,14 @@ {{ trans('admin/hardware/form.notes') }} {{ $asset->notes }} - - {{ trans('general.created_at') }} - {{ $asset->created_at->format('F j, Y h:iA') }} - + @if ($asset->created_at) + + {{ trans('general.created_at') }} + + {{ $user->created_at->format('F j, Y h:iA') }} + + + @endif diff --git a/resources/views/users/view.blade.php b/resources/views/users/view.blade.php index 0682b787d8..8021f1facf 100755 --- a/resources/views/users/view.blade.php +++ b/resources/views/users/view.blade.php @@ -111,10 +111,14 @@ {{ $user->userloc->name }} @endif - - {{ trans('general.created_at') }} - {{ $user->created_at->format('F j, Y h:iA') }} - + @if ($user->created_at) + + {{ trans('general.created_at') }} + + {{ $user->created_at->format('F j, Y h:iA') }} + + + @endif