mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-14 17:44:17 -08:00
0c09f2b2c0
Signed-off-by: snipe <snipe@snipe.net>
262 lines
13 KiB
PHP
262 lines
13 KiB
PHP
@extends('layouts/default')
|
|
|
|
{{-- Page title --}}
|
|
@section('title')
|
|
{{ $company->name }}
|
|
@parent
|
|
@stop
|
|
|
|
{{-- Page content --}}
|
|
@section('content')
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="nav-tabs-custom">
|
|
<ul class="nav nav-tabs">
|
|
|
|
|
|
<li class="active">
|
|
<a href="#asset_tab" data-toggle="tab">
|
|
<span class="hidden-lg hidden-md">
|
|
<i class="fas fa-barcode" aria-hidden="true"></i>
|
|
</span>
|
|
<span class="hidden-xs hidden-sm">{{ trans('general.assets') }}
|
|
{!! ($company->assets()->AssetsForShow()->count() > 0 ) ? '<badge class="badge badge-secondary">'.number_format($company->assets()->AssetsForShow()->count()).'</badge>' : '' !!}
|
|
|
|
</span>
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#licenses_tab" data-toggle="tab">
|
|
<span class="hidden-lg hidden-md">
|
|
<i class="far fa-save"></i>
|
|
</span>
|
|
<span class="hidden-xs hidden-sm">{{ trans('general.licenses') }}
|
|
{!! ($company->licenses->count() > 0 ) ? '<badge class="badge badge-secondary">'.number_format($company->licenses->count()).'</badge>' : '' !!}
|
|
</span>
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#accessories_tab" data-toggle="tab">
|
|
<span class="hidden-lg hidden-md">
|
|
<i class="far fa-keyboard"></i>
|
|
</span> <span class="hidden-xs hidden-sm">{{ trans('general.accessories') }}
|
|
{!! ($company->accessories->count() > 0 ) ? '<badge class="badge badge-secondary">'.number_format($company->accessories->count()).'</badge>' : '' !!}
|
|
</span>
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#consumables_tab" data-toggle="tab">
|
|
<span class="hidden-lg hidden-md">
|
|
<i class="fas fa-tint"></i></span>
|
|
<span class="hidden-xs hidden-sm">{{ trans('general.consumables') }}
|
|
{!! ($company->consumables->count() > 0 ) ? '<badge class="badge badge-secondary">'.number_format($company->consumables->count()).'</badge>' : '' !!}
|
|
</span>
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#components_tab" data-toggle="tab">
|
|
<span class="hidden-lg hidden-md">
|
|
<i class="far fa-hdd"></i></span>
|
|
<span class="hidden-xs hidden-sm">{{ trans('general.components') }}
|
|
{!! (($company->components) && ($company->components->count() > 0 )) ? '<badge class="badge badge-secondary">'.number_format($company->components->count()).'</badge>' : '' !!}
|
|
</span>
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#users_tab" data-toggle="tab">
|
|
<span class="hidden-lg hidden-md">
|
|
<x-icon type="users" /></span>
|
|
<span class="hidden-xs hidden-sm">{{ trans('general.people') }}
|
|
{!! (($company->users) && ($company->users->count() > 0 )) ? '<badge class="badge badge-secondary">'.number_format($company->users->count()).'</badge>' : '' !!}
|
|
</span>
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane fade in active" id="asset_tab">
|
|
<!-- checked out assets table -->
|
|
<div class="table table-responsive">
|
|
@include('partials.asset-bulk-actions')
|
|
|
|
<table
|
|
data-columns="{{ \App\Presenters\AssetPresenter::dataTableLayout() }}"
|
|
data-cookie-id-table="assetsListingTable"
|
|
data-pagination="true"
|
|
data-id-table="assetsListingTable"
|
|
data-search="true"
|
|
data-side-pagination="server"
|
|
data-show-columns="true"
|
|
data-show-export="true"
|
|
data-show-refresh="true"
|
|
data-sort-order="asc"
|
|
data-toolbar="#assetsBulkEditToolbar"
|
|
data-bulk-button-id="#bulkAssetEditButton"
|
|
data-bulk-form-id="#assetsBulkForm"
|
|
data-click-to-select="true"
|
|
id="assetsListingTable"
|
|
class="table table-striped snipe-table"
|
|
data-url="{{route('api.assets.index',['company_id' => $company->id]) }}"
|
|
data-export-options='{
|
|
"fileName": "export-companies-{{ str_slug($company->name) }}-assets-{{ date('Y-m-d') }}",
|
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
|
}'>
|
|
</table>
|
|
</div>
|
|
</div><!-- /asset_tab -->
|
|
|
|
<div class="tab-pane" id="licenses_tab">
|
|
<div class="table-responsive">
|
|
|
|
<table
|
|
data-columns="{{ \App\Presenters\LicensePresenter::dataTableLayout() }}"
|
|
data-cookie-id-table="licensesTable"
|
|
data-pagination="true"
|
|
data-id-table="licensesTable"
|
|
data-search="true"
|
|
data-side-pagination="server"
|
|
data-show-columns="true"
|
|
data-show-export="true"
|
|
data-show-refresh="true"
|
|
data-sort-order="asc"
|
|
id="licensesTable"
|
|
class="table table-striped snipe-table"
|
|
data-url="{{route('api.licenses.index',['company_id' => $company->id]) }}"
|
|
data-export-options='{
|
|
"fileName": "export-companies-{{ str_slug($company->name) }}-licenses-{{ date('Y-m-d') }}",
|
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
|
}'>
|
|
</table>
|
|
|
|
</div>
|
|
</div><!-- /licenses-tab -->
|
|
|
|
<div class="tab-pane" id="accessories_tab">
|
|
<div class="table-responsive">
|
|
|
|
<table
|
|
data-columns="{{ \App\Presenters\AccessoryPresenter::dataTableLayout() }}"
|
|
data-cookie-id-table="accessoriesTable"
|
|
data-pagination="true"
|
|
data-id-table="accessoriesTable"
|
|
data-search="true"
|
|
data-side-pagination="server"
|
|
data-show-columns="true"
|
|
data-show-export="true"
|
|
data-show-refresh="true"
|
|
data-sort-order="asc"
|
|
id="accessoriesTable"
|
|
class="table table-striped snipe-table"
|
|
data-url="{{route('api.accessories.index',['company_id' => $company->id]) }}"
|
|
data-export-options='{
|
|
"fileName": "export-companies-{{ str_slug($company->name) }}-accessories-{{ date('Y-m-d') }}",
|
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
|
}'>
|
|
</table>
|
|
|
|
</div>
|
|
</div><!-- /accessories-tab -->
|
|
|
|
<div class="tab-pane" id="consumables_tab">
|
|
<div class="table-responsive">
|
|
|
|
<table
|
|
data-columns="{{ \App\Presenters\ConsumablePresenter::dataTableLayout() }}"
|
|
data-cookie-id-table="consumablesTable"
|
|
data-pagination="true"
|
|
data-id-table="consumablesTable"
|
|
data-search="true"
|
|
data-side-pagination="server"
|
|
data-show-columns="true"
|
|
data-show-export="true"
|
|
data-show-refresh="true"
|
|
data-sort-order="asc"
|
|
id="consumablesTable"
|
|
class="table table-striped snipe-table"
|
|
data-url="{{route('api.consumables.index',['company_id' => $company->id]) }}"
|
|
data-export-options='{
|
|
"fileName": "export-companies-{{ str_slug($company->name) }}-consumables-{{ date('Y-m-d') }}",
|
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
|
}'>
|
|
</table>
|
|
|
|
</div>
|
|
</div><!-- /consumables-tab -->
|
|
|
|
<div class="tab-pane" id="components_tab">
|
|
<div class="table-responsive">
|
|
|
|
<table
|
|
data-columns="{{ \App\Presenters\ComponentPresenter::dataTableLayout() }}"
|
|
data-cookie-id-table="componentsTable"
|
|
data-pagination="true"
|
|
data-id-table="componentsTable"
|
|
data-search="true"
|
|
data-side-pagination="server"
|
|
data-show-columns="true"
|
|
data-show-export="true"
|
|
data-show-refresh="true"
|
|
data-sort-order="asc"
|
|
id="componentsTable"
|
|
class="table table-striped snipe-table"
|
|
data-url="{{route('api.components.index',['company_id' => $company->id]) }}"
|
|
data-export-options='{
|
|
"fileName": "export-companies-{{ str_slug($company->name) }}-components-{{ date('Y-m-d') }}",
|
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
|
}'>
|
|
|
|
</table>
|
|
</div>
|
|
</div><!-- /consumables-tab -->
|
|
|
|
<div class="tab-pane" id="users_tab">
|
|
<div class="table-responsive">
|
|
|
|
<table
|
|
data-columns="{{ \App\Presenters\UserPresenter::dataTableLayout() }}"
|
|
data-cookie-id-table="usersTable"
|
|
data-pagination="true"
|
|
data-id-table="usersTable"
|
|
data-search="true"
|
|
data-side-pagination="server"
|
|
data-show-columns="true"
|
|
data-show-export="true"
|
|
data-show-refresh="true"
|
|
data-sort-order="asc"
|
|
id="usersTable"
|
|
class="table table-striped snipe-table"
|
|
data-url="{{route('api.users.index',['company_id' => $company->id]) }}"
|
|
data-export-options='{
|
|
"fileName": "export-companies-{{ str_slug($company->name) }}-users-{{ date('Y-m-d') }}",
|
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
|
}'>
|
|
|
|
</table>
|
|
</div>
|
|
</div><!-- /consumables-tab -->
|
|
|
|
|
|
|
|
|
|
</div><!-- /.tab-content -->
|
|
</div><!-- nav-tabs-custom -->
|
|
</div>
|
|
</div>
|
|
|
|
@stop
|
|
@section('moar_scripts')
|
|
@include ('partials.bootstrap-table')
|
|
|
|
@stop
|
|
|