mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
adds asset age to asset view
This commit is contained in:
parent
da0efaa278
commit
078e7281cd
|
@ -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…
Reference in a new issue