Skip to content

A free open source IT asset/license management system

Show accessory checkout id in user accessory table

Marcus Mooree7cb4a75eb5c
diff --git a/resources/lang/en-US/admin/accessories/table.php b/resources/lang/en-US/admin/accessories/table.php
index e02d9f22e4..e7daec3197 100644
--- a/resources/lang/en-US/admin/accessories/table.php
+++ b/resources/lang/en-US/admin/accessories/table.php
@@ -1,11 +1,10 @@
<?php
return array(
+ 'accessory_checkout_id' => 'Checkout ID',
'dl_csv' => 'Download CSV',
'eula_text' => 'EULA',
'id' => 'ID',
'require_acceptance' => 'Acceptance',
'title' => 'Accessory Name',
-
-
);
diff --git a/resources/views/users/view.blade.php b/resources/views/users/view.blade.php
index 495d0a2ca6..b0b345025e 100755
--- a/resources/views/users/view.blade.php
+++ b/resources/views/users/view.blade.php
@@ -896,7 +896,8 @@
}'>
<thead>
<tr>
- <th class="col-md-5">{{ trans('general.name') }}</th>
+ <th class="col-md-1">{{ trans('admin/accessories/table.accessory_checkout_id') }}</th>
+ <th class="col-md-4">{{ trans('general.name') }}</th>
<th class-="col-md-5" data-fieldname="note">{{ trans('general.notes') }}</th>
<th class="col-md-1" data-footer-formatter="sumFormatter" data-fieldname="purchase_cost">{{ trans('general.purchase_cost') }}</th>
<th class="col-md-1 hidden-print">{{ trans('general.action') }}</th>
@@ -905,7 +906,8 @@
<tbody>
@foreach ($user->accessories as $accessory)
<tr>
- <td>{!!$accessory->present()->nameUrl()!!}</td>
+ <td>{{ $accessory->pivot->id }}</td>
+ <td>{!!$accessory->present()->nameUrl()!!}</td>
<td>{!! $accessory->pivot->note !!}</td>
<td>
{!! Helper::formatCurrencyOutput($accessory->purchase_cost) !!}
@@ -1210,4 +1212,4 @@ $('#dataConfirmModal').on('show.bs.modal', function (event) {
</script>
-@stop
\ No newline at end of file
+@stop