@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 @endif @endforeach
{{ trans('admin/companies/table.title') }} {{ trans('admin/categories/general.category_name') }} {{ trans('admin/hardware/table.asset_tag') }} {{ trans('admin/hardware/table.title') }}{{ trans('general.name') }}{{ trans('admin/hardware/table.serial') }} {{ trans('admin/depreciations/general.depreciation_name') }} {{ trans('admin/depreciations/general.number_of_months') }} {{ 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') }}
{{ is_null($asset->company) ? '' : $asset->company->name }} @if ($asset->model) {{ $asset->model->category->name }} @endif @if ($asset->deleted_at!='') {{ $asset->asset_tag }} @else {{ $asset->asset_tag }} @endif {{ $asset->model->name }}{{ $asset->name }}{{ $asset->serial }} @if ($asset->model->depreciation) {{ $asset->model->depreciation->name }} @endif @if ($asset->model->depreciation) {{ $asset->model->depreciation->months }} @endif @if ($asset->assignedTo) @if ($asset->assignedTo->deleted_at!='') {{ $asset->assignedTo->present()->name() }} @else {!! $asset->assignedTo->present()->nameUrl() !!} @endif @endif @if ($asset->assetloc) {{ $asset->assetloc->name }} @elseif ($asset->defaultloc) {{ $asset->defaultloc->name }} @endif {{ $asset->purchase_date }} @if ($asset->model->eol) {{ $asset->present()->eol_date() }} @endif @if ($asset->assetloc ) {{ $asset->assetloc->currency }} @else {{ $snipeSettings->default_currency }} @endif {{ \App\Helpers\Helper::formatCurrencyOutput($asset->purchase_cost) }} @if ($asset->assetloc ) {{ $asset->assetloc->currency }} @else {{ $snipeSettings->default_currency }} @endif {{ \App\Helpers\Helper::formatCurrencyOutput($asset->getDepreciatedValue()) }} @if ($asset->assetloc) {{ $asset->assetloc->currency }} @else {{ $snipeSettings->default_currency }} @endif -{{ \App\Helpers\Helper::formatCurrencyOutput(($asset->purchase_cost - $asset->getDepreciatedValue())) }}
@stop @section('moar_scripts') @stop @stop