2017-02-08 08:48:41 -08:00
|
|
|
@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">
|
2017-06-01 20:28:09 -07:00
|
|
|
<span class="hidden-lg hidden-md">
|
|
|
|
<i class="fa fa-barcode"></i>
|
|
|
|
</span>
|
2017-02-08 08:48:41 -08:00
|
|
|
<span class="hidden-xs hidden-sm">{{ trans('general.assets') }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<a href="#licenses_tab" data-toggle="tab">
|
2017-06-01 20:28:09 -07:00
|
|
|
<span class="hidden-lg hidden-md">
|
|
|
|
<i class="fa fa-floppy-o"></i>
|
|
|
|
</span>
|
2017-02-08 08:48:41 -08:00
|
|
|
<span class="hidden-xs hidden-sm">{{ trans('general.licenses') }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<a href="#accessories_tab" data-toggle="tab">
|
2017-06-01 20:28:09 -07:00
|
|
|
<span class="hidden-lg hidden-md">
|
|
|
|
<i class="fa fa-keyboard-o"></i>
|
|
|
|
</span> <span class="hidden-xs hidden-sm">{{ trans('general.accessories') }}</span>
|
2017-02-08 08:48:41 -08:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<a href="#consumables_tab" data-toggle="tab">
|
2017-06-01 20:28:09 -07:00
|
|
|
<span class="hidden-lg hidden-md">
|
|
|
|
<i class="fa fa-tint"></i></span>
|
2017-02-08 08:48:41 -08:00
|
|
|
<span class="hidden-xs hidden-sm">{{ trans('general.consumables') }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="tab-content">
|
|
|
|
|
2017-06-01 20:28:09 -07:00
|
|
|
<div class="tab-pane fade in active" id="asset_tab">
|
2017-02-08 08:48:41 -08:00
|
|
|
<!-- checked out assets table -->
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table
|
|
|
|
name="companyAssets"
|
|
|
|
class="table table-striped snipe-table"
|
|
|
|
id="table"
|
|
|
|
data-url="{{route('api.assets.index',['company_id' => $company->id]) }}"
|
|
|
|
data-cookie="true"
|
2017-06-01 20:28:09 -07:00
|
|
|
data-cookie-id-table="companyAssetsTable-{{ config('version.hash_version') }}">
|
2017-02-08 08:48:41 -08:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th data-sortable="true" data-field="id" data-visible="false">{{ trans('general.id') }}</th>
|
2017-11-06 12:01:54 -08:00
|
|
|
<th data-sortable="true" data-formatter="hardwareLinkFormatter" data-field="name" data-searchable="true">{{ trans('admin/hardware/form.name') }}</th>
|
|
|
|
<th data-sortable="true" data-field="image" data-visible="true" data-formatter="imageFormatter">{{ trans('general.image') }}</th>
|
|
|
|
<th data-searchable="false" data-formatter="modelsLinkObjFormatter" data-sortable="false" data-field="model">{{ trans('admin/hardware/form.model') }}</th>
|
|
|
|
<th data-searchable="false" data-sortable="false" data-field="asset_tag">{{ trans('admin/hardware/form.tag') }}</th>
|
|
|
|
<th data-searchable="false" data-sortable="false" data-field="serial">{{ trans('admin/hardware/form.serial') }}</th>
|
|
|
|
<th data-searchable="false" data-sortable="false" data-formatter="hardwareInOutFormatter" data-field="checkincheckout">Checkin/Checkout</th>
|
|
|
|
<th data-searchable="false" data-sortable="false" data-field="actions" data-formatter="hardwareActionsFormatter">{{ trans('general.action') }}</th>
|
2017-02-08 08:48:41 -08:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div><!-- /asset_tab -->
|
|
|
|
|
|
|
|
<div class="tab-pane" id="licenses_tab">
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="display table table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="col-md-5">{{ trans('general.name') }}</th>
|
|
|
|
<th class="col-md-6">{{ trans('admin/hardware/form.serial') }}</th>
|
|
|
|
<th class="col-md-1 hidden-print">{{ trans('general.action') }}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div><!-- /licenses-tab -->
|
|
|
|
|
|
|
|
<div class="tab-pane" id="accessories_tab">
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="display table table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="col-md-5">Name</th>
|
|
|
|
<th class="col-md-1 hidden-print">Actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div><!-- /accessories-tab -->
|
|
|
|
|
|
|
|
<div class="tab-pane" id="consumables_tab">
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="display table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="col-md-8">{{ trans('general.name') }}</th>
|
|
|
|
<th class="col-md-4">{{ trans('general.date') }}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div><!-- /consumables-tab -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div><!-- /.tab-content -->
|
|
|
|
</div><!-- nav-tabs-custom -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|
|
|
|
@section('moar_scripts')
|
|
|
|
@include ('partials.bootstrap-table', ['exportFile' => 'companies-export', 'search' => true])
|
|
|
|
|
|
|
|
@stop
|
|
|
|
|