From 530089895a79a67ecd3302203c71c2f33d235019 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 3 Oct 2025 16:13:00 +0100 Subject: [PATCH] Added category and manufacturer to expiring license report --- .../markdown/report-expiring-licenses.blade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/notifications/markdown/report-expiring-licenses.blade.php b/resources/views/notifications/markdown/report-expiring-licenses.blade.php index aaf1fc629d..3a65926c9b 100644 --- a/resources/views/notifications/markdown/report-expiring-licenses.blade.php +++ b/resources/views/notifications/markdown/report-expiring-licenses.blade.php @@ -3,11 +3,11 @@ -| | {{ trans('mail.name') }} | {{ trans('mail.expires') }} | {{ trans('mail.terminates') }} | -| :------------- | :------------- | :------------- | :------------- | +| | {{ trans('mail.name') }} | {{ trans('general.category') }} | {{ trans('mail.expires') }} | {{ trans('mail.terminates') }} | +| :------------- | :------------- | :------------- | :------------- | :------------- | @foreach ($licenses as $license) -| {{ (($license->isExpired()) || ($license->isTerminated()) || ($license->terminates_diff_in_days <= ($threshold / 2)) || ($license->expires_diff_in_days <= ($threshold / 2))) ? '🚨' : (($license->expires_diff_in_days <= $threshold) ? '⚠️' : 'ℹ️ ') }} | {{ $license->name }} | {{ $license->expires_formatted_date }} {!! $license->expires_diff_for_humans ? ' ('.$license->expires_diff_for_humans .')' : '' !!} | {{ $license->terminates_formatted_date }} {{ $license->terminates_diff_for_humans ? ' ('.$license->terminates_diff_for_humans .')' : '' }}| -|
|
|
|
| +| {{ (($license->isExpired()) || ($license->isTerminated()) || ($license->terminates_diff_in_days <= ($threshold / 2)) || ($license->expires_diff_in_days <= ($threshold / 2))) ? '🚨' : (($license->expires_diff_in_days <= $threshold) ? '⚠️' : 'ℹ️ ') }} | {{ $license->name }} ({{ $license->manufacturer ? $license->manufacturer->name : '' }}) | {{ $license->category ? $license->category->name : '' }} | {{ $license->expires_formatted_date }} {!! $license->expires_diff_for_humans ? ' ('.$license->expires_diff_for_humans .')' : '' !!} | {{ $license->terminates_formatted_date }} {{ $license->terminates_diff_for_humans ? ' ('.$license->terminates_diff_for_humans .')' : '' }}| +|
|
|
|
|
| @endforeach
@endcomponent