@extends(\Auth::user()->role != 10 ? 'layout' : 'layoutfrontdesk') @section('title', 'Asset Management') @section('css') @endsection @section('content')
@php $i = 1 @endphp @foreach($active_assets as $active_asset) @php $i++ @endphp @endforeach
No Acq. Date Asset Name COA Department Acq. Cost Book Value Action
{{$i}} {{ date('d-m-Y', strtotime($active_asset->tanggal_akuisisi)) }} ({{ $active_asset->nomor_aset}}) {{ $active_asset->nama_aset }} ({{ $active_asset->coaAsset->account_no }}) {{ $active_asset->description }} {{ $active_asset->department ? $active_asset->department : "-"}} {{ ribuanWithComma($active_asset->biaya_akuisisi) }} @php $total_depresiasi = $active_asset->assetDepreciations ? $active_asset->assetDepreciations->sum('depreciation_nominal') : 0; $nilai_buku = $active_asset->biaya_akuisisi - $active_asset->akumulasi_penyusutan - $total_depresiasi; @endphp {{ ribuanWithComma($nilai_buku) }}
@php $i = 1 @endphp @foreach($released_assets as $released_asset) @php $profit_or_loss = $released_asset->releasedAsset->harga_jual - $released_asset->biaya_akuisisi; @endphp @php $i++ @endphp @endforeach
No Released date Asset Name Department Trans No Sell Profit(Loss) Action
{{$i}} {{ date('d-m-Y', strtotime($released_asset->releasedAsset->tanggal_transaksi)) }} ({{ $released_asset->nomor_aset }}) {{ $released_asset->nama_aset }} {{ $released_asset->department ? $released_asset->department : "-"}} {{ str_pad($released_asset->releasedAsset->id, 4, '0', STR_PAD_LEFT) }} {{ ribuanWithComma($released_asset->releasedAsset->harga_jual) }} @if($profit_or_loss < 0) ({{ ribuanWithComma($profit_or_loss) }}) @else {{ ribuanWithComma($profit_or_loss) }} @endif Cancel

Depreciation Schedule

@csrf @if(count($depreciation_list) > 0) @php $idx_depreciation = 0; $i = 1; @endphp @foreach($depreciation_list as $depreciation) @php $total_depresiasi = $depreciation->assetDepreciations ? $depreciation->assetDepreciations->sum('depreciation_nominal') : 0; $nilai_buku = $depreciation->biaya_akuisisi - $depreciation->akumulasi_penyusutan - $total_depresiasi; $nilai_depresiasi = $depreciation->biaya_akuisisi * ($depreciation->nilai_per_tahun / 100); $next_book_value = $nilai_buku - $nilai_depresiasi; @endphp @php $idx_depreciation++; $i++; @endphp @endforeach @else @endif
No Asset Detail Department Period Deprec. Val Acq. Value Book Value Next. Book val
{{$i}} ({{ $depreciation->nomor_aset }}) {{ $depreciation->nama_aset }} {{ $depreciation->department ? $depreciation->department : "-"}} {{ date('d/m/Y', strtotime($depreciation->tanggal_akuisisi)) }} - {{ date('d/m/Y', strtotime('+1 years', strtotime($depreciation->tanggal_akuisisi))) }} {{ $depreciation->nilai_per_tahun }}% {{ ribuanWithComma($active_asset->biaya_akuisisi) }} {{ ribuanWithComma($nilai_buku) }} {{ ribuanWithComma($next_book_value) }}
No Data
@endsection @section('js') @endsection