mirror of
https://github.com/grokability/snipe-it.git
synced 2026-03-12 17:52:00 +08:00
Add asset details
This commit is contained in:
@@ -55,7 +55,7 @@ class BulkAssetCheckoutMail extends Mailable
|
||||
private function getIntroduction(): string
|
||||
{
|
||||
// @todo:
|
||||
return 'The following assets have been checked out to you:';
|
||||
return 'Assets have been checked out to you.';
|
||||
}
|
||||
|
||||
private function requiresAcceptance(): bool
|
||||
|
||||
@@ -1,13 +1,52 @@
|
||||
<x-mail::message>
|
||||
|
||||
<style>
|
||||
th, td {
|
||||
vertical-align: top;
|
||||
}
|
||||
hr {
|
||||
display: block;
|
||||
height: 1px;
|
||||
border: 0;
|
||||
border-top: 1px solid #ccc;
|
||||
margin: 1em 0;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
{{ $introduction }}
|
||||
|
||||
**{{ trans('general.administrator') }}**: {{ $admin->display_name }}
|
||||
|
||||
@if ($requires_acceptance == 1)
|
||||
@if ($requires_acceptance)
|
||||
One or more items require acceptance.<br>
|
||||
**[✔ Click here to review the terms of use and accept the items]({{ $acceptance_url }})**
|
||||
@endif
|
||||
|
||||
**{{ trans('general.administrator') }}**: {{ $admin->display_name }}
|
||||
|
||||
<x-mail::table>
|
||||
| | |
|
||||
| ------------- | ------------- |
|
||||
@foreach($assets as $asset)
|
||||
| **Asset Tag** | <a href="{{ route('hardware.show', $asset->id) }}">{{ $asset->display_name }}</a><br><small>{{trans('mail.serial').': '.$asset->serial}}</small> |
|
||||
@if (isset($asset->model?->category))
|
||||
| **{{ trans('general.category') }}** | {{ $asset->model->category->name }} |
|
||||
@endif
|
||||
@if (isset($asset->manufacturer))
|
||||
| **{{ trans('general.manufacturer') }}** | {{ $asset->manufacturer->name }} |
|
||||
@endif
|
||||
@if (isset($asset->model))
|
||||
| **{{ trans('general.asset_model') }}** | {{ $asset->model->name }} |
|
||||
@endif
|
||||
@if ((isset($asset->model?->model_number)))
|
||||
| **{{ trans('general.model_no') }}** | {{ $asset->model->model_number }} |
|
||||
@endif
|
||||
@if (isset($asset->assetstatus))
|
||||
| **{{ trans('general.status') }}** | {{ $asset->assetstatus->name }} |
|
||||
@endif
|
||||
| <hr> | <hr> |
|
||||
@endforeach
|
||||
</x-mail::table>
|
||||
|
||||
{{ trans('mail.best_regards') }}<br>
|
||||
|
||||
{{ $snipeSettings->site_name }}
|
||||
|
||||
Reference in New Issue
Block a user