From 9d16eacad50c1c1f7aca769f36e66285a2b590ff Mon Sep 17 00:00:00 2001 From: MrM <11910225+mauro-miatello@users.noreply.github.com> Date: Tue, 9 Jan 2024 18:30:51 +0100 Subject: [PATCH] Added license expiration date in "view asset" I've added the expiration date of the license associated with an asset in hardware/ID#software, it is useful to see all of them on the asset page instead of having to open the license details page. I've also fixed a space formatting issue. --- resources/views/hardware/view.blade.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.php index 1ded42f456..d856427bd3 100755 --- a/resources/views/hardware/view.blade.php +++ b/resources/views/hardware/view.blade.php @@ -651,7 +651,7 @@ {{ trans('admin/hardware/form.eol_date') }} @if ($asset->purchase_date) - {!! $asset->asset_eol_date < date("Y-m-d") ? '' : '' !!} + {!! $asset->asset_eol_date < date("Y-m-d") ? '' : '' !!} @endif @@ -988,6 +988,7 @@ {{ trans('general.name') }} {{ trans('admin/licenses/form.license_key') }} + {{ trans('admin/licenses/form.expiration') }} {{ trans('table.actions') }} @@ -1003,6 +1004,9 @@ ------------ @endcan + + {{ Helper::getFormattedDateObject($seat->license->expiration_date, 'date', false) }} + {{ trans('general.checkin') }}