mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08:00
Merge pull request #11764 from BasO12/master
Added notes to audit mail notification
This commit is contained in:
commit
c194c8a0c8
|
@ -50,6 +50,9 @@
|
|||
<li><b>{{ trans('general.asset_name') }} </b> {{ $asset->model->name }}</li>
|
||||
@endisset
|
||||
<li><b>{{ trans('general.asset_tag') }}</b> {{ $asset->asset_tag }}</li>
|
||||
@isset ($asset->notes)
|
||||
<li><b>{{ trans('general.notes') }}</b> {{ $asset->notes }}</li>
|
||||
@endisset
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
### {{ trans_choice('mail.upcoming-audits', $assets->count(), ['count' => $assets->count(), 'threshold' => $threshold]) }}
|
||||
|
||||
@component('mail::table')
|
||||
| |{{ trans('mail.name') }}|{{ trans('general.last_audit') }}|{{ trans('general.next_audit_date') }}|{{ trans('mail.Days') }}|{{ trans('mail.supplier') }} | {{ trans('mail.assigned_to') }}
|
||||
|-|:------------- |:-------------|:---------|:---------|:---------|:---------|
|
||||
| |{{ trans('mail.name') }}|{{ trans('general.last_audit') }}|{{ trans('general.next_audit_date') }}|{{ trans('mail.Days') }}|{{ trans('mail.supplier') }} | {{ trans('mail.assigned_to') }}|{{ trans('general.notes') }}
|
||||
|-|:------------- |:-------------|:---------|:---------|:---------|:---------|:---------|
|
||||
@foreach ($assets as $asset)
|
||||
@php
|
||||
$next_audit_date = Helper::getFormattedDateObject($asset->next_audit_date, 'date', false);
|
||||
|
@ -12,7 +12,7 @@ $last_audit_date = Helper::getFormattedDateObject($asset->last_audit_date, 'date
|
|||
$diff = Carbon::parse(Carbon::now())->diffInDays($asset->next_audit_date, false);
|
||||
$icon = ($diff <= 7) ? '🚨' : (($diff <= 14) ? '⚠️' : ' ');
|
||||
@endphp
|
||||
|{{ $icon }}| [{{ $asset->present()->name }}]({{ route('hardware.show', $asset->id) }}) | {{ $last_audit_date }}| {{ $next_audit_date }} | {{ $diff }} | {{ ($asset->supplier ? e($asset->supplier->name) : '') }}|{{ ($asset->assignedTo ? $asset->assignedTo->present()->name() : '') }}
|
||||
|{{ $icon }}| [{{ $asset->present()->name }}]({{ route('hardware.show', $asset->id) }}) | {{ $last_audit_date }}| {{ $next_audit_date }} | {{ $diff }} | {{ ($asset->supplier ? e($asset->supplier->name) : '') }}|{{ ($asset->assignedTo ? $asset->assignedTo->present()->name() : '') }}|{{ $asset->notes }}
|
||||
@endforeach
|
||||
@endcomponent
|
||||
|
||||
|
|
Loading…
Reference in a new issue