@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('general.depreciation_report') }} @parent @stop {{-- Page content --}} @section('content')
{{ trans('admin/companies/table.title') }} | {{ trans('admin/hardware/table.asset_tag') }} | {{ trans('admin/hardware/table.title') }} | @if (\App\Models\Setting::getSettings()->display_asset_name){{ trans('general.name') }} | @endif{{ 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->deleted_at!='')
|
{{ $asset->model->name }} | @if (\App\Models\Setting::getSettings()->display_asset_name){{ $asset->name }} | @endif{{ $asset->serial }} | @if ($asset->model->depreciation) {{ $asset->model->depreciation->name }} @endif | @if ($asset->model->depreciation) {{ $asset->model->depreciation->months }} @endif |
@if ($asset->assigneduser)
@if ($asset->assigneduser->deleted_at!='')
|
@if ($asset->assetloc) {{ $asset->assetloc->name }} @elseif ($asset->defaultloc) {{ $asset->defaultloc->name }} @endif | {{ $asset->purchase_date }} | @if ($asset->model->eol) {{ $asset->eol_date() }} @endif | @if ($asset->purchase_cost > 0)@if ($asset->assetloc ) {{ $asset->assetloc->currency }} @else {{ \App\Models\Setting::first()->default_currency }} @endif {{ number_format($asset->purchase_cost) }} | @if ($asset->assetloc ) {{ $asset->assetloc->currency }} @else {{ \App\Models\Setting::first()->default_currency }} @endif {{ number_format($asset->getDepreciatedValue()) }} | @if ($asset->assetloc) {{ $asset->assetloc->currency }} @else {{ \App\Models\Setting::first()->default_currency }} @endif -{{ number_format(($asset->purchase_cost - $asset->getDepreciatedValue())) }} | @else@endif |