@extends('reports::layouts.master') @section('title', __('reports::reports.asset_report.Asset Detailed Report')) @section('page-link') @endsection @section('action_buttons')
@if(LaravelLocalization::getCurrentLocale() === 'en') @else @endif @if(isset($data['assetDetails']) ) @can('reports.assets.export') @endcan @endif
@endsection @section('section_title') @lang('reports::reports.asset_report.Asset Detailed Report') @endsection @section('form-open-tag')
@lang('Filter')
@endsection @section('koolreport') @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')}}
@if($data['assetDetails']->type == 'new')
{{__('accounting::assets.Buying Account')}}
@endif
{{__('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}}
{{__('accounting::assets.Depreciation Method')}}
{{__('accounting::assets.'.$data['assetDetails']->depreciation_method)}}
@if($data['assetDetails']->depreciation_method !=='off' && $data['assetDetails']->depreciation_method !=='manual' && ($data['has_depreciation_parameters'] ?? false))
{{__('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,".",",")}}
@endif

@lang('reports::reports.asset_report.Transactions History')

{{-- --}} @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,2,".",",") }}
@endif @endsection @section('extra_scripts_filter_by_date') @endsection