From 078e7281cdb990a5f2862625ab95b53fcfc1ac17 Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Mon, 28 Nov 2022 10:45:58 -0800 Subject: [PATCH] adds asset age to asset view --- resources/views/hardware/view.blade.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.php index 2093afecbc..8c2c58e9a7 100755 --- a/resources/views/hardware/view.blade.php +++ b/resources/views/hardware/view.blade.php @@ -495,6 +495,9 @@
{{ Helper::getFormattedDateObject($asset->purchase_date, 'date', false) }} + - + {{ Carbon::parse($asset->purchase_date)->diff(Carbon::now())->format('%y years, %m months and %d days')}} +
@endif