Skip to content

Commit

Permalink
adds status to check in and out
Browse files Browse the repository at this point in the history
  • Loading branch information
Godmartinz committed Jul 30, 2024
1 parent 99741db commit eb6f330
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/Notifications/CheckinAssetNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ public function toMail()
$message = (new MailMessage)->markdown('notifications.markdown.checkin-asset',
[
'item' => $this->item,
'status' => $this->item->assetstatus->name ?: '',
'admin' => $this->admin,
'note' => $this->note,
'target' => $this->target,
Expand Down
2 changes: 1 addition & 1 deletion app/Notifications/CheckoutAssetNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public function toMail()
[
'item' => $this->item,
'admin' => $this->admin,
'status' => $this->item->assetstatus(),
'status' => $this->item->assetstatus->name ?: '',
'note' => $this->note,
'target' => $this->target,
'fields' => $fields,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
@if (isset($last_checkout))
| **{{ trans('mail.checkout_date') }}** | {{ $last_checkout }} |
@endif
@if (isset($status))
| **{{ trans('general.status') }}** | {{ $status }} |
@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() } }} |
Expand Down

0 comments on commit eb6f330

Please sign in to comment.