@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('general.depreciation_report') }} @parent @stop {{-- Page content --}} @section('content')
@if ($snipeSettings->display_asset_name) @endif @foreach ($assets as $asset) @if ($snipeSettings->display_asset_name) @endif @if ($asset->purchase_cost > 0) @else {{-- purchase_cost > 0 --}} @endif @endforeach
{{ trans('admin/hardware/table.asset_tag') }} {{ trans('admin/hardware/table.title') }}{{ trans('general.name') }}{{ trans('admin/hardware/table.serial') }} {{ trans('admin/hardware/table.checkoutto') }} {{ trans('admin/hardware/table.location') }} {{ trans('admin/hardware/table.purchase_date') }} {{ trans('admin/hardware/table.eol') }} {{ trans('admin/hardware/table.purchase_cost') }} {{ trans('admin/hardware/table.book_value') }} {{ trans('admin/hardware/table.diff') }}
{{ $asset->asset_tag }} {{ $asset->model->name }}{{ $asset->name }}{{ $asset->serial }} @if ($asset->assigned_to != '') {!! $asset->assignedTo->present->nameUrl() !!} @endif @if (($asset->checkedOutToUser()) && ($asset->assignedTo->assetLoc)) {{ $asset->assignedTo->assetLoc->city }}, {{ $asset->assignedTo->assetLoc->state}} @endif {{ $asset->purchase_date }} @if ($asset->model->eol) {{ $asset->present()->eol_date() }} @endif {{ $snipeSettings->default_currency }} {{ \App\Helpers\Helper::formatCurrencyOutput($asset->purchase_cost) }} {{ $snipeSettings->default_currency }} {{ number_format($asset->depreciate()) }} {{ $snipeSettings->default_currency }} -{{ number_format(($asset->purchase_cost - $asset->depreciate())) }}
@stop