Skip to content

Commit

Permalink
Merge pull request #15920 from akemidx/asset-category-in-emails
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe authored Dec 4, 2024
2 parents 43d66a8 + ca0f8ac commit a137e31
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@
## {{ $assets->count() }} {{ trans('general.assets') }}

<table width="100%">
<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>
<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>


@foreach($assets as $asset)
<tr>
<td>{{ $asset->present()->name }}</td>
<td> {{ $asset->asset_tag }} </td>
<td> {{ $asset->serial }} </td>
<td> {{ $asset->model->category->name }}</td>
@if (($snipeSettings->show_images_in_email =='1') && $asset->getImageUrl())
<td>
<img src="{{ asset($asset->getImageUrl()) }}" alt="Asset" style="max-width: 64px;">
Expand Down

0 comments on commit a137e31

Please sign in to comment.