mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-28 23:19:42 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
ec878202f7
|
@ -22,9 +22,6 @@ class CustomAssetReportRequest extends Request
|
||||||
public function rules()
|
public function rules()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'purchase_date' => 'date|date_format:Y-m-d|nullable',
|
|
||||||
'checkout_date' => 'date|date_format:Y-m-d|nullable',
|
|
||||||
'checkin_date' => 'date|date_format:Y-m-d|nullable',
|
|
||||||
'purchase_start' => 'date|date_format:Y-m-d|nullable',
|
'purchase_start' => 'date|date_format:Y-m-d|nullable',
|
||||||
'purchase_end' => 'date|date_format:Y-m-d|nullable',
|
'purchase_end' => 'date|date_format:Y-m-d|nullable',
|
||||||
'created_start' => 'date|date_format:Y-m-d|nullable',
|
'created_start' => 'date|date_format:Y-m-d|nullable',
|
||||||
|
|
|
@ -274,10 +274,80 @@
|
||||||
</div> <!--/row-->
|
</div> <!--/row-->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
@if ($snipeSettings->full_multiple_companies_support=='1')
|
||||||
|
<!-- Companies -->
|
||||||
|
<div class="box box-default">
|
||||||
|
<div class="box-header with-border">
|
||||||
|
<h2 class="box-title">{{ trans('general.companies') }}</h2>
|
||||||
|
<div class="box-tools pull-right">
|
||||||
|
<button type="button" class="btn btn-box-tool" data-widget="collapse">
|
||||||
|
<i class="fas fa-minus" aria-hidden="true"></i>
|
||||||
|
<span class="sr-only">{{ trans('general.collapse') }}</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- /.box-header -->
|
||||||
|
<div class="box-body">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table
|
||||||
|
data-cookie-id-table="dashCompanySummary"
|
||||||
|
data-height="400"
|
||||||
|
data-pagination="true"
|
||||||
|
data-side-pagination="server"
|
||||||
|
data-sort-order="desc"
|
||||||
|
data-sort-field="assets_count"
|
||||||
|
id="dashCompanySummary"
|
||||||
|
class="table table-striped snipe-table"
|
||||||
|
data-url="{{ route('api.companies.index', ['sort' => 'assets_count', 'order' => 'asc']) }}">
|
||||||
|
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="col-sm-3" data-visible="true" data-field="name" data-formatter="companiesLinkFormatter" data-sortable="true">{{ trans('general.name') }}</th>
|
||||||
|
<th class="col-sm-1" data-visible="true" data-field="users_count" data-sortable="true">
|
||||||
|
<i class="fas fa-users" aria-hidden="true"></i>
|
||||||
|
<span class="sr-only">{{ trans('general.people') }}</span>
|
||||||
|
</th>
|
||||||
|
<th class="col-sm-1" data-visible="true" data-field="assets_count" data-sortable="true">
|
||||||
|
<i class="fas fa-barcode" aria-hidden="true"></i>
|
||||||
|
<span class="sr-only">{{ trans('general.asset_count') }}</span>
|
||||||
|
</th>
|
||||||
|
<th class="col-sm-1" data-visible="true" data-field="accessories_count" data-sortable="true">
|
||||||
|
<i class="far fa-keyboard" aria-hidden="true"></i>
|
||||||
|
<span class="sr-only">{{ trans('general.accessories_count') }}</span>
|
||||||
|
</th>
|
||||||
|
<th class="col-sm-1" data-visible="true" data-field="consumables_count" data-sortable="true">
|
||||||
|
<i class="fas fa-tint" aria-hidden="true"></i>
|
||||||
|
<span class="sr-only">{{ trans('general.consumables_count') }}</span>
|
||||||
|
</th>
|
||||||
|
<th class="col-sm-1" data-visible="true" data-field="components_count" data-sortable="true">
|
||||||
|
<i class="far fa-hdd" aria-hidden="true"></i>
|
||||||
|
<span class="sr-only">{{ trans('general.components_count') }}</span>
|
||||||
|
</th>
|
||||||
|
<th class="col-sm-1" data-visible="true" data-field="licenses_count" data-sortable="true">
|
||||||
|
<i class="far fa-save" aria-hidden="true"></i>
|
||||||
|
<span class="sr-only">{{ trans('general.licenses_count') }}</span>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div> <!-- /.col -->
|
||||||
|
<div class="text-center col-md-12" style="padding-top: 10px;">
|
||||||
|
<a href="{{ route('companies.index') }}" class="btn btn-primary btn-sm" style="width: 100%">{{ trans('general.viewall') }}</a>
|
||||||
|
</div>
|
||||||
|
</div> <!-- /.row -->
|
||||||
|
|
||||||
|
</div><!-- /.box-body -->
|
||||||
|
</div> <!-- /.box -->
|
||||||
|
|
||||||
|
@else
|
||||||
<!-- Locations -->
|
<!-- Locations -->
|
||||||
<div class="box box-default">
|
<div class="box box-default">
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
<h2 class="box-title">{{ trans('general.asset') }} {{ trans('general.locations') }}</h2>
|
<h2 class="box-title">{{ trans('general.locations') }}</h2>
|
||||||
<div class="box-tools pull-right">
|
<div class="box-tools pull-right">
|
||||||
<button type="button" class="btn btn-box-tool" data-widget="collapse">
|
<button type="button" class="btn btn-box-tool" data-widget="collapse">
|
||||||
<i class="fas fa-minus" aria-hidden="true"></i>
|
<i class="fas fa-minus" aria-hidden="true"></i>
|
||||||
|
@ -331,6 +401,9 @@
|
||||||
|
|
||||||
</div><!-- /.box-body -->
|
</div><!-- /.box-body -->
|
||||||
</div> <!-- /.box -->
|
</div> <!-- /.box -->
|
||||||
|
|
||||||
|
@endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue