{{-- 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 |
---|
{{__('lang.s_no')}} | {{__('lang.name')}} | {{__('lang.purchase_date')}} | {{__('lang.amount')}} {{ $transaction->systemSettingCurrency() }} | {{__('lang.type')}} | @foreach (range(1,$schedule_duration) as $year){{ $year }} Year {{ $transaction->systemSettingCurrency() }} | @endforeach
---|---|---|---|---|---|
{{ $loop->iteration }} | {{ $fixed_asset->name }} | {{ $transaction->date_format($fixed_asset->purchase_date) }} | {{ $transaction->convert_money_format($fixed_asset->amount) }} | {{ $type }} {{ $depreciate_text }} |
@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
{{ $transaction->convert_money_format($current_amount) }} | @endforeach
Total | {{ $transaction->convert_money_format($grand_total) }} | @foreach ($years_total as $year_total) | {{ $transaction->convert_money_format($year_total) }} | @endforeach