Added category and manufacturer to expiring license report
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
|
||||
<x-mail::table>
|
||||
|
||||
| | {{ 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) ? '⚠️' : 'ℹ️ ') }} | <a href="{{ route('licenses.show', $license->id) }}">{{ $license->name }}</a> | {{ $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 .')' : '' }}|
|
||||
| <hr> | <hr> | <hr> | <hr> |
|
||||
| {{ (($license->isExpired()) || ($license->isTerminated()) || ($license->terminates_diff_in_days <= ($threshold / 2)) || ($license->expires_diff_in_days <= ($threshold / 2))) ? '🚨' : (($license->expires_diff_in_days <= $threshold) ? '⚠️' : 'ℹ️ ') }} | <a href="{{ route('licenses.show', $license->id) }}">{{ $license->name }}</a> ({{ $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 .')' : '' }}|
|
||||
| <hr> | <hr> | <hr> | <hr> | <hr> |
|
||||
@endforeach
|
||||
</x-mail::table>
|
||||
@endcomponent
|
||||
|
||||
Reference in New Issue
Block a user