@extends('layouts.app') @section('title', 'Depreciation') @section('breadcrumb') @endsection @section('content') @php $companyId = auth()->user()->company_id; $fmt = fn ($n) => \App\Helpers\NumberHelper::formatAmount((float) $n, $companyId); @endphp @if(session('success'))
{{ session('success') }}
@endif
Period
Pending for {{ $periodLabel }}
{{ $fmt($totals['proposed']) }}
Already Posted
{{ $fmt($totals['posted']) }}
@if(auth()->user()->hasPermission('fixed_assets', 'edit'))
@csrf @endendif
Depreciation Schedule — {{ $periodLabel }} @if(auth()->user()->hasPermission('fixed_assets', 'edit')) @endif
@if(auth()->user()->hasPermission('fixed_assets', 'edit')) @endif @forelse($schedule as $row) @php $asset = $row['asset']; @endphp @if(auth()->user()->hasPermission('fixed_assets', 'edit')) @endif @empty @endforelse
Code Asset Book Value Monthly Dep. Status
{{ $asset->code }} {{ $asset->name }} {{ $fmt($row['book_value']) }} {{ $fmt($row['proposed']) }} @if($row['already_posted']) Posted @elseif($row['can_post']) Pending @else N/A @endif
No active assets found.
@if(auth()->user()->hasPermission('fixed_assets', 'edit'))
@endif @if($history->isNotEmpty())
Posted Entries — {{ $periodLabel }}
@foreach($history as $entry) @endforeach
Asset Amount Posted At
{{ $entry->asset?->code }} — {{ $entry->asset?->name }} {{ $fmt($entry->amount) }} {{ $entry->posted_at?->format('d-m-Y H:i') ?? '—' }}
@endif @endsection @push('scripts') @endpush