Skip to content

A free open source IT asset/license management system

Added #9355: include Accessories and Consumables on the location reports (#9356)

Peter Sarossycacb707a7fc2
diff --git a/resources/views/locations/view.blade.php b/resources/views/locations/view.blade.php
index e289081191..90b100ee41 100644
--- a/resources/views/locations/view.blade.php
+++ b/resources/views/locations/view.blade.php
@@ -82,6 +82,71 @@
</div><!-- /.box-body -->
</div> <!--/.box-->
+ <div class="box box-default">
+ <div class="box-header with-border">
+ <div class="box-heading">
+ <h2 class="box-title">{{ trans('general.accessories') }}</h2>
+ </div>
+ </div>
+ <div class="box-body">
+ <div class="table table-responsive">
+
+ <table
+ data-columns="{{ \App\Presenters\AccessoryPresenter::dataTableLayout() }}"
+ data-cookie-id-table="accessoriesListingTable"
+ data-pagination="true"
+ data-id-table="accessoriesListingTable"
+ data-search="true"
+ data-side-pagination="server"
+ data-show-columns="true"
+ data-show-export="true"
+ data-show-refresh="true"
+ data-sort-order="asc"
+ id="accessoriesListingTable"
+ class="table table-striped snipe-table"
+ data-url="{{route('api.accessories.index', ['location_id' => $location->id]) }}"
+ data-export-options='{
+ "fileName": "export-locations-{{ str_slug($location->name) }}-accessories-{{ date('Y-m-d') }}",
+ "ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
+ }'>
+ </table>
+
+ </div><!-- /.table-responsive -->
+ </div><!-- /.box-body -->
+ </div> <!--/.box-->
+
+ <div class="box box-default">
+ <div class="box-header with-border">
+ <div class="box-heading">
+ <h2 class="box-title">{{ trans('general.consumables') }}</h2>
+ </div>
+ </div>
+ <div class="box-body">
+ <div class="table table-responsive">
+
+ <table
+ data-columns="{{ \App\Presenters\ConsumablePresenter::dataTableLayout() }}"
+ data-cookie-id-table="consumablesListingTable"
+ data-pagination="true"
+ data-id-table="consumablesListingTable"
+ data-search="true"
+ data-side-pagination="server"
+ data-show-columns="true"
+ data-show-export="true"
+ data-show-refresh="true"
+ data-sort-order="asc"
+ id="consumablesListingTable"
+ class="table table-striped snipe-table"
+ data-url="{{route('api.consumables.index', ['location_id' => $location->id]) }}"
+ data-export-options='{
+ "fileName": "export-locations-{{ str_slug($location->name) }}-consumables-{{ date('Y-m-d') }}",
+ "ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
+ }'>
+ </table>
+
+ </div><!-- /.table-responsive -->
+ </div><!-- /.box-body -->
+ </div> <!--/.box-->
<div class="box box-default">
<div class="box-header with-border">