mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-13 06:47:46 -08:00
adds status to check in and out
This commit is contained in:
parent
99741db645
commit
eb6f330e67
|
@ -162,6 +162,7 @@ class CheckinAssetNotification extends Notification
|
||||||
$message = (new MailMessage)->markdown('notifications.markdown.checkin-asset',
|
$message = (new MailMessage)->markdown('notifications.markdown.checkin-asset',
|
||||||
[
|
[
|
||||||
'item' => $this->item,
|
'item' => $this->item,
|
||||||
|
'status' => $this->item->assetstatus->name ?: '',
|
||||||
'admin' => $this->admin,
|
'admin' => $this->admin,
|
||||||
'note' => $this->note,
|
'note' => $this->note,
|
||||||
'target' => $this->target,
|
'target' => $this->target,
|
||||||
|
|
|
@ -209,7 +209,7 @@ public function toGoogleChat()
|
||||||
[
|
[
|
||||||
'item' => $this->item,
|
'item' => $this->item,
|
||||||
'admin' => $this->admin,
|
'admin' => $this->admin,
|
||||||
'status' => $this->item->assetstatus(),
|
'status' => $this->item->assetstatus->name ?: '',
|
||||||
'note' => $this->note,
|
'note' => $this->note,
|
||||||
'target' => $this->target,
|
'target' => $this->target,
|
||||||
'fields' => $fields,
|
'fields' => $fields,
|
||||||
|
|
|
@ -31,6 +31,9 @@
|
||||||
@if (isset($last_checkout))
|
@if (isset($last_checkout))
|
||||||
| **{{ trans('mail.checkout_date') }}** | {{ $last_checkout }} |
|
| **{{ trans('mail.checkout_date') }}** | {{ $last_checkout }} |
|
||||||
@endif
|
@endif
|
||||||
|
@if (isset($status))
|
||||||
|
| **{{ trans('general.status') }}** | {{ $status }} |
|
||||||
|
@endif
|
||||||
@foreach($fields as $field)
|
@foreach($fields as $field)
|
||||||
@if (($item->{ $field->db_column_name() }!='') && ($field->show_in_email) && ($field->field_encrypted=='0'))
|
@if (($item->{ $field->db_column_name() }!='') && ($field->show_in_email) && ($field->field_encrypted=='0'))
|
||||||
| **{{ $field->name }}** | {{ $item->{ $field->db_column_name() } }} |
|
| **{{ $field->name }}** | {{ $item->{ $field->db_column_name() } }} |
|
||||||
|
|
Loading…
Reference in a new issue