mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 15:44:11 -08:00
Added warranty info to listing
This commit is contained in:
parent
f9bed9264f
commit
6c1a827ed0
|
@ -37,6 +37,8 @@ class AssetsTransformer
|
||||||
'location' => ($asset->assetLoc) ? $asset->assetLoc : null,
|
'location' => ($asset->assetLoc) ? $asset->assetLoc : null,
|
||||||
'image' => ($asset->getImageUrl()) ? $asset->getImageUrl() : null,
|
'image' => ($asset->getImageUrl()) ? $asset->getImageUrl() : null,
|
||||||
'assigned_to' => ($asset->assigneduser) ? (new UsersTransformer)->transformUser($asset->assigneduser) : null,
|
'assigned_to' => ($asset->assigneduser) ? (new UsersTransformer)->transformUser($asset->assigneduser) : null,
|
||||||
|
'warranty' => ($asset->warranty_months > 0) ? $asset->warranty_months.' '.trans('admin/hardware/form.months') : null,
|
||||||
|
'warranty_expires' => ($asset->warranty_months > 0) ? $asset->present()->warrantee_expires() : null,
|
||||||
'created_at' => $asset->created_at,
|
'created_at' => $asset->created_at,
|
||||||
'purchase_date' => $asset->purchase_date,
|
'purchase_date' => $asset->purchase_date,
|
||||||
'purchase_cost' => $asset->purchase_cost,
|
'purchase_cost' => $asset->purchase_cost,
|
||||||
|
|
|
@ -93,6 +93,8 @@
|
||||||
<th data-sortable="true" data-searchable="true" data-field="order_number">{{ trans('admin/hardware/form.order') }}</th>
|
<th data-sortable="true" data-searchable="true" data-field="order_number">{{ trans('admin/hardware/form.order') }}</th>
|
||||||
<th data-sortable="true" data-searchable="true" data-field="last_checkout">{{ trans('admin/hardware/table.checkout_date') }}</th>
|
<th data-sortable="true" data-searchable="true" data-field="last_checkout">{{ trans('admin/hardware/table.checkout_date') }}</th>
|
||||||
<th data-sortable="true" data-field="expected_checkin" data-searchable="true">{{ trans('admin/hardware/form.expected_checkin') }}</th>
|
<th data-sortable="true" data-field="expected_checkin" data-searchable="true">{{ trans('admin/hardware/form.expected_checkin') }}</th>
|
||||||
|
<th data-sortable="false" data-field="warranty">{{ trans('admin/hardware/form.warranty') }}</th>
|
||||||
|
<th data-sortable="false" data-field="warranty_expires">{{ trans('admin/hardware/form.expires') }}</th>
|
||||||
@foreach(\App\Models\CustomField::all() as $field)
|
@foreach(\App\Models\CustomField::all() as $field)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue