@extends('layouts.app') @section('title', 'Voce di Spesa - ' . $voceSpesa->denominazione) @section('content')
| Codice: | {{ $voceSpesa->codice_spesa }} |
| Stabile: | {{ $voceSpesa->stabile->denominazione }} |
| Categoria: |
{{ $voceSpesa->categoria }}
@if($voceSpesa->sottocategoria)
{{ $voceSpesa->sottocategoria }} @endif |
| Importo Previsto: | @if($voceSpesa->importo_previsto) € {{ number_format($voceSpesa->importo_previsto, 2, ',', '.') }} @else Non specificato @endif |
| Periodicità: | @if($voceSpesa->periodicita) {{ ucfirst(str_replace('_', ' ', $voceSpesa->periodicita)) }} @else Non specificata @endif |
| Ripartizione Personalizzata: | @if($voceSpesa->ripartizione_personalizzata) Sì @else No @endif |
| Tabella Millesimale Default: |
{{ $voceSpesa->tabellaMillesimaleDefault->denominazione }}
{{ $voceSpesa->tabellaMillesimaleDefault->tipo_tabella }} |
| Ripartizioni Create: |
{{ $voceSpesa->ripartizioniSpese->count() }}
@if($voceSpesa->ripartizioniSpese->count() > 0)
Ultima: {{ $voceSpesa->ripartizioniSpese->first()->created_at->format('d/m/Y') }} @endif |
| Totale Ripartito: | @php $totaleRipartito = $voceSpesa->ripartizioniSpese->sum('importo_totale'); @endphp @if($totaleRipartito > 0) € {{ number_format($totaleRipartito, 2, ',', '.') }} @else € 0,00 @endif |
{{ $voceSpesa->descrizione }}
{{ $voceSpesa->note }}