{{-- Excel table title format start --}}
{{ config('settings.company_name') }}
{{ config('settings.address_1') }}
{{ $extra['branch'] ? $extra['branch']->name : 'All Projects' }} {{ $heading }} @if ($search_by['from'] && $search_by['to']) {{__('lang.from')}}: {{ $transaction->date_format($search_by['from']) }} {{__('lang.to')}}: {{ $transaction->date_format($search_by['to']) }} @else {{ 'Upto ' . $transaction->date_format(now()) }} @endif
{{-- Excel title format end --}} @foreach (range(1,$schedule_duration) as $year) @endforeach @php $years_total =[]; $grand_total= 0; @endphp @foreach ($fixed_assets as $fixed_asset) @php $type = ucwords($fixed_asset->depreciation_type); $depreciation_amount = $transaction->convert_money_format($fixed_asset->depreciation_amount); $depreciate_text ="Fixed : $depreciation_amount ".$transaction->systemSettingCurrency(); if($fixed_asset->is_depreciation_fixed == 0){ $depreciate_text ="Percent : $fixed_asset->depreciation_percentage%"; } $grand_total += $fixed_asset->amount; @endphp @php $current_amount = $fixed_asset->amount; @endphp @foreach (range(1,$schedule_duration) as $year) @php if($fixed_asset->depreciation_type == 'depreciate'){ $current_amount -= $fixed_asset->depreciation_amount; } elseif($fixed_asset->depreciation_type == 'appreciate'){ $current_amount += $fixed_asset->depreciation_amount; } if($current_amount < 0){ $current_amount =0; } $years_total[$year] += $current_amount; @endphp @endforeach @endforeach @foreach ($years_total as $year_total) @endforeach
{{__('lang.s_no')}} {{__('lang.name')}} {{__('lang.purchase_date')}} {{__('lang.amount')}} {{ $transaction->systemSettingCurrency() }} {{__('lang.type')}} {{ $year }} Year {{ $transaction->systemSettingCurrency() }}
{{ $loop->iteration }} {{ $fixed_asset->name }} {{ $transaction->date_format($fixed_asset->purchase_date) }} {{ $transaction->convert_money_format($fixed_asset->amount) }} {{ $type }}
{{ $depreciate_text }}
{{ $transaction->convert_money_format($current_amount) }}
Total {{ $transaction->convert_money_format($grand_total) }} {{ $transaction->convert_money_format($year_total) }}