2017-03-11 12:14:19 -08:00
|
|
|
@extends('layouts/default')
|
|
|
|
{{-- Page title --}}
|
|
|
|
@section('title')
|
|
|
|
{{ $statuslabel->name }} {{ trans('general.assets') }}
|
|
|
|
@parent
|
|
|
|
@stop
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-body">
|
2022-06-14 12:50:26 -07:00
|
|
|
@include('partials.asset-bulk-actions')
|
2017-03-11 12:14:19 -08:00
|
|
|
|
2018-02-23 05:09:14 -08:00
|
|
|
<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"
|
2022-06-14 17:54:18 -07:00
|
|
|
data-show-fullscreen="true"
|
2018-02-23 05:09:14 -08:00
|
|
|
data-show-export="true"
|
|
|
|
data-show-refresh="true"
|
|
|
|
data-sort-order="asc"
|
2022-06-14 12:50:26 -07:00
|
|
|
data-toolbar="#assetsBulkEditToolbar"
|
|
|
|
data-bulk-button-id="#bulkAssetEditButton"
|
|
|
|
data-bulk-form-id="#assetsBulkForm"
|
|
|
|
data-click-to-select="true"
|
2018-02-23 05:09:14 -08:00
|
|
|
id="assetsListingTable"
|
|
|
|
class="table table-striped snipe-table"
|
|
|
|
data-url="{{route('api.assets.index', ['status_id' => $statuslabel->id]) }}"
|
|
|
|
data-export-options='{
|
2018-02-23 05:53:00 -08:00
|
|
|
"fileName": "export-assets-{{ str_slug($statuslabel->name) }}-assets-{{ date('Y-m-d') }}",
|
2018-02-23 05:09:14 -08:00
|
|
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
|
|
|
}'>
|
|
|
|
</table>
|
2017-03-11 12:14:19 -08:00
|
|
|
</div><!-- /.col -->
|
|
|
|
</div><!-- /.row -->
|
|
|
|
{{ Form::close() }}
|
|
|
|
</div><!-- ./box-body -->
|
|
|
|
</div><!-- /.box -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('moar_scripts')
|
|
|
|
@include ('partials.bootstrap-table', [
|
|
|
|
'exportFile' => 'assets-export',
|
|
|
|
'search' => true,
|
|
|
|
'columns' => \App\Presenters\AssetPresenter::dataTableLayout()
|
|
|
|
])
|
|
|
|
|
|
|
|
@stop
|