Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
40c0ba9a95
4 changed files with 6 additions and 6 deletions
|
@ -58,7 +58,7 @@ class SendExpectedCheckinAlerts extends Command
|
||||||
$recipients = collect(explode(',', $settings->alert_email))->map(function ($item, $key) {
|
$recipients = collect(explode(',', $settings->alert_email))->map(function ($item, $key) {
|
||||||
return new AlertRecipient($item);
|
return new AlertRecipient($item);
|
||||||
});
|
});
|
||||||
Notification::send($recipients, new ExpectedCheckinAdminNotification($assets));
|
\Notification::send($recipients, new ExpectedCheckinAdminNotification($assets));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,14 +55,14 @@ class SendExpirationAlerts extends Command
|
||||||
$assets = Asset::getExpiringWarrantee($threshold);
|
$assets = Asset::getExpiringWarrantee($threshold);
|
||||||
if ($assets->count() > 0) {
|
if ($assets->count() > 0) {
|
||||||
$this->info(trans_choice('mail.assets_warrantee_alert', $assets->count(), ['count' => $assets->count(), 'threshold' => $threshold]));
|
$this->info(trans_choice('mail.assets_warrantee_alert', $assets->count(), ['count' => $assets->count(), 'threshold' => $threshold]));
|
||||||
Notification::send($recipients, new ExpiringAssetsNotification($assets, $threshold));
|
\Notification::send($recipients, new ExpiringAssetsNotification($assets, $threshold));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Expiring licenses
|
// Expiring licenses
|
||||||
$licenses = License::getExpiringLicenses($threshold);
|
$licenses = License::getExpiringLicenses($threshold);
|
||||||
if ($licenses->count() > 0) {
|
if ($licenses->count() > 0) {
|
||||||
$this->info(trans_choice('mail.license_expiring_alert', $licenses->count(), ['count' => $licenses->count(), 'threshold' => $threshold]));
|
$this->info(trans_choice('mail.license_expiring_alert', $licenses->count(), ['count' => $licenses->count(), 'threshold' => $threshold]));
|
||||||
Notification::send($recipients, new ExpiringLicenseNotification($licenses, $threshold));
|
\Notification::send($recipients, new ExpiringLicenseNotification($licenses, $threshold));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($settings->alert_email == '') {
|
if ($settings->alert_email == '') {
|
||||||
|
|
|
@ -52,7 +52,7 @@ class SendInventoryAlerts extends Command
|
||||||
return new AlertRecipient($item);
|
return new AlertRecipient($item);
|
||||||
});
|
});
|
||||||
|
|
||||||
Notification::send($recipients, new InventoryAlert($items, $settings->alert_threshold));
|
\Notification::send($recipients, new InventoryAlert($items, $settings->alert_threshold));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($settings->alert_email == '') {
|
if ($settings->alert_email == '') {
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
@if (!$asset->model)
|
@if (!$asset->model)
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="callout callout-danger">
|
<div class="callout callout-danger">
|
||||||
<h2>NO MODEL ASSOCIATED</h4>
|
<h2>NO MODEL ASSOCIATED</h2>
|
||||||
<p>This will break things in weird and horrible ways. Edit this asset now to assign it a model. </p>
|
<p>This will break things in weird and horrible ways. Edit this asset now to assign it a model. </p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -735,7 +735,7 @@
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (($asset->assignedTo) && ($asset->deleted_at==''))
|
@if (($asset->assignedTo) && ($asset->deleted_at==''))
|
||||||
<h2>{{ trans('admin/hardware/form.checkedout_to') }}</h4>
|
<h2>{{ trans('admin/hardware/form.checkedout_to') }}</h2>
|
||||||
<p>
|
<p>
|
||||||
@if($asset->checkedOutToUser()) <!-- Only users have avatars currently-->
|
@if($asset->checkedOutToUser()) <!-- Only users have avatars currently-->
|
||||||
<img src="{{ $asset->assignedTo->present()->gravatar() }}" class="user-image-inline" alt="{{ $asset->assignedTo->present()->fullName() }}">
|
<img src="{{ $asset->assignedTo->present()->gravatar() }}" class="user-image-inline" alt="{{ $asset->assignedTo->present()->fullName() }}">
|
||||||
|
|
Loading…
Add table
Reference in a new issue