@extends('reports::layouts.master_pdf') @php $subdomain = request()->route()->parameter('subdomain'); $is_student = app(\Hyn\Tenancy\Repositories\HostnameRepository::class)->findByHostname($subdomain)->website->company->is_student; @endphp @section('koolreport') @if(app()->getLocale() == 'en') @else @endif @if(isset($data['assetDetails']) )
@if($is_student) @include('draft_report') @endif

@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')}}
{{-- Old assets do not have a buying account, saved as zero --}} @if($data['assetDetails']->buyingAccount)
{{$data['assetDetails']->buyingAccount->name}}
@else
-
@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