@extends('layouts.app') @section('title', 'Budgetplanung') @section('content')

Ersatz- & Budgetplanung

{{ $grandCount }} Geräte · Gesamtbudget {{ number_format($grandTotal, 0, ',', '’') }}
CSV-Export
@forelse($years as $year)

{{ $year['year'] }} {{ $year['count'] }} Geräte {{ number_format($year['replacement_total'], 0, ',', '’') }} Ersatzbudget

Nach Kategorie: @foreach($year['by_category'] as $category => $count){{ $category }} ({{ $count }})@if(! $loop->last), @endif @endforeach Nach Standort: @foreach($year['by_location'] as $location => $count){{ $location }} ({{ $count }})@if(! $loop->last), @endif @endforeach
@foreach($year['rows'] as $asset) @endforeach
AssetKategorieStandortPerson ErsatzdatumAnschaffungspreisErsatzpreis (geschätzt)
{{ $asset->hostname ?: $asset->model ?: $asset->asset_code }} {{ $asset->category?->name }} {{ $asset->location }} {{ $asset->assignedPerson?->display_name ?? '–' }} {{ $asset->effectiveReplacementDate()?->format('d.m.Y') }} {{ $asset->purchase_price ? number_format((float) $asset->purchase_price, 0, ',', '’') : '–' }} {{ number_format((float) ($asset->replacement_price ?? $asset->purchase_price ?? 0), 0, ',', '’') }}
Summe {{ $year['year'] }} {{ number_format($year['purchase_total'], 0, ',', '’') }} {{ number_format($year['replacement_total'], 0, ',', '’') }}
@empty

Keine Assets mit Ersatzdatum im gewählten Zeitraum. Pflegen Sie Inbetriebnahmedaten oder geplante Ersatzdaten.

@endforelse @endsection