mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 22:07:29 -08:00
Make dashboard snapshots clickable
This commit is contained in:
parent
74c20e62d5
commit
2ded2ff53a
|
@ -30,69 +30,78 @@
|
|||
<div class="row">
|
||||
<!-- panel -->
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-teal">
|
||||
<div class="inner">
|
||||
<h3>{{ number_format($counts['asset']) }}</h3>
|
||||
<p>{{ trans('general.total_assets') }}</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fa fa-barcode"></i>
|
||||
</div>
|
||||
@can('index', \App\Models\Asset::class)
|
||||
<a href="{{ route('hardware.index') }}" class="small-box-footer">{{ trans('general.moreinfo') }} <i class="fa fa-arrow-circle-right"></i></a>
|
||||
@endcan
|
||||
</div>
|
||||
<a href="{{ route('hardware.index') }}">
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-teal">
|
||||
<div class="inner">
|
||||
<h3>{{ number_format($counts['asset']) }}</h3>
|
||||
<p>{{ trans('general.total_assets') }}</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fa fa-barcode"></i>
|
||||
</div>
|
||||
@can('index', \App\Models\Asset::class)
|
||||
<span class="small-box-footer">{{ trans('general.moreinfo') }} <i class="fa fa-arrow-circle-right"></i></span>
|
||||
@endcan
|
||||
</div>
|
||||
</a>
|
||||
</div><!-- ./col -->
|
||||
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-maroon">
|
||||
<div class="inner">
|
||||
<h3>{{ number_format($counts['license']) }}</h3>
|
||||
<p>{{ trans('general.total_licenses') }}</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fa fa-floppy-o"></i>
|
||||
</div>
|
||||
@can('view', \App\Models\License::class)
|
||||
<a href="{{ route('licenses.index') }}" class="small-box-footer">{{ trans('general.moreinfo') }} <i class="fa fa-arrow-circle-right"></i></a>
|
||||
@endcan
|
||||
</div>
|
||||
<a href="{{ route('licenses.index') }}">
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-maroon">
|
||||
<div class="inner">
|
||||
<h3>{{ number_format($counts['license']) }}</h3>
|
||||
<p>{{ trans('general.total_licenses') }}</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fa fa-floppy-o"></i>
|
||||
</div>
|
||||
@can('view', \App\Models\License::class)
|
||||
<span class="small-box-footer">{{ trans('general.moreinfo') }} <i class="fa fa-arrow-circle-right"></i></span>
|
||||
@endcan
|
||||
</div>
|
||||
</a>
|
||||
</div><!-- ./col -->
|
||||
|
||||
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-orange">
|
||||
<div class="inner">
|
||||
<h3> {{ number_format($counts['accessory']) }}</h3>
|
||||
<p>{{ trans('general.total_accessories') }}</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fa fa-keyboard-o"></i>
|
||||
</div>
|
||||
@can('index', \App\Models\Accessory::class)
|
||||
<a href="{{ route('accessories.index') }}" class="small-box-footer">{{ trans('general.moreinfo') }} <i class="fa fa-arrow-circle-right"></i></a>
|
||||
@endcan
|
||||
</div>
|
||||
<a href="{{ route('accessories.index') }}">
|
||||
<div class="small-box bg-orange">
|
||||
<div class="inner">
|
||||
<h3> {{ number_format($counts['accessory']) }}</h3>
|
||||
<p>{{ trans('general.total_accessories') }}</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fa fa-keyboard-o"></i>
|
||||
</div>
|
||||
@can('index', \App\Models\Accessory::class)
|
||||
<span class="small-box-footer">{{ trans('general.moreinfo') }} <i class="fa fa-arrow-circle-right"></i></span>
|
||||
@endcan
|
||||
</div>
|
||||
</a>
|
||||
</div><!-- ./col -->
|
||||
|
||||
<div class="col-lg-3 col-xs-6">
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-purple">
|
||||
<div class="inner">
|
||||
<h3> {{ number_format($counts['consumable']) }}</h3>
|
||||
<p>{{ trans('general.total_consumables') }}</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fa fa-tint"></i>
|
||||
</div>
|
||||
@can('index', \App\Models\Consumable::class)
|
||||
<a href="{{ route('consumables.index') }}" class="small-box-footer">{{ trans('general.moreinfo') }} <i class="fa fa-arrow-circle-right"></i></a>
|
||||
@endcan
|
||||
</div>
|
||||
</div><!-- ./col -->
|
||||
|
||||
<a href="{{ route('consumables.index') }}">
|
||||
<div class="small-box bg-purple">
|
||||
<div class="inner">
|
||||
<h3> {{ number_format($counts['consumable']) }}</h3>
|
||||
<p>{{ trans('general.total_consumables') }}</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fa fa-tint"></i>
|
||||
</div>
|
||||
@can('index', \App\Models\Consumable::class)
|
||||
<span class="small-box-footer">{{ trans('general.moreinfo') }} <i class="fa fa-arrow-circle-right"></i></span>
|
||||
@endcan
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if ($counts['grand_total'] == 0)
|
||||
|
@ -311,4 +320,4 @@
|
|||
}
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@endpush
|
||||
|
|
Loading…
Reference in a new issue