@extends('layouts/default') {{-- Page title --}} @section('title') {{ trans('general.depreciation_report') }} @parent @stop {{-- Page content --}} @section('content')
@if (\App\Models\Setting::getSettings()->display_asset_name) @endif @foreach ($assets as $asset) @if (\App\Models\Setting::getSettings()->display_asset_name) @endif @if ($asset->purchase_cost > 0) @else @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->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 {{ \App\Models\Setting::first()->default_currency }} {{ number_format($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())) }}
@stop