mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Merge pull request #15920 from akemidx/asset-category-in-emails
Some checks failed
Crowdin Action / upload-sources-to-crowdin (push) Has been cancelled
Docker images (Alpine) / docker (push) Has been cancelled
Docker images / docker (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.1) (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.2) (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.3) (push) Has been cancelled
Tests in SQLite / PHP ${{ matrix.php-version }} (8.1.1) (push) Has been cancelled
Some checks failed
Crowdin Action / upload-sources-to-crowdin (push) Has been cancelled
Docker images (Alpine) / docker (push) Has been cancelled
Docker images / docker (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.1) (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.2) (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.3) (push) Has been cancelled
Tests in SQLite / PHP ${{ matrix.php-version }} (8.1.1) (push) Has been cancelled
This commit is contained in:
commit
a137e31797
|
@ -9,12 +9,15 @@
|
||||||
## {{ $assets->count() }} {{ trans('general.assets') }}
|
## {{ $assets->count() }} {{ trans('general.assets') }}
|
||||||
|
|
||||||
<table width="100%">
|
<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)
|
@foreach($assets as $asset)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $asset->present()->name }}</td>
|
<td>{{ $asset->present()->name }}</td>
|
||||||
<td> {{ $asset->asset_tag }} </td>
|
<td> {{ $asset->asset_tag }} </td>
|
||||||
<td> {{ $asset->serial }} </td>
|
<td> {{ $asset->serial }} </td>
|
||||||
|
<td> {{ $asset->model->category->name }}</td>
|
||||||
@if (($snipeSettings->show_images_in_email =='1') && $asset->getImageUrl())
|
@if (($snipeSettings->show_images_in_email =='1') && $asset->getImageUrl())
|
||||||
<td>
|
<td>
|
||||||
<img src="{{ asset($asset->getImageUrl()) }}" alt="Asset" style="max-width: 64px;">
|
<img src="{{ asset($asset->getImageUrl()) }}" alt="Asset" style="max-width: 64px;">
|
||||||
|
|
Loading…
Reference in a new issue