@if(isset($data['assetDetails']) )

@lang('reports::reports.asset_report.Asset Detailed Report')

{{$data['companyName']}}

{{__('accounting::assets.Id')}} {{$data['assetDetails']->id}}
{{__('reports::reports.asset_report.asset_name')}} {{$data['assetDetails']->name}}
{{__('reports::reports.asset_report.Assigned account')}} {{ $data['assetDetails']->mainAccount->name }}
{{__('accounting::assets.Buying Account')}} {{ $data['assetDetails']->buying_account == 0 ? '-' : ($data['assetDetails']->buyingAccount->name ?? '-') }}
{{__('accounting::assets.Asset Cost')}} {{number_format($data['assetDetails']->buying_cost,2,".",",")}}
{{__('accounting::assets.Current Value')}} {{number_format($data['assetDetails']->current_value,2,".",",")}}
{{__('accounting::assets.Total Depreciation')}} {{number_format($data['assetDetails']->total_depreciation,2,".",",")}}
{{__('accounting::assets.Total Capitalization')}} {{number_format($data['assetDetails']->total_capitalization,2,".",",")}}
{{__('accounting::assets.Asset Date')}} {{$data['assetDetails']->buying_date}}
@if($data['assetDetails']->depreciation_method !=='off' && $data['assetDetails']->depreciation_method !=='manual' && ($data['has_depreciation_parameters'] ?? false)) @endif
{{__('accounting::assets.Depreciation Method')}} {{__('accounting::assets.'.$data['assetDetails']->depreciation_method)}}
{{__('accounting::assets.Interval')}} {{ $data['lastAssetParameter']->interval_value}} @lang('accounting::assets.'.\Modules\Accounting\Enums\IntervalEnum::INTERVAL_UNIT[$data['lastAssetParameter']->interval_unit])
{{__('accounting::assets.Start Date')}} {{$data['lastAssetParameter']->start_date}}
{{__('accounting::assets.End Date')}} {{$data['lastAssetParameter']->end_date}}
{{__('reports::reports.asset_report.Last Depreciation Date')}} {{$data['last_depreciation_date']}}
{{__('reports::reports.asset_report.Next Depreciation Date')}} {{$data['next_depreciation_date']}}
{{__('accounting::assets.Depreciation Amount')}} {{number_format($data['lastAssetParameter']->depreciation_amount,2,".",",")}}
{{-- --}} @if($data['transactions']) @foreach ($data['transactions'] as $transaction) @endforeach @endif
@lang('accounting::assets.Date') @lang('reports::reports.account_statement.transaction') @lang('reports::reports.general_ledger.amount') @lang('reports::reports.general_ledger.balance')
{{$transaction['Date'] }} {{$transaction['Transaction'] }} {{number_format($transaction['Amount'],2) }} {{number_format($transaction['Balance'],2) }}
{{__('accounting::assets.Current Value')}} {{ number_format($data['assetDetails']->current_value+ ($data['assetDetails']->vat_amount ?? 0), 2) }}
@endif