diff --git a/resources/views/reports/depreciation.blade.php b/resources/views/reports/depreciation.blade.php index 611a06887..c1449ce13 100644 --- a/resources/views/reports/depreciation.blade.php +++ b/resources/views/reports/depreciation.blade.php @@ -16,156 +16,30 @@ @if (($depreciations) && ($depreciations->count() > 0)) -
{{ trans('admin/companies/table.title') }} | -{{ trans('admin/categories/general.category_name') }} | -{{ trans('admin/hardware/table.asset_tag') }} | -{{ trans('admin/hardware/table.title') }} | - @if ($snipeSettings->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.status') }} | -{{ 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.monthly_depreciation') }} | -{{ 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->model->name }} | - @if ($snipeSettings->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 - | -- {{ $asset->assetstatus->name }} - ({{ $asset->present()->statusMeta }}) - | -- @if (($asset->checkedOutToUser()) && ($asset->assigned)) - {{ $asset->assigned->getFullNameAttribute() }} - @else - - @if ($asset->assigned) - {{ $asset->assigned->name }} - @endif - @endif - | -- @if ($asset->location) - {{ $asset->location->name }} - @elseif ($asset->defaultloc) - {{ $asset->defaultloc->name }} - @endif - | -- {{ \Carbon\Carbon::parse($asset->purchase_date)->format('Y-m-d') }} - | - -- @if ($asset->model->eol) {{ $asset->present()->eol_date() }} - @endif - | - - @if ($asset->purchase_cost > 0) -- @if ($asset->location && $asset->location->currency) - {{ $asset->location->currency }} - @else - {{ $snipeSettings->default_currency }} - @endif - {{ \App\Helpers\Helper::formatCurrencyOutput($asset->purchase_cost) }} - | -- @if ($asset->location && $asset->location->currency) - {{ $asset->location->currency }} - @else - {{ $snipeSettings->default_currency }} - @endif - - {{ \App\Helpers\Helper::formatCurrencyOutput($asset->getDepreciatedValue()) }} - | -- @if ($asset->model->depreciation) - @if ($asset->location && $asset->location->currency) - {{ $asset->location->currency }} - @else - {{ $snipeSettings->default_currency }} - @endif - - {{ \App\Helpers\Helper::formatCurrencyOutput(($asset->model->eol > 0 ? ($asset->purchase_cost / $asset->model->eol) : 0)) }} - @endif - | -- @if ($asset->location && $asset->location->currency) - {{ $asset->location->currency }} - @else - {{ $snipeSettings->default_currency }} - @endif - - -{{ \App\Helpers\Helper::formatCurrencyOutput(($asset->purchase_cost - $asset->getDepreciatedValue())) }} - | - @else -- | - | - | - @endif - |