@extends('layouts.app') @section('title','Posting Penyusutan') @section('content')
{{-- HEADER --}}

Posting Penyusutan

Jalankan proses penyusutan aset bulanan. Pastikan periode belum pernah diposting.

{{-- INFO PERIODE TERAKHIR --}}

Periode Terakhir

@if($lastPosted) Terakhir diposting: {{ $lastPosted->periode_label }} @else Belum pernah melakukan posting @endif

{{-- FORM POSTING --}}
@csrf
{{-- ACTIONS --}}
{{-- REVERSE --}}
@csrf
{{-- LOCK YEAR --}}
@csrf
{{-- RIWAYAT POSTING --}}

Riwayat Posting

Riwayat hasil posting penyusutan aset per periode.

@forelse($history as $row) @empty @endforelse
Periode Aset Penyusutan Akumulasi Nilai Buku Status
{{ $row->periode_label }} {{ $row->asset->nama_aset ?? '-' }} Rp {{ number_format($row->penyusutan_bulan_ini, 0, ',', '.') }} Rp {{ number_format($row->akumulasi_penyusutan, 0, ',', '.') }} Rp {{ number_format($row->nilai_buku, 0, ',', '.') }} @if($row->status == 'posted') Posted @elseif($row->status == 'cancelled') Cancelled @else - @endif
Belum ada data posting
{{ $history->links() }}
@endsection