@extends('layouts.pdf') @section('title') {{ $extra['module_name'] }} @endsection @section('content') {{--
Printing Date & Time: {{ $extra['current_date_time'] }}
--}}{{__('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