mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
c607d89817
|
@ -171,20 +171,26 @@ class StatuslabelsController extends Controller
|
||||||
|
|
||||||
$labels=[];
|
$labels=[];
|
||||||
$points=[];
|
$points=[];
|
||||||
$colors=[];
|
$default_color = Helper::chartColors();
|
||||||
|
$default_color_count = 0;
|
||||||
|
|
||||||
foreach ($statuslabels as $statuslabel) {
|
foreach ($statuslabels as $statuslabel) {
|
||||||
if ($statuslabel->assets_count > 0) {
|
if ($statuslabel->assets_count > 0) {
|
||||||
|
|
||||||
$labels[]=$statuslabel->name. ' ('.number_format($statuslabel->assets_count).')';
|
$labels[]=$statuslabel->name. ' ('.number_format($statuslabel->assets_count).')';
|
||||||
$points[]=$statuslabel->assets_count;
|
$points[]=$statuslabel->assets_count;
|
||||||
|
|
||||||
if ($statuslabel->color!='') {
|
if ($statuslabel->color!='') {
|
||||||
$colors[]=$statuslabel->color;
|
$colors_array[] = $statuslabel->color;
|
||||||
|
} else {
|
||||||
|
$colors_array[] = $default_color[$default_color_count];
|
||||||
|
$default_color_count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$colors_array = array_merge($colors, Helper::chartColors());
|
$colors_array = array_merge($colors_array, Helper::chartColors());
|
||||||
|
|
||||||
$result= [
|
$result= [
|
||||||
"labels" => $labels,
|
"labels" => $labels,
|
||||||
|
|
|
@ -673,6 +673,19 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
@if ($asset->last_checkout!='')
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-2">
|
||||||
|
<strong>
|
||||||
|
{{ trans('admin/hardware/table.checkout_date') }}
|
||||||
|
</strong>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
{{ \App\Helpers\Helper::getFormattedDateObject($asset->last_checkout, 'datetime', false) }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
|
@ -110,7 +110,9 @@
|
||||||
{{ $asset->defaultloc->name }}
|
{{ $asset->defaultloc->name }}
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td>{{ $asset->purchase_date }}</td>
|
<td>
|
||||||
|
{{ \Carbon\Carbon::parse($asset->purchase_date)->format('Y-m-d') }}
|
||||||
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
@if ($asset->model->eol) {{ $asset->present()->eol_date() }}
|
@if ($asset->model->eol) {{ $asset->present()->eol_date() }}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{{-- Header --}}
|
{{-- Header --}}
|
||||||
@slot('header')
|
@slot('header')
|
||||||
@component('mail::header', ['url' => config('app.url')])
|
@component('mail::header', ['url' => config('app.url')])
|
||||||
@if (($snipeSettings->show_images_in_email=='1' ) && ($snipeSettings::setupCompleted()))
|
@if (isset($snipeSettings) && ($snipeSettings->show_images_in_email=='1' ) && ($snipeSettings::setupCompleted()))
|
||||||
|
|
||||||
@if ($snipeSettings->brand == '3')
|
@if ($snipeSettings->brand == '3')
|
||||||
@if ($snipeSettings->logo!='')
|
@if ($snipeSettings->logo!='')
|
||||||
|
|
Loading…
Reference in a new issue