BETRIEBSKOSTENABRECHNUNG {{ $utilityBill->year }}

Erstellt am {{ $utilityBill->billing_date->format('d.m.Y') }}

Vermieter
Name:{{ $contract->tenant->user->name }}
Mieter & Einheit
Mieter:{{ $utilityBill->tenant->full_name }}
Einheit:{{ $utilityBill->unit->property->name }} - {{ $utilityBill->unit->name }}
Adresse:{{ $utilityBill->unit->property->street }} {{ $utilityBill->unit->property->house_number }}, {{ $utilityBill->unit->property->postal_code }} {{ $utilityBill->unit->property->city }}
@if($utilityBill->cost_breakdown)
Kostenaufstellung
@foreach($utilityBill->cost_breakdown as $key => $value) @endforeach
{{ ['heating'=>'Heizung','water'=>'Wasser','garbage'=>'Müll','cleaning'=>'Reinigung','insurance'=>'Versicherung','tax'=>'Grundsteuer','elevator'=>'Aufzug','other'=>'Sonstiges'][$key] ?? $key }} {{ number_format($value, 2) }} €
@endif
Zusammenfassung
Gesamtkosten:{{ number_format($utilityBill->total_cost, 2) }} €
Vorauszahlung:{{ number_format($utilityBill->prepayment, 2) }} €
{{ $utilityBill->additional_payment > 0 ? 'Nachzahlung:' : 'Guthaben:' }} {{ number_format($utilityBill->additional_payment ?: $utilityBill->credit, 2) }} €