Skip to content

Commit

Permalink
Added the column purchase_cost to user's default view
Browse files Browse the repository at this point in the history
  • Loading branch information
inietov committed Dec 12, 2022
1 parent 9e8fff6 commit 450ad3d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources/views/account/view-assets.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@
data-side-pagination="client"
data-show-columns="true"
data-show-export="true"
data-show-footer="true"
data-show-refresh="true"
data-sort-order="asc"
id="userAssets"
Expand All @@ -404,6 +405,7 @@ class="table table-striped snipe-table"
<th class="col-md-2" data-switchable="true" data-visible="true">{{ trans('general.name') }}</th>
<th class="col-md-2" data-switchable="true" data-visible="true">{{ trans('admin/hardware/table.asset_model') }}</th>
<th class="col-md-3" data-switchable="true" data-visible="true">{{ trans('admin/hardware/table.serial') }}</th>
<th class="col-md-6" data-footer-formatter="sumFormatter" data-fieldname="purchase_cost">{{ trans('general.purchase_cost') }}</th>

@foreach ($field_array as $db_column => $field_name)
<th class="col-md-1" data-switchable="true" data-visible="true">{{ $field_name }}</th>
Expand Down Expand Up @@ -439,6 +441,9 @@ class="table table-striped snipe-table"
@endif
</td>
<td>{{ $asset->serial }}</td>
<td>
{!! Helper::formatCurrencyOutput($asset->purchase_cost) !!}
</td>

@foreach ($field_array as $db_column => $field_value)
<td>
Expand Down

0 comments on commit 450ad3d

Please sign in to comment.