adds asset age to asset view
This commit is contained in:
parent
da0efaa278
commit
078e7281cd
1 changed files with 3 additions and 0 deletions
|
@ -495,6 +495,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
{{ Helper::getFormattedDateObject($asset->purchase_date, 'date', false) }}
|
{{ Helper::getFormattedDateObject($asset->purchase_date, 'date', false) }}
|
||||||
|
-
|
||||||
|
{{ Carbon::parse($asset->purchase_date)->diff(Carbon::now())->format('%y years, %m months and %d days')}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue