2018-03-25 13:46:57 -07:00
|
|
|
@component('mail::message')
|
|
|
|
# {{ trans('mail.hello') }} {{ $target->present()->fullName() }},
|
|
|
|
|
|
|
|
{{ trans('mail.new_item_checked') }}
|
|
|
|
|
|
|
|
@if (($snipeSettings->show_images_in_email =='1') && $item->getImageUrl())
|
|
|
|
<center><img src="{{ $item->getImageUrl() }}" alt="Asset" style="max-width: 570px;"></center>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@component('mail::table')
|
|
|
|
| | |
|
|
|
|
| ------------- | ------------- |
|
2018-04-04 17:33:02 -07:00
|
|
|
@if ((isset($item->name)) && ($item->name!=''))
|
2018-03-25 13:46:57 -07:00
|
|
|
| **{{ trans('mail.asset_name') }}** | {{ $item->name }} |
|
2018-04-04 17:33:02 -07:00
|
|
|
@endif
|
2022-02-24 23:19:46 -08:00
|
|
|
@if (($item->name!=$item->asset_tag))
|
2018-03-25 13:46:57 -07:00
|
|
|
| **{{ trans('mail.asset_tag') }}** | {{ $item->asset_tag }} |
|
2022-02-24 23:19:46 -08:00
|
|
|
@endif
|
2018-03-25 13:46:57 -07:00
|
|
|
@if (isset($item->manufacturer))
|
|
|
|
| **{{ trans('general.manufacturer') }}** | {{ $item->manufacturer->name }} |
|
|
|
|
@endif
|
|
|
|
@if (isset($item->model))
|
|
|
|
| **{{ trans('general.asset_model') }}** | {{ $item->model->name }} |
|
|
|
|
@endif
|
2022-02-24 23:19:46 -08:00
|
|
|
@if ((isset($item->model->model_number)) && ($item->model->name!=$item->model->model_number))
|
2018-08-02 11:43:11 -07:00
|
|
|
| **{{ trans('general.model_no') }}** | {{ $item->model->model_number }} |
|
2018-03-25 13:46:57 -07:00
|
|
|
@endif
|
|
|
|
@if (isset($item->serial))
|
|
|
|
| **{{ trans('mail.serial') }}** | {{ $item->serial }} |
|
|
|
|
@endif
|
|
|
|
@if (isset($last_checkout))
|
|
|
|
| **{{ trans('mail.checkout_date') }}** | {{ $last_checkout }} |
|
|
|
|
@endif
|
2018-08-16 14:30:06 -07:00
|
|
|
@if ((isset($expected_checkin)) && ($expected_checkin!=''))
|
2018-03-25 13:46:57 -07:00
|
|
|
| **{{ trans('mail.expecting_checkin_date') }}** | {{ $expected_checkin }} |
|
|
|
|
@endif
|
|
|
|
@foreach($fields as $field)
|
|
|
|
@if (($item->{ $field->db_column_name() }!='') && ($field->show_in_email) && ($field->field_encrypted=='0'))
|
|
|
|
| **{{ $field->name }}** | {{ $item->{ $field->db_column_name() } }} |
|
|
|
|
@endif
|
|
|
|
@endforeach
|
|
|
|
@if ($admin)
|
|
|
|
| **{{ trans('general.administrator') }}** | {{ $admin->present()->fullName() }} |
|
|
|
|
@endif
|
|
|
|
@if ($note)
|
|
|
|
| **{{ trans('mail.additional_notes') }}** | {{ $note }} |
|
|
|
|
@endif
|
|
|
|
@endcomponent
|
|
|
|
|
|
|
|
@if (($req_accept == 1) && ($eula!=''))
|
|
|
|
{{ trans('mail.read_the_terms_and_click') }}
|
|
|
|
@elseif (($req_accept == 1) && ($eula==''))
|
|
|
|
{{ trans('mail.click_on_the_link_asset') }}
|
|
|
|
@elseif (($req_accept == 0) && ($eula!=''))
|
|
|
|
{{ trans('mail.read_the_terms') }}
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if ($eula)
|
|
|
|
@component('mail::panel')
|
|
|
|
{!! $eula !!}
|
|
|
|
@endcomponent
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if ($req_accept == 1)
|
|
|
|
**[✔ {{ trans('mail.i_have_read') }}]({{ $accept_url }})**
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
2020-11-12 15:05:22 -08:00
|
|
|
{{ trans('mail.best_regards') }}
|
2018-03-25 13:46:57 -07:00
|
|
|
|
|
|
|
{{ $snipeSettings->site_name }}
|
|
|
|
|
|
|
|
@endcomponent
|