snipe-it/resources/views/companies/index.blade.php

77 lines
3.7 KiB
PHP
Raw Normal View History

2016-03-25 01:18:05 -07:00
@extends('layouts/default')
{{-- Page title --}}
@section('title')
{{ trans('general.companies') }}
@parent
2016-03-25 01:18:05 -07:00
@stop
@section('header_right')
<a href="{{ route('companies.create') }}" class="btn btn-primary pull-right">
{{ trans('general.create') }}</a>
2016-03-25 01:18:05 -07:00
@stop
{{-- Page content --}}
@section('content')
<div class="row">
<div class="col-md-9">
<div class="box box-default">
<div class="box-body">
<div class="table-responsive">
<table
name="companies"
class="table table-striped snipe-table"
id="table"
data-url="{{ route('api.companies.index') }}"
data-cookie="true"
data-click-to-select="true"
data-cookie-id-table="companiesTable-{{ config('version.hash_version') }}">
<thead>
2016-03-25 01:18:05 -07:00
<tr>
<th data-sortable="true" data-field="id" data-visible="false">{{ trans('general.id') }}</th>
<th data-sortable="true" data-formatter="companiesLinkFormatter" data-field="name" data-searchable="true">{{ trans('admin/companies/table.name') }}</th>
<th data-sortable="false" data-field="users_count" data-formatter="usersCompanyObjFilterFormatter" data-searchable="false">
<span class="hidden-xs"><i class="fa fa-users"></i></span>
<span class="hidden-md hidden-lg">{{ trans('general.users') }}</span></th>
<th data-sortable="false" data-field="assets_count" data-searchable="false" data-formatter="assetCompanyFilterFormatter">
<span class="hidden-xs"><i class="fa fa-barcode"></i></span>
<span class="hidden-md hidden-lg">{{ trans('general.assets') }}</span></th>
</th>
<th data-sortable="false" data-field="licenses_count" data-searchable="false">
<span class="hidden-xs"><i class="fa fa-floppy-o"></i></span>
<span class="hidden-md hidden-lg">{{ trans('general.licenses') }}</span></th>
</th>
<th data-sortable="false" data-field="accessories_count" data-searchable="false">
<span class="hidden-xs"><i class="fa fa-keyboard-o"></i></span>
<span class="hidden-md hidden-lg">{{ trans('general.accessories') }}</span></th>
</th>
<th data-sortable="false" data-field="consumables_count" data-searchable="false">
<span class="hidden-xs"><i class="fa fa-tint"></i></span>
<span class="hidden-md hidden-lg">{{ trans('general.consumables') }}</span></th>
</th>
<th data-sortable="false" data-field="components_count" data-searchable="false">
<span class="hidden-xs"><i class="fa fa-hdd-o"></i></span>
<span class="hidden-md hidden-lg">{{ trans('general.users') }}</span></th>
</th>
<th data-switchable="false" data-formatter="companiesActionsFormatter" data-searchable="false" data-sortable="false" data-field="actions">{{ trans('table.actions') }}</th>
2016-03-25 01:18:05 -07:00
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
<!-- side address column -->
<div class="col-md-3">
<h4>About Companies</h4>
<p>
You can use companies as a simple informative field, or you can use them to restrict asset visibility and availability to users with a specific company by enabling Full Company Support in your Admin Settings.
</p>
2016-03-25 01:18:05 -07:00
</div>
@stop
2016-03-25 01:18:05 -07:00
@section('moar_scripts')
@include ('partials.bootstrap-table', ['exportFile' => 'companies-export', 'search' => true])
2016-03-25 01:18:05 -07:00
@stop