@props([ 'totaleImporto' => 0, 'totalePagato' => 0, 'totaleRimanente' => 0, 'numeroFatture' => 0, 'fatturePagate' => 0, 'compensoContratto' => 0, 'isDipendente' => false, 'costoMensile' => null, 'retribuzioneAnnua' => null, ])

Riepilogo Pagamenti

@php $documentiLabel = $isDipendente ? 'mensilità' : 'documenti'; $documentiLabelCapitalized = $isDipendente ? 'Mensilità' : 'Documenti'; @endphp @php $firstRowMdCols = $isDipendente ? 'md:grid-cols-3' : 'md:grid-cols-4'; $firstRowLgCols = $isDipendente ? 'lg:grid-cols-5' : 'lg:grid-cols-4'; $firstRowXlCols = $isDipendente ? 'xl:grid-cols-5' : 'xl:grid-cols-4'; @endphp
{{ $isDipendente ? 'Retribuzione annua' : 'Compenso Contratto' }}
{{ number_format($isDipendente ? ($retribuzioneAnnua ?? $compensoContratto) : $compensoContratto, 2, ',', '.') }} €
{{ $isDipendente ? 'Valore annuo contrattuale' : 'Importo stabilito' }}
@if ($isDipendente)
Costo mensile stimato
{{ $costoMensile ? number_format($costoMensile, 2, ',', '.') . ' €' : '—' }}
Calcolato su 12 mensilità
@endif
Totale {{ $documentiLabelCapitalized }}
{{ number_format($totaleImporto, 2, ',', '.') }} €
{{ $numeroFatture }} {{ $documentiLabel }}
Importo Pagato
{{ number_format($totalePagato, 2, ',', '.') }} €
{{ $fatturePagate }} {{ $documentiLabel }} pagati
Da Pagare
{{ number_format($totaleRimanente, 2, ',', '.') }} €
{{ $numeroFatture - $fatturePagate }} {{ $documentiLabel }} da pagare
Completamento
{{ $numeroFatture > 0 ? number_format(($fatturePagate / $numeroFatture) * 100, 0) : 0 }}%
Pagamento
{{ $totaleImporto > 0 ? number_format(($totalePagato / $totaleImporto) * 100, 0) : 0 }}%