Skip to content

Commit a137e31

Browse files
authored
Merge pull request #15920 from akemidx/asset-category-in-emails
2 parents 43d66a8 + ca0f8ac commit a137e31

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/views/notifications/markdown/user-inventory.blade.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@
99
## {{ $assets->count() }} {{ trans('general.assets') }}
1010

1111
<table width="100%">
12-
<tr><th align="left">{{ trans('mail.name') }} </th><th align="left">{{ trans('mail.asset_tag') }}</th><th align="left">{{ trans('admin/hardware/table.serial') }}</th> <th></th> </tr>
12+
<tr><th align="left">{{ trans('mail.name') }} </th><th align="left">{{ trans('mail.asset_tag') }}</th><th align="left">{{ trans('admin/hardware/table.serial') }}</th><th align="left">{{ trans('general.category') }}</th> <th></th> </tr>
13+
14+
1315
@foreach($assets as $asset)
1416
<tr>
1517
<td>{{ $asset->present()->name }}</td>
1618
<td> {{ $asset->asset_tag }} </td>
1719
<td> {{ $asset->serial }} </td>
20+
<td> {{ $asset->model->category->name }}</td>
1821
@if (($snipeSettings->show_images_in_email =='1') && $asset->getImageUrl())
1922
<td>
2023
<img src="{{ asset($asset->getImageUrl()) }}" alt="Asset" style="max-width: 64px;">

0 commit comments

Comments
 (0)