@@ -67,6 +67,16 @@
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="#history" data-toggle="tab">
|
||||
<span class="hidden-lg hidden-md">
|
||||
<i class="fas fa-history fa-2x" aria-hidden="true"></i>
|
||||
</span>
|
||||
<span class="hidden-xs hidden-sm">
|
||||
{{ trans('general.history') }}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@can('components.files', $component)
|
||||
<li>
|
||||
@@ -137,6 +147,35 @@
|
||||
</div>
|
||||
</div> <!-- close tab-pane div -->
|
||||
|
||||
<div class="tab-pane" id="history">
|
||||
<div class="table-responsive">
|
||||
|
||||
<table
|
||||
data-columns="{{ \App\Presenters\HistoryPresenter::dataTableLayout() }}"
|
||||
class="table table-striped snipe-table"
|
||||
id="componentHistory"
|
||||
data-pagination="true"
|
||||
data-id-table="componentHistory"
|
||||
data-search="true"
|
||||
data-side-pagination="server"
|
||||
data-show-columns="true"
|
||||
data-show-fullscreen="true"
|
||||
data-show-refresh="true"
|
||||
data-sort-order="desc"
|
||||
data-sort-name="created_at"
|
||||
data-show-export="true"
|
||||
data-export-options='{
|
||||
"fileName": "export-component-{{ $component->id }}-history",
|
||||
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
||||
}'
|
||||
|
||||
data-url="{{ route('api.activity.index', ['item_id' => $component->id, 'item_type' => 'component']) }}"
|
||||
data-cookie-id-table="componentHistory"
|
||||
data-cookie="true">
|
||||
</table>
|
||||
</div>
|
||||
</div><!-- /.tab-pane -->
|
||||
|
||||
|
||||
@can('components.files', $component)
|
||||
<div class="tab-pane" id="files">
|
||||
|
||||
Reference in New Issue
Block a user