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

77 lines
2 KiB
PHP
Raw Normal View History

@component('mail::message')
{{ trans('general.reminder_checked_out_items', array('reply_to_name' => config('mail.reply_to.name'), 'reply_to_address' => config('mail.reply_to.address')))}}
@component('mail::table')
@if ($assets->count() > 0)
2020-12-08 20:04:01 -08:00
## {{ $assets->count() }} {{ trans('general.assets') }}
2020-12-08 20:04:01 -08:00
<table width="100%">
2023-02-12 09:59:56 -08:00
<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>
@foreach($assets as $asset)
<tr>
<td>{{ $asset->present()->name }}</td>
<td> {{ $asset->asset_tag }} </td>
<td> {{ $asset->serial }} </td>
@if (($snipeSettings->show_images_in_email =='1') && $asset->getImageUrl())
<td>
<img src="{{ asset($asset->getImageUrl()) }}" alt="Asset" style="max-width: 64px;">
</td>
@endif
</tr>
@endforeach
2020-12-08 20:04:01 -08:00
</table>
@endif
@if ($accessories->count() > 0)
## {{ $accessories->count() }} {{ trans('general.accessories') }}
2020-12-08 20:04:01 -08:00
<table width="100%">
2023-02-12 10:01:40 -08:00
<tr><th align="left">{{ trans('mail.name') }} </th> <th></th> </tr>
@foreach($accessories as $accessory)
<tr>
<td>{{ $accessory->name }}</td>
@if (($snipeSettings->show_images_in_email =='1') && $accessory->getImageUrl())
<td>
<img src="{{ asset($accessory->getImageUrl()) }}" alt="Accessory" style="max-width: 64px;">
</td>
@endif
</tr>
@endforeach
2020-12-08 20:04:01 -08:00
</table>
@endif
@if ($licenses->count() > 0)
## {{ $licenses->count() }} {{ trans('general.licenses') }}
2020-12-08 20:04:01 -08:00
<table width="100%">
2023-02-22 17:52:47 -08:00
<tr><th align="left">{{ trans('mail.name') }} </th></tr>
@foreach($licenses as $license)
<tr>
<td>{{ $license->name }}</td>
</tr>
@endforeach
2020-12-08 20:04:01 -08:00
</table>
@endif
@if ($consumables->count() > 0)
## {{ $consumables->count() }} {{ trans('general.consumables') }}
<table width="100%">
<tr><th align="left">{{ trans('mail.name') }} </th> <th></th> </tr>
@foreach($consumables as $consumable)
<tr>
<td>{{ $consumable->name }}</td>
</tr>
@endforeach
</table>
@endif
@endcomponent
@endcomponent