@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('general.depreciation_report') }} @parent @stop {{-- Page content --}} @section('content')
{{ 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/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 }} | @if (\App\Models\Setting::getSettings()->display_asset_name){{ $asset->name }} | @endif{{ $asset->serial }} | @if ($asset->assigned_to != '') {{ $asset->assigneduser->fullName() }} @endif | @if (($asset->assigned_to > 0) && ($asset->assigneduser->location_id > 0)) {{ Location::find($asset->assigneduser->location_id)->city }} , {{ Location::find($asset->assigneduser->location_id)->state }} @endif | {{ $asset->purchase_date }} | @if ($asset->model->eol) {{ $asset->eol_date() }} @endif | @if ($asset->purchase_cost > 0){{ \App\Models\Setting::first()->default_currency }} {{ \App\Helpers\Helper::formatCurrencyOutput($asset->purchase_cost) }} | {{ \App\Models\Setting::first()->default_currency }} {{ number_format($asset->depreciate()) }} | {{ \App\Models\Setting::first()->default_currency }} -{{ number_format(($asset->purchase_cost - $asset->depreciate())) }} | @else@endif |