diff --git a/resources/views/mail/markdown/checkin-asset.blade.php b/resources/views/mail/markdown/checkin-asset.blade.php index 523ba66aa1..82e0137914 100644 --- a/resources/views/mail/markdown/checkin-asset.blade.php +++ b/resources/views/mail/markdown/checkin-asset.blade.php @@ -16,6 +16,9 @@ @if (($item->name!=$item->asset_tag)) | **{{ trans('mail.asset_tag') }}** | {{ $item->asset_tag }} | @endif +@if (isset($item->model->category)) +| **{{ trans('general.category') }}** | {{ $item->model->category->name }} | +@endif @if (isset($item->manufacturer)) | **{{ trans('general.manufacturer') }}** | {{ $item->manufacturer->name }} | @endif diff --git a/resources/views/mail/markdown/checkout-asset.blade.php b/resources/views/mail/markdown/checkout-asset.blade.php index aae0b21584..72e5860e2c 100644 --- a/resources/views/mail/markdown/checkout-asset.blade.php +++ b/resources/views/mail/markdown/checkout-asset.blade.php @@ -16,6 +16,9 @@ @if (($item->name!=$item->asset_tag)) | **{{ trans('mail.asset_tag') }}** | {{ $item->asset_tag }} | @endif +@if (isset($item->model->category)) +| **{{ trans('general.category') }}** | {{ $item->model->category->name }} | +@endif @if (isset($item->manufacturer)) | **{{ trans('general.manufacturer') }}** | {{ $item->manufacturer->name }} | @endif diff --git a/resources/views/notifications/markdown/asset-acceptance.blade.php b/resources/views/notifications/markdown/asset-acceptance.blade.php index c5c2a2fa27..65446f8a30 100644 --- a/resources/views/notifications/markdown/asset-acceptance.blade.php +++ b/resources/views/notifications/markdown/asset-acceptance.blade.php @@ -22,6 +22,9 @@ @if ((isset($item_tag)) && ($item_tag!='')) | **{{ trans('mail.asset_tag') }}** | {{ $item_tag }} | @endif +@if (isset($item->model->category)) +| **{{ trans('general.category') }}** | {{ $item->model->category->name }} | +@endif @if ((isset($item_model)) && ($item_model!='')) | **{{ trans('mail.asset_name') }}** | {{ $item_model }} | @endif diff --git a/resources/views/notifications/markdown/asset-requested.blade.php b/resources/views/notifications/markdown/asset-requested.blade.php index 56ceefb4a7..a634993f99 100644 --- a/resources/views/notifications/markdown/asset-requested.blade.php +++ b/resources/views/notifications/markdown/asset-requested.blade.php @@ -18,6 +18,9 @@ @if ((isset($item->asset_tag)) && ($item->asset_tag!='')) | **{{ trans('mail.asset_tag') }}** | {{ $item->asset_tag }} | @endif +@if (isset($item->model->category)) +| **{{ trans('general.category') }}** | {{ $item->model->category->name }} | +@endif @if ((isset($item->name)) && ($item->name!='')) | **{{ trans('mail.asset_name') }}** | {{ $item->name }} | @endif